a2ea118
Summary:        A Tool for manipulating BibTeX data bases
cf120ad
Name:           BibTool
a2ea118
Version:        2.48
0e96554
Release:        9%{?dist}
cf120ad
Group:          Applications/Publishing
a2ea118
Source:         ftp://ftp.dante.de/tex-archive/biblio/bibtex/utils/bibtool/BibTool-%{version}.tar.gz
a2ea118
URL:            http://www.gerd-neugebauer.de/software/TeX/BibTool.en.html
cf120ad
Patch0:         BibTool-2.48-regex_DESTDIR.patch
c2aa32d
License:        GPL+
a2ea118
BuildRequires:  tetex-latex
a2ea118
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a2ea118
a2ea118
%description
a2ea118
BibTeX provides an easy to use means to integrate citations and
a2ea118
bibliographies into LaTeX documents. But the user is left alone with
a2ea118
the management of the BibTeX files. The program BibTool is intended to
a2ea118
fill this gap. BibTool allows the manipulation of BibTeX files which
a2ea118
goes beyond the possibilities --- and intentions --- of BibTeX.
a2ea118
a2ea118
%prep
cf120ad
%setup -q
cf120ad
%patch0 -p1 -b .regex_DESTDIR
cf120ad
sed -i -e 's%^#!/usr/local/bin/tclsh%#! %{_bindir}/tclsh%' Tcl/bibtool.tcl
cf120ad
sed -i -e 's%^#!/usr/local/bin/perl%#! %{_bindir}/perl%' Perl/bibtool.pl
cf120ad
# configure will recreate the directory, but only with config.h within
cf120ad
rm -rf regex-0.12
a2ea118
a2ea118
%build
a2ea118
%configure --libdir=%{_datadir}
cf120ad
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
a2ea118
make doc
a2ea118
a2ea118
%install
a2ea118
rm -rf $RPM_BUILD_ROOT
e1dfbdf
make install install-man DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
a2ea118
a2ea118
%clean
a2ea118
rm -rf $RPM_BUILD_ROOT
a2ea118
a2ea118
%files
a2ea118
%defattr(-,root,root,-)
cf120ad
%doc Changes.xml COPYING INSTALL README THANKS 
cf120ad
%doc Doc/bibtool.dvi Doc/ref_card.dvi
cf120ad
%doc Perl/ Tcl/
a2ea118
%{_bindir}/bibtool
a2ea118
%{_datadir}/BibTool/
cf120ad
%{_mandir}/man1/bibtool.1*
a2ea118
a2ea118
%changelog
0e96554
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.48-9
0e96554
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0e96554
c62d4fb
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.48-8
c62d4fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c62d4fb
e1dfbdf
* Thu Feb 14 2008 Patrice Dumas <pertusus@free.fr> 2.48-7
e1dfbdf
- add #define __USE_GNU since in regex GNU extensions are used
e1dfbdf
- keep timestamps and fix man page permissions
e1dfbdf
cf120ad
* Mon Jan 29 2007 Patrice Dumas <pertusus@free.fr> 2.48-6
cf120ad
- use system regex (#225108)
cf120ad
- honor optflags (#225108)
cf120ad
- merge honor_DESTDIR diff with regex changes in regex_DESTDIR
cf120ad
- don't ship c_lib.dvi
cf120ad
1bae95c
* Sun Sep 10 2006 Patrice Dumas <pertusus@free.fr> 2.48-5
1bae95c
- rebuild for FC6
1bae95c
1bae95c
* Thu Feb 16 2006 Patrice Dumas <pertusus@free.fr> 2.48-4
a2176b0
- rebuild for fc5
a2176b0
1bae95c
* Fri Sep  2 2005 Patrice Dumas <pertusus@free.fr> 2.48-3
a2ea118
- change shebangs in example scripts
a2ea118
1bae95c
* Thu Jul 14 2005 Patrice Dumas <pertusus@free.fr> 2.48-2
a2ea118
- update to 2.48
a2ea118
- use fedora template 
a2ea118
a2ea118
* Mon Sep 10 2001 Lenny Cartier <lenny@mandrakesoft.com> 2.44-1mdk
a2ea118
- added in contribs by Guillaume Rousse <g.rousse@linux-mandrake.com>
a2ea118
- first mdk release