115 lines
3.4 KiB
RPMSpec
115 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package cfengine (Version 2.2.8)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: cfengine
|
|
BuildRequires: bison db-devel flex openssl-devel texlive
|
|
License: GPL v2 or later
|
|
Group: Productivity/Networking/System
|
|
AutoReqProv: on
|
|
Version: 2.2.8
|
|
Release: 6
|
|
Summary: A Tool to Maintain Complicated Networks
|
|
Url: http://www.cfengine.org/
|
|
Source: %{name}-%{version}.tar.bz2
|
|
Source2: cfenvd
|
|
Source3: cfexecd
|
|
Source4: cfservd
|
|
Patch: %{name}-%{version}-ia64.dif
|
|
Patch3: %{name}-%{version}-chflags.dif
|
|
Patch4: %{name}-%{version}-automake.dif
|
|
Patch5: %{name}-%{version}-strict-aliasing-fix.diff
|
|
Patch7: %{name}-%{version}-printf.diff
|
|
Patch9: %{name}-%{version}-overflow.diff
|
|
Patch10: %{name}-%{version}-free.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
PreReq: %install_info_prereq
|
|
|
|
%description
|
|
GNU cfengine is an abstract programming language for system
|
|
administrators of huge heterogeneous networks. With cfengine, system
|
|
administrators have an easy and elegant way to maintain complicated
|
|
networks.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Mark Burgess
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
%patch7
|
|
%patch9
|
|
%patch10
|
|
|
|
%build
|
|
%{suse_update_config -f}
|
|
autoreconf -fi
|
|
CC=gcc CFLAGS="$RPM_OPT_FLAGS" \
|
|
./configure --prefix=/usr \
|
|
--with-docs \
|
|
--libdir=%{_libdir} \
|
|
--mandir=%{_mandir} \
|
|
--infodir=%{_infodir} \
|
|
--datadir=%{_defaultdocdir}
|
|
make
|
|
chmod a-x inputs/cf.preconf.example
|
|
|
|
%install
|
|
make "DESTDIR=$RPM_BUILD_ROOT" install
|
|
install -d $RPM_BUILD_ROOT/{usr/sbin,etc/init.d}
|
|
install -m 744 %{S:2} %{S:3} %{S:4} $RPM_BUILD_ROOT/etc/init.d/
|
|
ln -sf ../../etc/init.d/cfenvd $RPM_BUILD_ROOT/%{_sbindir}/rccfenvd
|
|
ln -sf ../../etc/init.d/cfexecd $RPM_BUILD_ROOT/%{_sbindir}/rccfexecd
|
|
ln -sf ../../etc/init.d/cfservd $RPM_BUILD_ROOT/%{_sbindir}/rccfservd
|
|
rm $RPM_BUILD_ROOT/%{_libdir}/libcfengine.la
|
|
rm $RPM_BUILD_ROOT/%{_libdir}/libcfengine.a
|
|
|
|
%clean
|
|
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}-Reference.info.gz
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}-Tutorial.info.gz
|
|
|
|
%postun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}-Reference.info.gz
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}-Tutorial.info.gz
|
|
%insserv_cleanup
|
|
|
|
%preun
|
|
%stop_on_removal cfenvd
|
|
%stop_on_removal cfservd
|
|
%stop_on_removal cfexecd
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog NEWS README COPYING TODO inputs/*.example
|
|
/usr/sbin/*
|
|
%{_mandir}/man?/*
|
|
%{_infodir}/*.info*
|
|
%attr(0755,root,root) %config /etc/init.d/*
|
|
|
|
%changelog
|