09aba6489a
OBS-URL: https://build.opensuse.org/request/show/67639 OBS-URL: https://build.opensuse.org/package/show/Publishing/bibtool?expand=0&rev=1
87 lines
2.5 KiB
RPMSpec
87 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package bibtool
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2011 Guido Berhoerster.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: bibtool
|
|
Version: 2.51
|
|
Release: 1
|
|
License: GPLv1
|
|
Summary: Tool for Manipulating BibTeX Databases
|
|
Url: http://bibtool.sarovar.org/
|
|
Group: Productivity/Publishing/TeX/Utilities
|
|
Source: BibTool-%{version}.tar.bz2
|
|
Patch0: %{name}-honor-cflags.patch
|
|
Patch1: %{name}-use-system-regex.patch
|
|
Patch2: %{name}-fix-libkpathsea-detection.patch
|
|
BuildRequires: texlive-latex
|
|
BuildRequires: texlive-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
BibTool is a tool for manipulating BibTeX databases. BibTeX provides a means to
|
|
integrate citations into LaTeX documents. BibTool allows the manipulation of
|
|
BibTeX files which goes beyond the possibilities - and intentions - of BibTeX.
|
|
|
|
%package doc
|
|
License: GPLv1
|
|
Summary: Documentation for bibtool
|
|
Group: Documentation/Other
|
|
Requires: %{name} = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
This package contains the documentation for bibtool.
|
|
|
|
%prep
|
|
%setup -q -n BibTool
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
|
|
%build
|
|
autoreconf -fi
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
ln -s makefile Makefile
|
|
make %{?_smp_mflags} doc
|
|
mkdir examples
|
|
sed 's|#!/usr/local/bin/tclsh|#!/usr/bin/tclsh|' Tcl/bibtool.tcl \
|
|
>examples/bibtool.tcl
|
|
sed 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' Perl/bibtool.pl \
|
|
>examples/bibtool.pl
|
|
chmod 755 examples/*
|
|
|
|
%install
|
|
make INSTALLPREFIX=%{buildroot} install
|
|
make INSTALLPREFIX=%{buildroot} install-man
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING README examples
|
|
%doc %attr(0644,root,root) %{_mandir}/man1/bibtool.1*
|
|
%{_bindir}/bibtool
|
|
%{_libdir}/BibTool
|
|
|
|
%files doc
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING Doc/bibtool.pdf Doc/ref_card.pdf
|
|
|
|
%changelog
|