Browse Source

barcode package creation

Signed-off-by: tuibuilder_pel7x64builder0 <tuibuilder@powerel.org>
master
tuibuilder_pel7x64builder0 5 years ago
parent
commit
bede3288b7
  1. 21
      SOURCES/barcode-configure.patch
  2. 14
      SOURCES/barcode-install-info.patch
  3. 144
      SPECS/barcode.spec

21
SOURCES/barcode-configure.patch

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
--- barcode-0.98/Makefile.in.orig 2005-07-07 23:07:48.513990181 +0200
+++ barcode-0.98/Makefile.in 2005-07-07 23:08:53.716905115 +0200
@@ -11,12 +11,12 @@
LDFLAGS = -L. -l$(TARGET) @LIBPAPER@
prefix = @prefix@
-BINDIR = $(prefix)/bin
-LIBDIR = $(prefix)/lib
-INCDIR = $(prefix)/include
-MAN1DIR = $(prefix)/man/man1
-MAN3DIR = $(prefix)/man/man3
-INFODIR = $(prefix)/info
+BINDIR = $(bindir)
+LIBDIR = $(libdir)
+INCDIR = $(includedir)
+MAN1DIR = $(mandir)/man1
+MAN3DIR = $(mandir)/man3
+INFODIR = $(infodir)
# getopt may be installed or not, if not take our copy
GETOPT_O = @GETOPT_O@

14
SOURCES/barcode-install-info.patch

@ -0,0 +1,14 @@ @@ -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

144
SPECS/barcode.spec

@ -0,0 +1,144 @@ @@ -0,0 +1,144 @@
Summary: generates barcodes from text strings
Name: barcode
Version: 0.98
Release: 23%{?dist}
License: GPLv2+
Group: Applications/Text
Source0: ftp://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz
Patch0: barcode-configure.patch
Patch1: 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: %{_bindir}/texindex, %{_bindir}/dvips
BuildRequires: %{_bindir}/makeinfo, ghostscript

%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}%{?_isa} = %{version}-%{release}
Provides: %{name}-static = %{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 .directories
%patch1 -p1 -b .categories

%build
%configure
make

%install
rm -rf %{buildroot}
%makeinstall

%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 31 2014 Robert Scheck <robert@fedoraproject.org> - 0.98-23
- Require texindex, dvips and makeinfo executables directly as they
are provided by different packages on Fedora and (older) RHEL

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Feb 9 2011 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.98-17
- Have explicit requires use %%{?_isa} (new Guidelines)

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Sun Aug 1 2010 Hans Ulrich Niedermann <hun@n-dimensional.de> - 0.98-15
- Add virtual "Provides: -static" to -devel subpackage (#609598)

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.9.8-12
- fix license tag

* Mon Feb 11 2008 Andreas Thienemann <andreas@bawue.net> - 0.9.8-11
- Rebuild against gcc-4.3

* Fri Sep 08 2006 Andreas Thienemann <andreas@bawue.net> - 0.9.8-10
- FE6 Rebuild

* Mon Mar 27 2006 Andreas Thienemann <andreas@bawue.net> 0.9.8-9
- Changed texinfo dependency to texinfo-tex to satisfy #186825

* Sun Feb 05 2006 Andreas Thienemann <andreas@bawue.net> 0.98-8
- Enabled --excludedocs install

* Thu Jul 15 2005 Andreas Thienemann <andreas@bawue.net> 0.98-7
- Switched off threaded make, as it's causing problems when rebuilding
the documentation

* Thu Jul 07 2005 Andreas Thienemann <andreas@bawue.net> 0.98-6
- Added configure patch to pick up correct libdir for x86_64
- Added missing BuildRequires for ghostscript and tetex-dvips

* Thu Jul 07 2005 Andreas Thienemann <andreas@bawue.net> 0.98-5
- Added install-info support to the texinfo file.
- Fixed minor spec errors

* Thu Jul 01 2005 Andreas Thienemann <andreas@bawue.net> 0.98-4
- Added info-install in post and pre stage.

* Thu Jul 01 2005 Andreas Thienemann <andreas@bawue.net> 0.98-3
- Added %%{epoch} tag to the -devel requires.

* Thu Jun 30 2005 Andreas Thienemann <andreas@bawue.net> 0.98-2
- spec cleanup.

* Wed Jun 29 2005 Andreas Thienemann <andreas@bawue.net> 0.98-1
- Initial RPM release.

Loading…
Cancel
Save