3 %bcond_without parport # parallel port (IEEE 1284) support
5 Summary: Library for checking ink level of a printer
6 Summary(pl.UTF-8): Biblioteka do sprawdzania poziomu atramentu drukarki
12 Source0: https://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz
13 # Source0-md5: d08678cdc060fcc0e7c65b3645d03821
14 Patch0: %{name}-parport.patch
15 URL: https://libinklevel.sourceforge.net/
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake
18 %{?with_parport:BuildRequires: libieee1284-devel}
19 BuildRequires: libtool
20 BuildRequires: libusb-devel >= 1.0.22
21 BuildRequires: libxml2-devel >= 2.0
22 BuildRequires: pkgconfig >= 1:0.26
23 Requires: libusb >= 1.0.22
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Libinklevel is a library for checking the ink level of printer. It
28 supports printers attached via parallel port or USB.
29 Supported printers list can be found here:
30 https://libinklevel.sourceforge.net/index.html#supported
32 %description -l pl.UTF-8
33 Libinklevel jest biblioteką wykorzystywaną do sprawdzania poziomu
34 atramentu w drukarce. Wspierane są drukarki podłączone za
35 pośrednictwem portu równoległego oraz USB.
36 Listę aktualnie obsługiwanych drukarek można znaleźć tutaj:
37 https://libinklevel.sourceforge.net/index.html#supported
40 Summary: Header file for libinklevel
41 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libinklevel
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 %{?with_parport:Requires: libieee1284-devel}
45 Requires: libusb-devel >= 1.0
48 Header file for libinklevel.
50 %description devel -l pl.UTF-8
51 Plik nagłówkowy biblioteki libinklevel.
54 Summary: Static libinklevel library
55 Summary(pl.UTF-8): Statyczna biblioteka libinklevel
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
60 Static libinklevel library.
62 %description static -l pl.UTF-8
63 Statyczna biblioteka libinklevel.
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR=$RPM_BUILD_ROOT
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog NEWS README
95 %attr(755,root,root) %{_libdir}/libinklevel.so.*.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libinklevel.so.5
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libinklevel.so
101 %{_libdir}/libinklevel.la
102 %{_includedir}/inklevel.h
105 %defattr(644,root,root,755)
106 %{_libdir}/libinklevel.a