]> git.pld-linux.org Git - packages/libinklevel.git/blob - libinklevel.spec
- updated to 0.9.3
[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.3
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
12 Source0:        http://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz
13 # Source0-md5:  572eda08cc561414673fd798b6c7bc2a
14 Patch0:         %{name}-parport.patch
15 URL:            http://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.17
21 BuildRequires:  pkgconfig >= 1:0.26
22 Requires:       libusb >= 1.0.17
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
27 supports printers attached via parallel port or USB.
28 Supported printers list can be found here:
29 http://libinklevel.sourceforge.net/index.html#supported
30
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:
36 http://libinklevel.sourceforge.net/index.html#supported
37
38 %package devel
39 Summary:        Header file for libinklevel
40 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libinklevel
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 %{?with_parport:Requires:       libieee1284-devel}
44 Requires:       libusb-devel >= 1.0
45
46 %description devel
47 Header file for libinklevel.
48
49 %description devel -l pl.UTF-8
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.
63
64 %prep
65 %setup -q
66 %if %{with parport}
67 %patch0 -p1
68 %endif
69
70 %build
71 %{__libtoolize}
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README
94 %attr(755,root,root) %{_libdir}/libinklevel.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libinklevel.so.5
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/libinklevel.so
100 %{_libdir}/libinklevel.la
101 %{_includedir}/inklevel.h
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/libinklevel.a
This page took 0.188894 seconds and 3 git commands to generate.