barcode/barcode.spec

139 lines
4.2 KiB
RPMSpec

### AUTOUPDATE-OFF: 2
Name: barcode
Version: 0.99
Release: 1mamba
Summary: A tool to convert text strings to printed bars
Group: Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnu.org/software/barcode/barcode.html
# snapshots: ftp://ar.linux.it/pub/barcode/CVS-snapshots/
Source0: ftp://ftp.gnu.org/gnu/barcode/%{name}-%{version}.tar.gz
Patch0: %{name}-0.98-gcc4.patch
Patch1: %{name}-0.98-free.patch
Patch2: %{name}-0.98-debian_fix.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpaper-devel
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
Obsoletes: barcode-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# FIXME :
# Program received signal SIGSEGV, Segmentation fault.
# 0xb7eb01f0 in rawmemchr () from /lib/libc.so.6
%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.
Output is generated as either Postscript or Encapsulated Postscript (other back-ends may be added if needed).
%package devel
Summary: GNU barcode files for development
Group: Development/Libraries
Requires: %{name} = %{version}
%description devel
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.
Output is generated as either Postscript or Encapsulated Postscript (other back-ends may be added if needed).
This package contains the C header, the static library and man page for development.
%package doc
Summary: GNU barcode documentation
Group: Documentation
Requires: %{name} = %{version}
%description doc
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 either Postscript or Encapsulated Postscript (other back-ends may be added if needed).
This package contains documentation in ps and pdf formats.
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%build
%configure
%make -j1
make -C doc pdf
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeoldinstall \
MAN1DIR=%{buildroot}%{_mandir}/man1 \
MAN3DIR=%{buildroot}%{_mandir}/man3 \
INFODIR=%{buildroot}%{_infodir}
## barcode manpage conflicts with with file from package xscreensaver (man6)
##rm -f %{buildroot}%{_mandir}/man1/barcode.*
mv -f %{buildroot}%{_bindir}/sample %{buildroot}%{_bindir}/sample.barcode
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post
%install_info %{name}.info
:
%preun
if [ $1 -eq 0 ] ; then
%uninstall_info %{name}.info
fi
exit 0
%files
%defattr(-, root, root)
%{_bindir}/barcode
%{_bindir}/sample.barcode
%{_infodir}/barcode.*
#%{_mandir}/man1/barcode.*
%doc COPYING
#%files devel
#%defattr(-, root, root)
#%{_includedir}/barcode.h
#%{_libdir}/libbarcode.a
#%{_mandir}/man3/barcode.*
%files doc
%defattr(-, root, root)
%doc ChangeLog README TODO
%doc doc/*.pdf
%changelog
* Sun Mar 31 2013 Automatic Build System <autodist@mambasoft.it> 0.99-1mamba
- update to 0.99
* Wed Jul 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.98-5mamba
- removed incorrect desktop file
- restore no longer conflicting man page
- fixed descriptions formatting
* Tue Jul 15 2008 gil <puntogil@libero.it> 0.98-4mamba
- rebuild with new libpaper-1.1.21-1mamba
* Tue Oct 11 2005 Davide Madrisan <davide.madrisan@qilinux.it> 0.98-3qilnx
- specfile fixes: use rpm macros, install/uninstall info files
- specfile cleanups
- new package doc
- remove conflicting manpage (barcode)
* Thu Jun 09 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.98-2qilnx
- rebuild and moved from devel-contrib repository to devel repository
* Wed Jun 8 2005 Matteo Bernasconi <voyagernm@virgilio.it> 0.98-1qilnx
- first build