##### GENERAL STUFF ##### %define libname %mklibname inklevel 1 Summary: Library to determine the ink levels of HP and Epson inkjets Name: libinklevel Version: 0.5 Release: 2mdk License: GPL Group: Publishing Url: http://home.arcor.de/markusheinz/libinklevel.html ##### SOURCE FILES ##### Source: http://home.arcor.de/markusheinz/libinklevel-%{version}.tar.bz2 ##### ADDITIONAL DEFINITIONS ##### Provides: libinklevel BuildRoot: %{_tmppath}/%{name}-buildroot ##### SUB-PACKAGES ##### %description libinklevel is a library for checking the ink level of your printer on a system which runs Linux. It supports printers attached via parallel port or usb. Most current HP inkjets and several Epson inkjets are supported. %package -n %libname Summary: Library to determine the ink levels of HP and Epson inkjets Provides: libinklevel Group: Publishing %description -n %libname libinklevel is a library for checking the ink level of your printer on a system which runs Linux. It supports printers attached via parallel port or usb. Most current HP inkjets and several Epson inkjets are supported. %package -n %{libname}-devel Summary: Headers and links to compile against the "%{libname}" library Requires: %{libname} = %{version} Provides: libinklevel-devel Group: Development/C %description -n %{libname}-devel This package contains all files which one needs to compile programs using the "%{libname}" library. ##### PREP ##### %prep rm -rf $RPM_BUILD_DIR/libinklevel %setup -q -n libinklevel ##### BUILD ##### %build %make ##### INSTALL ##### %install rm -rf $RPM_BUILD_ROOT # Remove explicit setting of ownerships from the Makefile perl -p -i -e 's/-o root -g root//' Makefile # Remove calls of ldconfig from the Makefile perl -p -i -e 's/ldconfig/:/' Makefile %makeinstall DESTDIR=%{buildroot}/usr ##### PRE/POST INSTALL SCRIPTS ##### %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT ##### FILE LISTS FOR ALL BINARY PACKAGES ##### ##### libinklevel %files -n %libname %defattr(-,root,root) %doc COPYING README %{_libdir}/*.so.* ##### libinklevel-devel %files -n %{libname}-devel %defattr(-,root,root) %{_libdir}/*.so %{_includedir}/* ##### CHANGELOG ##### %changelog * Tue Sep 16 2002 Till Kamppeter <till@mandrakesoft.com> 0.5-2mdk - Fixed description text * Mon Sep 15 2002 Till Kamppeter <till@mandrakesoft.com> 0.5-1mdk - Initial release