a2ea118
Summary:        A Tool for manipulating BibTeX data bases
cf120ad
Name:           BibTool
79da117
Version:        2.67
79da117
Release:        1%{?dist}
cf120ad
Group:          Applications/Publishing
a2ea118
Source:         ftp://ftp.dante.de/tex-archive/biblio/bibtex/utils/bibtool/BibTool-%{version}.tar.gz
8c71a83
URL:            http://www.gerd-neugebauer.de/software/TeX/BibTool/
8c71a83
Patch0:         BibTool-2.51-regex.patch
03d76da
Patch1:         0001-make-doc-work-with-LuaTeX-0.85.patch
de1455a
Patch2:         0001-make-doc-work-with-newer-KOMA-classes.patch
c2aa32d
License:        GPL+
03d76da
BuildRequires:  tex(latex) tex-bibtex tex-makeindex tex(luatex85.sty)
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
8c71a83
%setup -q -n %{name}
8c71a83
%patch0 -p1 -b .regex
03d76da
%patch1 -p1 -b .luatex85
de1455a
%patch2 -p1 -b .fontcommands
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}
f0436a8
sed -i -e 's#@kpathsea_lib_static@##' makefile
cf120ad
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
a2ea118
make doc
a2ea118
a2ea118
%install
a2ea118
rm -rf $RPM_BUILD_ROOT
8c71a83
make install INSTALLPREFIX=$RPM_BUILD_ROOT INSTALL='install -p -m 755'
8c71a83
make install-man INSTALLPREFIX=$RPM_BUILD_ROOT INSTALL='install -p -m 644'
a2ea118
a2ea118
%clean
a2ea118
rm -rf $RPM_BUILD_ROOT
a2ea118
a2ea118
%files
a2ea118
%defattr(-,root,root,-)
e9944f1
%doc Changes.tex COPYING README.md THANKS
085ac7e
%doc doc/bibtool.pdf doc/ref_card.pdf
cf120ad
%doc Perl/ Tcl/
a2ea118
%{_bindir}/bibtool
a2ea118
%{_datadir}/BibTool/
cf120ad
%{_mandir}/man1/bibtool.1*
a2ea118
a2ea118
%changelog
79da117
* Mon Jan 16 2017 Michael J Gruber <mjg@fedoraproject.org> - 2.67-1
79da117
- rebase to BibTool 2.67
79da117
de1455a
* Tue Nov 29 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.66-3
de1455a
- make doc work with newer KOMA classes 
de1455a
03d76da
* Tue Nov 29 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.66-2
03d76da
- make doc work with LuaTeX 0.85
03d76da
f7a80b5
* Tue Nov 22 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.66-1
f7a80b5
- bugfix and feature release
f7a80b5
ec6cf17
* Tue Aug 02 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.65-1
ec6cf17
- bugfix and feature release
ec6cf17
576de1e
* Tue Jun 07 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.64-1
576de1e
- rebase to BibTool 2.64
576de1e
a7e50f6
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.63-2
a7e50f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a7e50f6
e9944f1
* Mon Jan 18 2016 Michael J Gruber <mjg@fedoraproject.org> - 2.63-1
e9944f1
- rebase to BibTool 2.63
e9944f1
c627202
* Mon Oct 12 2015 Michael J Gruber <mjg@fedoraproject.org> - 2.61-1
c627202
- rebase to BibTool 2.61
c627202
35d40e2
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.58-2
35d40e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
35d40e2
085ac7e
* Sat Feb 28 2015 Michael J Gruber <mjg@fedoraproject.org> - 2.58-1
085ac7e
- rebase to BibTool 2.58
085ac7e
- drop obsolete patch
085ac7e
ad72e82
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.55-6
ad72e82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ad72e82
5dde7c1
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.55-5
5dde7c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5dde7c1
e75e106
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.55-4
e75e106
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e75e106
e2c3dda
* Thu Feb 14 2013 Michael J Gruber <mjg@fedoraproject.org> 2.55-3
e2c3dda
- adjust BR to new texlive (fix FTB for doc)
e2c3dda
2d282d1
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.55-2
2d282d1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d282d1
f0436a8
* Wed Jul 18 2012 Michael J Gruber <mjg@fedoraproject.org> 2.55-1
f0436a8
- rebase to BibTool 2.55
f0436a8
- dump patch1
f0436a8
- fix configure droppings in makefile (botched kpathsea detection)
f0436a8
7d70d19
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.53-2
7d70d19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7d70d19
0588ac5
* Thu Jan 12 2012 Michael J Gruber <mjg@fedoraproject.org> 2.53-1
0588ac5
- rebase to BibTool 2.53
0588ac5
283fa42
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.51-2
283fa42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
283fa42
8c71a83
* Wed May 18 2011 Michael J Gruber <mjg@fedoraproject.org> 2.51-1
8c71a83
- rebase to BibTool 2.51
8c71a83
- remove DESTDIR part of regex_DESTDIR patch (use INSTALLPREFIX from 2.51)
8c71a83
- fix Doc/Makefile
8c71a83
- follow switch from dvi doc to pdf doc
8c71a83
- remove exec bit for installed man
8c71a83
- convert latin1 file to UTF-8
8c71a83
3077acd
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.48-10
3077acd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3077acd
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