Advertisement
rbass

RPM Spec Cfengine 3.6.1

Jul 31st, 2014
2,614
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %define debug_package %{nil}
  2. %define bin_path "/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/sbin:/opt/freeware/bin/:/usr/gnu/bin"
  3.  
  4. Name         : cfengine
  5. Summary      : A tool to maintain complicated networks
  6. Version      : 3.6.1
  7. Release      : 1
  8. epoch        : 201407231
  9. URL          : http://www.cfengine.org
  10. Vendor       : %{__spec_vendor}
  11. License      : GPL
  12. Group        : System Environment/Client Management
  13. Packager     : R Bass <rbass23123@gmail.com>
  14. Distribution : %{__spec_distribution}
  15. Source       : %{name}-%{version}.tar.gz
  16. BuildRoot    : %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  17.  
  18. %ifos linux
  19. Requires     : tokyocabinet db4 openssl coreutils pcre
  20. BuildRequires : tokyocabinet tokyocabinet-devel db4 db4-devel openssl openssl-devel pcre-devel
  21. ExclusiveArch : i386 x86_64 ppc ppc64
  22. %endif
  23.  
  24. %description
  25. Cfengine is the standalone, open-source datacenter management platform run by leading enterprises since 1993. Customize your IT systems, align to network, business and regulatory needs, monitor problems, automatically repair and maintain systems more effectively than with proprietary software. Cope with new and legacy systems and adopt on a phased basis. Cfengine yields reduced costs, improved efficiency and higher return on investment for the lowest cost of adoption in the industry!
  26.  
  27. Authors:
  28. --------
  29.     Mark Burgess
  30.  
  31. %prep
  32. [ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}
  33. mkdir -p %{buildroot}
  34.  
  35. %setup -q
  36.  
  37. %build
  38. export CFLAGS="-g -O2 -D_FORTIFY_SOURCE=0"
  39.  
  40. make dist clean
  41.  
  42. %configure \
  43.  --prefix=/var/cfengine \
  44.  --includedir=/usr/include \
  45.  --libdir=/usr/lib64 \
  46.  --mandir=/usr/share/man \
  47.  --infodir=/usr/share/info \
  48.  --sbindir=/var/cfengine/bin \
  49.  --with-tokyocabinet \
  50.  --with-workdir=/var/cfengine \
  51.  --with-openssl=/usr \
  52.  --with-pcre \
  53.  --without-mysql \
  54.  --without-sql \
  55.  --without-lmdb \
  56.  --without-postgresql \
  57.  --without-libvirt
  58.  
  59. make
  60. make DESTDIR=${RPM_BUILD_ROOT} install
  61.  
  62.  
  63. %files
  64. %defattr(-,root,root)
  65. %{_mandir}/man?/*
  66. /var/cfengine/*
  67. %{_libdir}/libpromises.la
  68. %{_libdir}/libpromises.so*
  69. /usr/share/%{name}*
  70.  
  71.  
  72. %pre
  73. export PATH=$PATH:%bin_path
  74.  
  75. %post
  76. export PATH=$PATH:%bin_path
  77.  
  78. %changelog
  79. * Tue Jul 31 2014 R Bass <rbass23123@gmail.com>
  80. - build for 3.6.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement