#
%define pdir Text
%define pnam BibTeX
-%include /usr/lib/rpm/macros.perl
Summary: Text::BibTeX - Perl library for reading, parsing and processing BibTeX files
Summary(pl.UTF-8): Text::BibTeX - biblioteka Perla do odczytu, analizy i przetwarzania plików BibTeXa
Name: perl-Text-BibTeX
Version: 0.88
-Release: 1
+Release: 7
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 361aad5cf400764e35d1ade3b609bb60
Patch0: %{name}-mansect.patch
+Patch1: %{name}-libdir.patch
URL: http://www.gerg.ca/software/btOOL/
BuildRequires: perl-Capture-Tiny >= 0.06
BuildRequires: perl-Config-AutoConf >= 0.16
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
%patch0 -p1
+%patch1 -p1
%build
+LIBDIR=%{_libdir} \
%{__perl} Build.PL \
--config cc="%{__cc}" \
--config optimize="%{rpmcflags}" \