From e468f2025655da5524229bb4ca067e80c71dba15 Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Jul 07 2005 15:21:02 +0000 Subject: auto-import barcode-0.98-5 on branch devel from barcode-0.98-5.src.rpm initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..9ea1d63 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +barcode-0.98.tar.gz diff --git a/barcode-install-info.patch b/barcode-install-info.patch new file mode 100644 index 0000000..d74918d --- /dev/null +++ b/barcode-install-info.patch @@ -0,0 +1,14 @@ +--- barcode-0.98/doc/doc.barcode.orig 2005-07-07 16:27:14.632811312 +0200 ++++ barcode-0.98/doc/doc.barcode 2005-07-07 16:31:21.607265488 +0200 +@@ -23,6 +23,11 @@ + + @comment %**start of header + @setfilename barcode.info ++@dircategory Text creation and manipulation ++@dircategory GNU libraries ++@direntry ++* Barcode: (barcode). Barcode generation from text strings. ++@end direntry + @settitle Barcode @value{version} + @iftex + @afourpaper diff --git a/barcode.spec b/barcode.spec new file mode 100644 index 0000000..361596d --- /dev/null +++ b/barcode.spec @@ -0,0 +1,92 @@ +Summary: generates barcodes from text strings +Name: barcode +Version: 0.98 +Release: 5%{?dist} +License: GPL +Group: Applications/Text +Source0: ftp://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz +Patch0: barcode-install-info.patch +URL: http://www.gnu.org/software/barcode/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires(preun): /sbin/install-info +Requires(post): /sbin/install-info +BuildRequires: tetex, texinfo + +%description +Barcode 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 either Postscript or +Encapsulated Postscript. + +%package devel +Summary: Header files and libraries for %{name} development +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains the header files and libraries needed +to develop programs that use the %{name} library. + +%prep +%setup -q +%patch0 -p1 -b .categories + +%build +%configure +make %{?_smp_mflags} + +# Regenerate documentation +make -C doc barcode.info + +%install +rm -rf %{buildroot} +%makeinstall + +# Fix locations according to FHS +mkdir -p %{buildroot}%{_mandir} +mkdir -p %{buildroot}%{_infodir} +mv %{buildroot}/usr/man/* %{buildroot}%{_mandir} +mv %{buildroot}/usr/info/* %{buildroot}%{_infodir} + +%clean +rm -rf %{buildroot} + +%post +/sbin/install-info %{_infodir}/barcode.info.gz %{_infodir}/dir + +%preun +if [ $1 = 0 ]; then + /sbin/install-info --delete %{_infodir}/barcode.info.gz %{_infodir}/dir +fi + +%files +%defattr(-, root, root) +%doc COPYING ChangeLog README TODO +%{_bindir}/barcode +%{_mandir}/man1/barcode.1.gz +%{_infodir}/barcode.info.gz + +%files devel +%defattr(-, root, root) +%{_includedir}/*.h +%{_libdir}/*.a +%{_mandir}/man3/barcode.3.gz + +%changelog +* Thu Jul 07 2005 Andreas Thienemann 0.98-5 +- Added install-info support to the texinfo file. +- Fixed minor spec errors + +* Thu Jul 01 2005 Andreas Thienemann 0.98-4 +- Added info-install in post and pre stage. + +* Thu Jul 01 2005 Andreas Thienemann 0.98-3 +- Added %%{epoch} tag to the -devel requires. + +* Thu Jun 30 2005 Andreas Thienemann 0.98-2 +- spec cleanup. + +* Wed Jun 29 2005 Andreas Thienemann 0.98-1 +- Initial RPM release. + diff --git a/sources b/sources index e69de29..fe5ba2d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7f10c3307b84a19a4ab2fa4b3f2974da barcode-0.98.tar.gz