]> git.pld-linux.org Git - packages/libinklevel.git/blob - libinklevel.spec
- updated to 0.9.5
[packages/libinklevel.git] / libinklevel.spec
1 #
2 # Conditional build:
3 %bcond_without  parport # parallel port (IEEE 1284) support
4
5 Summary:        Library for checking ink level of a printer
6 Summary(pl.UTF-8):      Biblioteka do sprawdzania poziomu atramentu drukarki
7 Name:           libinklevel
8 Version:        0.9.5
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
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)
25
26 %description
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
31
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
38
39 %package devel
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
46
47 %description devel
48 Header file for libinklevel.
49
50 %description devel -l pl.UTF-8
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.
64
65 %prep
66 %setup -q
67 %if %{with parport}
68 %patch0 -p1
69 %endif
70
71 %build
72 %{__libtoolize}
73 %{__aclocal} -I m4
74 %{__autoconf}
75 %{__autoheader}
76 %{__automake}
77 %configure
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
83 %{__make} install \
84         DESTDIR=$RPM_BUILD_ROOT
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
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
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/libinklevel.so
101 %{_libdir}/libinklevel.la
102 %{_includedir}/inklevel.h
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/libinklevel.a
This page took 0.177794 seconds and 4 git commands to generate.