]>
Commit | Line | Data |
---|---|---|
37e61e62 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without parport # parallel port (IEEE 1284) support | |
4 | ||
92701a7a | 5 | Summary: Library for checking ink level of a printer |
33874a22 | 6 | Summary(pl.UTF-8): Biblioteka do sprawdzania poziomu atramentu drukarki |
92701a7a | 7 | Name: libinklevel |
37e61e62 | 8 | Version: 0.9.3 |
92701a7a | 9 | Release: 1 |
c525ce55 | 10 | License: GPL v2 |
92701a7a | 11 | Group: Libraries |
fb9f127d | 12 | Source0: http://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz |
37e61e62 JB |
13 | # Source0-md5: 572eda08cc561414673fd798b6c7bc2a |
14 | Patch0: %{name}-parport.patch | |
b115805d | 15 | URL: http://libinklevel.sourceforge.net/ |
37e61e62 JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake | |
18 | %{?with_parport:BuildRequires: libieee1284-devel} | |
19 | BuildRequires: libtool | |
20 | BuildRequires: libusb-devel >= 1.0.17 | |
c525ce55 | 21 | BuildRequires: pkgconfig >= 1:0.26 |
37e61e62 | 22 | Requires: libusb >= 1.0.17 |
92701a7a | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | Libinklevel is a library for checking the ink level of printer. It | |
94be0983 | 27 | supports printers attached via parallel port or USB. |
1fb40b02 | 28 | Supported printers list can be found here: |
3f34e51f | 29 | http://libinklevel.sourceforge.net/index.html#supported |
92701a7a | 30 | |
6bdbdc34 JR |
31 | %description -l pl.UTF-8 |
32 | Libinklevel jest biblioteką wykorzystywaną do sprawdzania poziomu | |
33 | atramentu w drukarce. Wspierane są drukarki podłączone za | |
34 | pośrednictwem portu równoległego oraz USB. | |
35 | Listę aktualnie obsługiwanych drukarek można znaleźć tutaj: | |
3f34e51f | 36 | http://libinklevel.sourceforge.net/index.html#supported |
92701a7a | 37 | |
38 | %package devel | |
fb9f127d JB |
39 | Summary: Header file for libinklevel |
40 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libinklevel | |
300f1fb8 | 41 | Group: Development/Libraries |
97bb6e06 | 42 | Requires: %{name} = %{version}-%{release} |
37e61e62 | 43 | %{?with_parport:Requires: libieee1284-devel} |
c525ce55 | 44 | Requires: libusb-devel >= 1.0 |
92701a7a | 45 | |
46 | %description devel | |
fb9f127d | 47 | Header file for libinklevel. |
92701a7a | 48 | |
6bdbdc34 | 49 | %description devel -l pl.UTF-8 |
fb9f127d JB |
50 | Plik nagłówkowy biblioteki libinklevel. |
51 | ||
52 | %package static | |
53 | Summary: Static libinklevel library | |
54 | Summary(pl.UTF-8): Statyczna biblioteka libinklevel | |
55 | Group: Development/Libraries | |
56 | Requires: %{name}-devel = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libinklevel library. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libinklevel. | |
92701a7a | 63 | |
64 | %prep | |
b29eb9c8 | 65 | %setup -q |
37e61e62 JB |
66 | %if %{with parport} |
67 | %patch0 -p1 | |
68 | %endif | |
92701a7a | 69 | |
70 | %build | |
37e61e62 JB |
71 | %{__libtoolize} |
72 | %{__aclocal} -I m4 | |
73 | %{__autoconf} | |
74 | %{__autoheader} | |
75 | %{__automake} | |
fb9f127d JB |
76 | %configure |
77 | %{__make} | |
ceef46e2 | 78 | |
92701a7a | 79 | %install |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
fb9f127d | 83 | DESTDIR=$RPM_BUILD_ROOT |
92701a7a | 84 | |
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
94be0983 | 88 | %post -p /sbin/ldconfig |
89 | %postun -p /sbin/ldconfig | |
92701a7a | 90 | |
91 | %files | |
92 | %defattr(644,root,root,755) | |
fb9f127d JB |
93 | %doc AUTHORS ChangeLog NEWS README |
94 | %attr(755,root,root) %{_libdir}/libinklevel.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libinklevel.so.5 | |
92701a7a | 96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
b29eb9c8 | 99 | %attr(755,root,root) %{_libdir}/libinklevel.so |
fb9f127d | 100 | %{_libdir}/libinklevel.la |
b29eb9c8 | 101 | %{_includedir}/inklevel.h |
fb9f127d JB |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libinklevel.a |