nfs-ganesha.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. ##
  2. ## nfs-ganesha.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2009 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. # FIXME: rse: missing run-command script and configuration
  24. # package information
  25. Name: nfs-ganesha
  26. Summary: User-Space Caching NFS Proxy Server
  27. URL: http://nfs-ganesha.sourceforge.net/
  28. Vendor: Philippe Deniel, Thomas Leibovici, Jacques-Charles Lafoucriere
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: Filesystem
  33. License: GPL
  34. Version: 0.99.56
  35. Release: 20090709
  36. # package options
  37. %option with_kerberos no
  38. # list of sources
  39. Source0: http://switch.dl.sourceforge.net/nfs-ganesha/nfs-ganesha-%{version}.tar.bz2
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20060823
  44. PreReq: OpenPKG, openpkg >= 20060823
  45. %if "%{with_kerberos}" == "yes"
  46. BuildPreReq: kerberos
  47. PreReq: kerberos
  48. %endif
  49. AutoReq: no
  50. AutoReqProv: no
  51. %description
  52. NFS-GANESHA is a NFS proxy server running in User Space.
  53. %track
  54. prog nfs-ganesha = {
  55. version = %{version}
  56. url = ftp://ftp.nfs-ganesha.org/pub/nfs-ganesha/
  57. regex = nfs-ganesha-(__VER__)\.tar\.gz
  58. }
  59. %prep
  60. %setup -q
  61. %build
  62. CC="%{l_cc}" \
  63. CXX="%{l_cxx}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. CXXFLAGS="%{l_cxxflags -O}" \
  66. CPPFLAGS="%{l_cppflags kerberos .}" \
  67. LDFLAGS="%{l_ldflags}" \
  68. ./configure \
  69. --prefix=%{l_prefix} \
  70. --with-fsal=PROXY \
  71. %if "%{with_kerberos}" == "yes"
  72. --enable-gssrpc \
  73. --with-krb5%{l_prefix}
  74. %else
  75. --disable-gssrpc
  76. %endif
  77. %{l_make} %{l_mflags -O}
  78. %install
  79. rm -rf $RPM_BUILD_ROOT
  80. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  81. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  82. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  83. %files -f files
  84. %clean
  85. rm -rf $RPM_BUILD_ROOT