]> git.pld-linux.org Git - packages/libinklevel.git/blame - libinklevel.spec
- updated to 0.9.3
[packages/libinklevel.git] / libinklevel.spec
CommitLineData
37e61e62
JB
1#
2# Conditional build:
3%bcond_without parport # parallel port (IEEE 1284) support
4
92701a7a 5Summary: Library for checking ink level of a printer
33874a22 6Summary(pl.UTF-8): Biblioteka do sprawdzania poziomu atramentu drukarki
92701a7a 7Name: libinklevel
37e61e62 8Version: 0.9.3
92701a7a 9Release: 1
c525ce55 10License: GPL v2
92701a7a 11Group: Libraries
fb9f127d 12Source0: http://downloads.sourceforge.net/libinklevel/%{name}-%{version}.tar.gz
37e61e62
JB
13# Source0-md5: 572eda08cc561414673fd798b6c7bc2a
14Patch0: %{name}-parport.patch
b115805d 15URL: http://libinklevel.sourceforge.net/
37e61e62
JB
16BuildRequires: autoconf >= 2.50
17BuildRequires: automake
18%{?with_parport:BuildRequires: libieee1284-devel}
19BuildRequires: libtool
20BuildRequires: libusb-devel >= 1.0.17
c525ce55 21BuildRequires: pkgconfig >= 1:0.26
37e61e62 22Requires: libusb >= 1.0.17
92701a7a 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Libinklevel is a library for checking the ink level of printer. It
94be0983 27supports printers attached via parallel port or USB.
1fb40b02 28Supported printers list can be found here:
3f34e51f 29http://libinklevel.sourceforge.net/index.html#supported
92701a7a 30
6bdbdc34
JR
31%description -l pl.UTF-8
32Libinklevel jest biblioteką wykorzystywaną do sprawdzania poziomu
33atramentu w drukarce. Wspierane są drukarki podłączone za
34pośrednictwem portu równoległego oraz USB.
35Listę aktualnie obsługiwanych drukarek można znaleźć tutaj:
3f34e51f 36http://libinklevel.sourceforge.net/index.html#supported
92701a7a 37
38%package devel
fb9f127d
JB
39Summary: Header file for libinklevel
40Summary(pl.UTF-8): Plik nagłówkowy biblioteki libinklevel
300f1fb8 41Group: Development/Libraries
97bb6e06 42Requires: %{name} = %{version}-%{release}
37e61e62 43%{?with_parport:Requires: libieee1284-devel}
c525ce55 44Requires: libusb-devel >= 1.0
92701a7a 45
46%description devel
fb9f127d 47Header file for libinklevel.
92701a7a 48
6bdbdc34 49%description devel -l pl.UTF-8
fb9f127d
JB
50Plik nagłówkowy biblioteki libinklevel.
51
52%package static
53Summary: Static libinklevel library
54Summary(pl.UTF-8): Statyczna biblioteka libinklevel
55Group: Development/Libraries
56Requires: %{name}-devel = %{version}-%{release}
57
58%description static
59Static libinklevel library.
60
61%description static -l pl.UTF-8
62Statyczna 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
80rm -rf $RPM_BUILD_ROOT
81
82%{__make} install \
fb9f127d 83 DESTDIR=$RPM_BUILD_ROOT
92701a7a 84
85%clean
86rm -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
This page took 0.095947 seconds and 4 git commands to generate.