]>
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 |
d479168d | 8 | Version: 0.9.5 |
92701a7a | 9 | Release: 1 |
c525ce55 | 10 | License: GPL v2 |
92701a7a | 11 | Group: Libraries |
d479168d JB |
12 | Source0: https://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz |
13 | # Source0-md5: d08678cdc060fcc0e7c65b3645d03821 | |
37e61e62 | 14 | Patch0: %{name}-parport.patch |
d479168d | 15 | URL: https://libinklevel.sourceforge.net/ |
37e61e62 JB |
16 | BuildRequires: autoconf >= 2.50 |
17 | BuildRequires: automake | |
18 | %{?with_parport:BuildRequires: libieee1284-devel} | |
19 | BuildRequires: libtool | |
d479168d JB |
20 | BuildRequires: libusb-devel >= 1.0.22 |
21 | BuildRequires: libxml2-devel >= 2.0 | |
c525ce55 | 22 | BuildRequires: pkgconfig >= 1:0.26 |
d479168d | 23 | Requires: libusb >= 1.0.22 |
92701a7a | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Libinklevel is a library for checking the ink level of printer. It | |
94be0983 | 28 | supports printers attached via parallel port or USB. |
1fb40b02 | 29 | Supported printers list can be found here: |
d479168d | 30 | https://libinklevel.sourceforge.net/index.html#supported |
92701a7a | 31 | |
6bdbdc34 JR |
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: | |
d479168d | 37 | https://libinklevel.sourceforge.net/index.html#supported |
92701a7a | 38 | |
39 | %package devel | |
fb9f127d JB |
40 | Summary: Header file for libinklevel |
41 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libinklevel | |
300f1fb8 | 42 | Group: Development/Libraries |
97bb6e06 | 43 | Requires: %{name} = %{version}-%{release} |
37e61e62 | 44 | %{?with_parport:Requires: libieee1284-devel} |
c525ce55 | 45 | Requires: libusb-devel >= 1.0 |
92701a7a | 46 | |
47 | %description devel | |
fb9f127d | 48 | Header file for libinklevel. |
92701a7a | 49 | |
6bdbdc34 | 50 | %description devel -l pl.UTF-8 |
fb9f127d JB |
51 | Plik nagłówkowy biblioteki libinklevel. |
52 | ||
53 | %package static | |
54 | Summary: Static libinklevel library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka libinklevel | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static libinklevel library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka libinklevel. | |
92701a7a | 64 | |
65 | %prep | |
b29eb9c8 | 66 | %setup -q |
37e61e62 JB |
67 | %if %{with parport} |
68 | %patch0 -p1 | |
69 | %endif | |
92701a7a | 70 | |
71 | %build | |
37e61e62 JB |
72 | %{__libtoolize} |
73 | %{__aclocal} -I m4 | |
74 | %{__autoconf} | |
75 | %{__autoheader} | |
76 | %{__automake} | |
fb9f127d JB |
77 | %configure |
78 | %{__make} | |
ceef46e2 | 79 | |
92701a7a | 80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} install \ | |
fb9f127d | 84 | DESTDIR=$RPM_BUILD_ROOT |
92701a7a | 85 | |
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
94be0983 | 89 | %post -p /sbin/ldconfig |
90 | %postun -p /sbin/ldconfig | |
92701a7a | 91 | |
92 | %files | |
93 | %defattr(644,root,root,755) | |
fb9f127d JB |
94 | %doc AUTHORS ChangeLog NEWS README |
95 | %attr(755,root,root) %{_libdir}/libinklevel.so.*.*.* | |
96 | %attr(755,root,root) %ghost %{_libdir}/libinklevel.so.5 | |
92701a7a | 97 | |
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
b29eb9c8 | 100 | %attr(755,root,root) %{_libdir}/libinklevel.so |
fb9f127d | 101 | %{_libdir}/libinklevel.la |
b29eb9c8 | 102 | %{_includedir}/inklevel.h |
fb9f127d JB |
103 | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/libinklevel.a |