watchman.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. ##
  2. ## watchman.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2016 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: watchman
  25. Summary: Filesystem Watching Utility
  26. URL: https://github.com/facebook/watchman
  27. Vendor: Facebook
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Filesystem
  32. License: Apache
  33. Version: 4.5.0
  34. Release: 20160609
  35. # list of sources
  36. Source0: https://github.com/facebook/watchman/archive/v%{version}.tar.gz
  37. Patch0: watchman.patch
  38. # build information
  39. BuildPreReq: OpenPKG, openpkg >= 20160101, autoconf, automake
  40. PreReq: OpenPKG, openpkg >= 20160101
  41. %description
  42. Watchman exists to watch files and record when they actually change.
  43. It can also trigger actions (such as rebuilding assets) when
  44. matching files change.
  45. %track
  46. prog watchman = {
  47. version = %{version}
  48. url = https://github.com/facebook/watchman/releases
  49. regex = v(\d+\.\d+\.\d+)\.tar\.gz
  50. }
  51. %prep
  52. %setup -q
  53. %patch -p0
  54. %build
  55. sh autogen.sh
  56. CC="%{l_cc}" \
  57. CFLAGS="%{l_cflags -O}" \
  58. CPPFLAGS="%{l_cppflags}" \
  59. LDFLAGS="%{l_ldflags}" \
  60. ./configure \
  61. --prefix=%{l_prefix} \
  62. --enable-conffile=%{l_prefix}/etc/watchman/watchman.conf \
  63. --enable-statedir=%{l_prefix}/var/watchman/sockets
  64. %{l_make} %{l_mflags -O}
  65. %install
  66. %{l_shtool} mkdir -f -p -m 755 \
  67. $RPM_BUILD_ROOT%{l_prefix}/bin \
  68. $RPM_BUILD_ROOT%{l_prefix}/etc/watchman \
  69. $RPM_BUILD_ROOT%{l_prefix}/man/cat1 \
  70. $RPM_BUILD_ROOT%{l_prefix}/var/watchman/sockets
  71. %{l_shtool} install -c -s -m 755 \
  72. watchman $RPM_BUILD_ROOT%{l_prefix}/bin/
  73. %{l_shtool} install -c -m 644 \
  74. README.markdown $RPM_BUILD_ROOT%{l_prefix}/man/cat1/watchman.1
  75. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  76. %{l_files_std} \
  77. '%attr(1777,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/watchman/sockets'
  78. %files -f files
  79. %clean