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