%define devallocver 0.5-5 Summary: MLS Utilities Name: devallocator Version: 0.5.5 Release: 2 License: GPL Group: System Environment/Base Source: http://prdownloads.sourceforge.net/devallocator/dev_allocator-%{devallocver}.tgz Patch: devallocator-rhat.patch URL: http://www.TrustedCS.com BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(pre): /sbin/chkconfig Requires(post):/sbin/chkconfig BuildRequires: libxml2-devel libselinux-devel audit-libs-devel %description TCS application to manage the allocation and unallocation of devices. The TCS device allocation library provides an interface for applications to utilize the Device Allocation services. %package devel Summary: TCS Device Allocation API Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} Requires: devallocator = %{version}-%{release} %description devel The TCS Device Allocation API provides an interface for applications to utilize the Device Allocation services. %prep %setup -q -n dev_allocator %patch -p1 -b .rhat %build make %install rm -rf %{buildroot} make LIBDIR="%{buildroot}%{_libdir}" ROOT="%{buildroot}" install rm -rf %{buildroot}/%{_libdir}/libdevallocation.a %clean rm -rf %{buildroot} %preun if [ "$1" = "0" ]; then /sbin/chkconfig --del devallocator fi %post /sbin/ldconfig /sbin/chkconfig --add devallocator %postun -p /sbin/ldconfig %files devel %defattr(-,root,root) %{_includedir}/selinux/devallocation.h /%{_libdir}/libdevallocation.so %files %defattr(-,root,root) %attr(4755,root,root) %{_bindir}/dev_allocator %{_sbindir}/dev_allocator_config /etc/rc.d/init.d/devallocator %dir /etc/devallocation %config(noreplace) /etc/devallocation/supported_device_classes.conf /%{_libdir}/libdevallocation.so.* %dir /%{_libdir}/devallocation /%{_libdir}/devallocation/* %dir /usr/share/devallocation /usr/share/devallocation/* %doc /usr/share/man/man1/*.1.gz %changelog * Thu Jun 8 2006 Dan Walsh 0.5.4-2 - More Fixes to spec file * Mon May 15 2006 Dan Walsh 0.5.4-1 - Fixes to spec file * Fri Oct 14 2005 Cory Olmo 0.4-1 - Switched license to GPL * Tue Aug 23 2005 Cory Olmo 0.3-1 - Added support for floppy devices * Wed Jun 29 2005 Cory Olmo 0.2-1 - Bug fixes for handling initial unallocation of devices * Fri May 27 2005 Cory Olmo 0.1-1 - Initial version