%define name libwcat %define version 1.0 %define release 2mdk %define major 1 %define libname %mklibname wcat %{major} Summary: Library for the watchcat software watchdog Name: %{name} Version: %{version} Release: %{release} License: LGPL Group: System/Libraries URL: http://oss.digirati.com.br/watchcatd/ Source0: http://oss.digirati.com.br/watchcatd/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libwcat is an API to watchcatd, a software watchdog that uses an approach not as drastic as the usual watchdog solutions. It tries to kill the locked process only. %package -n %{libname} Summary: Library for the watchcat software watchdog Group: System/Libraries %description -n %{libname} libwcat is an API to watchcatd, a software watchdog that uses an approach not as drastic as the usual watchdog solutions. It tries to kill the locked process only. %package -n %{libname}-devel Summary: Static library and header files for the watchcat library Group: Development/C Provides: %{name}-devel = %{version} Requires: %{libname} = %{version}-%{release} %description -n %{libname}-devel libwcat is an API to watchcatd, a software watchdog that uses an approach not as drastic as the usual watchdog solutions. It tries to kill the locked process only. This package contains the static libwcat library and its header files needed to compile applications that use libwcat. %prep %setup -q -n %{name}-%{version} %build export CFLAGS="%{optflags} -fPIC" %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} install -d %{buildroot}%{_libdir} install -d %{buildroot}%{_includedir} install -m755 %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/ install -m644 %{name}.a %{buildroot}%{_libdir}/ install -m644 watchcat.h %{buildroot}%{_includedir}/ ln -s %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/%{name}.so ln -s %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/%{name}.so.%{major} %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %changelog * Tue Jan 04 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0-2mdk - ahh, this one was allready packaged, use my spec file anyway * Thu Aug 19 2004 Lenny Cartier <lenny@mandrakesoft.com> 1.0-1mdk - from Michel Machado <michel@digirati.com.br> : - Minor fixes. * Thu Feb 05 2004 Andre Nathan <andre@digirati.com.br> 0.1-2mdk - Export CFLAGS before building; * Fri Jan 23 2004 Andre Nathan <andre@digirati.com.br> 0.1-1mdk - First version of the .spec.