Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > 4322fff92d91910e777f21c36d8a5966 > files > 3

libinklevel-0.7.1-2mdv2008.0.src.rpm

##### GENERAL STUFF #####

%define libname %mklibname inklevel 4
%define develname %mklibname -d inklevel
%define old_libname %mklibname inklevel 2

Summary:	Library to determine the ink levels of HP and Epson inkjets
Name:		libinklevel
Version:	0.7.1
Release:	%mkrel 2
License:	GPL
Group:		Publishing
Url:		http://libinklevel.sourceforge.net/

##### SOURCE FILES #####

Source: http://heanet.dl.sourceforge.net/sourceforge/libinklevel/libinklevel-%{version}.tar.gz
Patch0: libinklevel-0.7.1-Makefile.patch

##### ADDITIONAL DEFINITIONS #####

BuildRoot:	%{_tmppath}/%{name}-buildroot
BuildRequires:	libieee1284-devel

##### 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
Obsoletes:	%old_libname

%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 %{develname}
Summary: 	Headers and links to compile against the "%{libname}" library
Requires: 	%{libname} = %{version}
Provides:	libinklevel-devel = %{version}-%{release}
Obsoletes:	%{libname}-devel
Obsoletes:	%{old_libname}-devel
Group:		Development/C

%description -n %{develname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.


##### PREP #####

%prep
%setup -q
%patch0 -p0
sed -i -e 's|$(DESTDIR)/lib|$(DESTDIR)/%{_lib}|' Makefile

##### BUILD #####

%build
%make

##### INSTALL #####

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT%{_prefix}

##### 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 %{develname}
%defattr(-,root,root)
%{_libdir}/*.so
%{_includedir}/*

##### CHANGELOG #####



%changelog
* Mon Jul 09 2007 Funda Wang <fundawang@mandriva.org> 0.7.1-2mdv2008.0
+ Revision: 50578
- Obsoletes old major
- fix build in x86_64
- New version


* Fri Jul 14 2006 Till Kamppeter <till@mandriva.com> 0.6.5-0.1mdv2007.0
- Updated to version 0.6.5rc2.

* Tue Feb 01 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.6.4-1mdk
- 0.6.4

* Sun Nov 28 2004 Till Kamppeter <till@mandrakesoft.com> 0.6.3-1mdk
- Updated to version 0.6.3.
- New URL.

* Mon Nov 01 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.5-3mdk
- add BuildRequires: libieee1284-devel