]> git.pld-linux.org Git - packages/barcode.git/blobdiff - barcode.spec
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep
[packages/barcode.git] / barcode.spec
index 9cfadf88a8d8cefba25ce603c22e9a66e4f6ae88..da900f3771d1e5917a75d49a904b1ee3123b5ea9 100644 (file)
@@ -1,26 +1,38 @@
-%define prefix   /usr
-%define sysconfdir     /etc
-
 Summary:       GNU barcode
+Summary(pl.UTF-8):     GNU barcode - narzędzie do kodów paskowych
 Name:          barcode
 Version:       0.98
-Release:       1
+Release:       4
 License:       GPL
-Group:      Applications/Graphics
-Source0:       ftp://ar.linux.it/pub/barcode/%{name}-%{ver}.tar.gz
+Group:         Applications/Graphics
+Source0:       ftp://ar.linux.it/pub/barcode/%{name}-%{version}.tar.gz
+# Source0-md5: 7f10c3307b84a19a4ab2fa4b3f2974da
+Patch0:                %{name}-DESTDIR.patch
+URL:           http://gnu.systemy.it/software/barcode/
+BuildRequires: autoconf
+BuildRequires: automake
+Conflicts:     xscreensaver <= 1:4.16-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-URL:           http://gnu.systemy.it/software/barcode
 
 %description
 This is GNU-barcode. The package is meant to solve most needs in
 barcode creation with a conventional printer. It can create printouts
 for the conventional product tagging standards: UPC-A, UPC-E, EAN-13,
-EAN-8, ISBN, as well as a few other formats. Ouput is generated as
+EAN-8, ISBN, as well as a few other formats. Output is generated as
 either Postscript or Encapsulated Postscript (other back-ends may be
 added if needed).
 
+%description -l pl.UTF-8
+To jest GNU-barcode. Ten pakiet ma za zadanie zaspokoić większość
+potrzeb związanych z drukowaniem kodów paskowych na konwencjonalnej
+drukarce. Może tworzyć wydruki kodów w standardach: UPC-A, UPC-E,
+EAN-13, EAN-8, ISBN, a także kilku innych. Dane wyjściowe są
+generowane w formacie Postscript lub Encapsulated Postscript (w razie
+potrzeby mogą być dodane inne backendy).
+
 %package devel
 Summary:       GNU barcode files for development
+Summary(pl.UTF-8):     Pliki do programowania z użyciem GNU barcode
 Group:         Development/Libraries
 
 %description devel
@@ -31,39 +43,54 @@ EAN-8, ISBN, as well as a few other formats. Ouput is generated as
 either Postscript or Encapsulated Postscript (other back-ends may be
 added if needed).
 
-This package contain the C header, the static library and man page for
-development.
+This subpackage contains the C header, the static library and man page
+for developing programs that use GNU barcode.
 
-%prep
-%setup -q
+%description devel -l pl.UTF-8
+To jest GNU-barcode. Ten pakiet ma za zadanie zaspokoić większość
+potrzeb związanych z drukowaniem kodów paskowych na konwencjonalnej
+drukarce. Może tworzyć wydruki kodów w standardach: UPC-A, UPC-E,
+EAN-13, EAN-8, ISBN, a także kilku innych. Dane wyjściowe są
+generowane w formacie Postscript lub Encapsulated Postscript (w razie
+potrzeby mogą być dodane inne backendy).
 
-%ifarch alpha
-  ARCH_FLAGS="--host=alpha-redhat-linux"
-%endif
+Ten podpakiet zawiera plik nagłówkowy do C, statyczną bibliotekę oraz
+stronę manuala do tworzenia programów używających GNU barcode.
 
-CFLAGS="$RPM_OPT_FLAGS" ./configure $ARCH_FLAGS --prefix=%{prefix} --sysconfdir=%{sysconfdir}
+%prep
+%setup -q
+%patch0 -p1
 
 %build
+%{__aclocal}
+%{__autoconf}
+%configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644,root,root,755)
+%post  -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%doc COPYING ChangeLog INSTALL README TODO doc/*.html doc/*.pdf doc/*.ps
+%postun        -p      /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%attr(0755,root,root) %{_bindir}/barcode
-%attr(0644,root,root) %{_infodir}/barcode.info*
-%attr(0644,root,root) %{_mandir}/man1/barcode.1*
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README TODO
+%attr(755,root,root) %{_bindir}/barcode
+%{_infodir}/barcode.info*
+%{_mandir}/man1/barcode.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(0644,root,root) %{_includedir}/barcode.h
-%attr(0644,root,root) %{_libdir}/libbarcode.a
-%attr(0644,root,root) %{_mandir}/man3/barcode.3*
+%{_includedir}/*
+%{_libdir}/lib*.a
+%{_mandir}/man3/*
This page took 0.050476 seconds and 4 git commands to generate.