Summary: GNU barcode
Summary(pl.UTF-8): GNU barcode - narzędzie do kodów paskowych
Name: barcode
-Version: 0.98
-Release: 5
-License: GPL
+Version: 0.99
+Release: 1
+License: GPL v3+
Group: Applications/Graphics
-Source0: http://ftp.gnu.org/gnu/barcode/%{name}-%{version}.tar.gz
-# Source0-md5: 7f10c3307b84a19a4ab2fa4b3f2974da
-Patch0: %{name}-DESTDIR.patch
-Patch1: format-security.patch
+Source0: http://ftp.gnu.org/gnu/barcode/%{name}-%{version}.tar.xz
+# Source0-md5: cdc504ee1020e27fbfeebcb0718de054
+Patch0: format-security.patch
+Patch1: %{name}-info.patch
+Patch2: %{name}-lib.patch
URL: http://www.gnu.org/software/barcode/
-BuildRequires: autoconf
-BuildRequires: automake
+BuildRequires: autoconf >= 2.65
+BuildRequires: automake >= 1.5
+BuildRequires: gettext-tools >= 0.18
+BuildRequires: libpaper-devel
+BuildRequires: libtool >= 2:2
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo
+BuildRequires: xz
Conflicts: xscreensaver <= 1:4.16-2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary: GNU barcode files for development
Summary(pl.UTF-8): Pliki do programowania z użyciem GNU barcode
Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
%description devel
This is GNU-barcode. The package is meant to solve most needs in
either Postscript or Encapsulated Postscript (other back-ends may be
added if needed).
-This subpackage contains the C header, the static library and man page
-for developing programs that use GNU barcode.
+This subpackage contains the C header file for developing programs
+that use GNU barcode.
%description devel -l pl.UTF-8
To jest GNU-barcode. Ten pakiet ma za zadanie zaspokoić większość
generowane w formacie Postscript lub Encapsulated Postscript (w razie
potrzeby mogą być dodane inne backendy).
-Ten podpakiet zawiera plik nagłówkowy do C, statyczną bibliotekę oraz
-stronę manuala do tworzenia programów używających GNU barcode.
+Ten podpakiet zawiera plik nagłówkowy języka C do tworzenia programów
+używających GNU barcode.
+
+%package static
+Summary: GNU barcode static library
+Summary(pl.UTF-8): Biblioteka statyczna GNU barcode
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+GNU barcode static library.
+
+%description static -l pl.UTF-8
+Biblioteka statyczna GNU barcode.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
-%{__aclocal}
+%{__libtoolize}
+%{__aclocal} -I m4
%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure
%{__make}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/postshell
+%post -p /sbin/postshell
+/sbin/ldconfig
-/usr/sbin/fix-info-dir -c %{_infodir}
-%postun -p /sbin/postshell
+%postun -p /sbin/postshell
+/sbin/ldconfig
-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
-%doc ChangeLog README TODO
+%doc ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/barcode
+%attr(755,root,root) %{_libdir}/libbarcode.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbarcode.so.0
%{_infodir}/barcode.info*
-%{_mandir}/man1/barcode.1*
%files devel
%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbarcode.so
+%{_libdir}/libbarcode.la
%{_includedir}/barcode.h
+
+%files static
+%defattr(644,root,root,755)
%{_libdir}/libbarcode.a
-%{_mandir}/man3/barcode.3*