libcgroup/libcgroup.spec

116 lines
3.4 KiB
RPMSpec
Raw Normal View History

2008-06-04 17:22:00 +00:00
Name: libcgroup
Summary: Tools and libraries to control and monitor control groups
Group: Development/Libraries
2008-12-29 13:32:26 +00:00
Version: 0.32.2
2009-01-05 14:43:59 +00:00
Release: 3%{?dist}
2008-06-04 17:22:00 +00:00
License: LGPLv2+
URL: http://libcg.sourceforge.net/
Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2
2008-12-29 13:51:46 +00:00
Patch0: http://downloads.sourceforge.net/libcg/fix_makefile_dep.patch
2008-06-04 17:22:00 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: byacc
BuildRequires: flex
BuildRequires: coreutils
2008-12-29 13:51:46 +00:00
BuildRequires: pam-devel
2008-10-23 09:04:57 +00:00
Requires(post): chkconfig
Requires(post): initscripts
Requires(preun): initscripts
Requires(preun): chkconfig
2009-01-05 14:43:59 +00:00
Requires: redhat-lsb
2008-06-04 17:22:00 +00:00
%description
Control groups infrastructure. The tools and library help manipulate, control,
administrate and monitor control groups and the associated controllers.
%package devel
Summary: Development libraries to develop applications that utilize control groups
Group: Development/Libraries
Requires: libcgroup = %{version}-%{release}
%description devel
It provides API to create/delete and modify cgroup nodes. It will also in the
future allow creation of persistent configuration for control groups and
provide scripts to manage that configuration.
%prep
%setup -q
2008-12-29 13:51:46 +00:00
%patch0 -p1
2008-06-04 17:22:00 +00:00
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
2008-10-23 09:04:57 +00:00
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
cp scripts/init.d/cgconfig $RPM_BUILD_ROOT/%{_initrddir}/cgconfig
cp scripts/init.d/cgred $RPM_BUILD_ROOT/%{_initrddir}/cgred
2008-06-04 17:22:00 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
2008-10-23 09:04:57 +00:00
%post
/sbin/ldconfig
#
# Do this later if required
#
/sbin/chkconfig --add cgred
/sbin/chkconfig --add cgconfig
%preun
/sbin/service cgred stop > /dev/null 2>&1 || :
/sbin/service cgconfig stop > /dev/null 2>&1 || :
/sbin/chkconfig --del cgconfig
/sbin/chkconfig --del cgred
2008-06-04 17:22:00 +00:00
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libcgroup-%{version}.so
%{_libdir}/libcgroup.so.*
%{_bindir}/cgexec
%{_bindir}/cgclassify
%{_sbindir}/cgconfigparser
2008-10-23 09:04:57 +00:00
%{_bindir}/cgrulesengd
%attr(0755,root,root) %{_initrddir}/cgconfig
%attr(0755,root,root) %{_initrddir}/cgred
%doc COPYING INSTALL README_daemon
2008-06-04 17:22:00 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/libcgroup.h
%{_libdir}/libcgroup.so
2008-10-23 09:04:57 +00:00
%doc COPYING INSTALL
2008-06-04 17:22:00 +00:00
%changelog
2009-01-05 14:43:59 +00:00
* Mon Jan 05 2009 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.32.2-3
- Fix redhat-lsb dependency
2008-12-29 13:51:46 +00:00
* Mon Dec 29 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.32.2-2
- Fix build dependencies
2008-12-29 13:32:26 +00:00
* Mon Dec 29 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.32.2-1
- Update to latest upstream
2008-10-23 09:04:57 +00:00
* Thu Oct 23 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.32.1-1
- Update to latest upstream
* Thu Sep 11 2008 Dhaval Giani <dhaval@linux-vnet.ibm.com> 0.31-1
- Update to latest upstream
* Sat Aug 2 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.1c-3
- Change release to fix broken upgrade path
2008-06-11 09:22:00 +00:00
* Wed Jun 11 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.1c-1
- Update to latest upstream
2008-06-04 17:22:00 +00:00
* Tue Jun 3 2008 Balbir Singh <balbir@linux.vnet.ibm.com> 0.1b-3
- Add post and postun. Also fix Requires for devel to depend on base n-v-r
* Sat May 31 2008 Balbir Singh <balbir@linux.vnet.ibm.com> 0.1b-2
- Fix makeinstall, Source0 and URL (review comments from Tom)
* Mon May 26 2008 Balbir Singh <balbir@linux.vnet.ibm.com> 0.1b-1
- Add a generatable spec file
* Tue May 20 2008 Balbir Singh <balbir@linux.vnet.ibm.com> 0.1-1
- Get the spec file to work
* Tue May 20 2008 Dhaval Giani <dhaval@linux.vnet.ibm.com> 0.01-1
- The first version of libcg