From 976c992293bcaf593e5025dc4a60b0a87aed63e67b858e870e679c940c479ddd Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 13 Nov 2013 13:10:29 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=161 --- texlive.changes | 6 ++++ texlive.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 89 insertions(+), 2 deletions(-) diff --git a/texlive.changes b/texlive.changes index 9e79e2c..0f05207 100644 --- a/texlive.changes +++ b/texlive.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 13 13:06:23 UTC 2013 - werner@suse.de + +- Make biber a simple perl script that is provide a new package + perl-biber for the library files + ------------------------------------------------------------------- Mon Oct 28 14:12:33 UTC 2013 - werner@suse.de diff --git a/texlive.spec b/texlive.spec index 2f726a6..360896d 100644 --- a/texlive.spec +++ b/texlive.spec @@ -19,7 +19,7 @@ %define texlive_version 2013 %define texlive_previous 2011 %define texlive_release 20130620 -%define texlive_noarch 80 +%define texlive_noarch 81 %define texlive_source texlive-20130620-source %define __perl_requires %{nil} @@ -177,8 +177,9 @@ BuildRequires: perl(List::AllUtils) BuildRequires: perl(List::MoreUtils) BuildRequires: perl(Log::Log4perl) BuildRequires: perl(Module::Build) +%if 0%{suse_version} <= 1230 BuildRequires: perl(PAR::Packer) -BuildRequires: perl(Readonly::XS) +%endif BuildRequires: perl(Readonly::XS) BuildRequires: perl(Regexp::Common) BuildRequires: perl(Test::More) @@ -403,6 +404,9 @@ Url: http://www.tug.org/texlive/ Requires: perl = %{perl_version} Recommends: ca-certificates Recommends: ca-certificates-mozilla +%if 0%{suse_version} > 1230 +Requires: perl(Biber) +%endif Requires: perl(LWP::UserAgent) Requires: perl(Text::BibTeX) %endif @@ -2071,6 +2075,49 @@ Requires: texlive-web-bin >= %{texlive_version} This package will cause the installation of several development packages for TeXLive. +%if %{with buildbiber} +%package -n perl-biber +Version: %{texlive_version}.%{texlive_release}.svn30357 +Release: 0 +Summary: Library files of Biber a BibTeX replacement +License: LPPL-1.0 +Group: Productivity/Publishing/TeX/Utilities +Url: http://biblatex-biber.sourceforge.net/ +Recommends: perl(Readonly::XS) +Requires: perl(Business::ISBN) +Requires: perl(Business::ISMN) +Requires: perl(Business::ISSN) +Requires: perl(Data::Compare) +Requires: perl(Data::Dump) +Requires: perl(Date::Simple) +Requires: perl(Encode::EUCJPASCII) +Requires: perl(Encode::HanExtra) +Requires: perl(Encode::JIS2K) +Requires: perl(File::Slurp) +Requires: perl(IPC::Cmd) +Requires: perl(IPC::Run3) +Requires: perl(LWP::Protocol::https) +Requires: perl(LWP::Simple) +Requires: perl(List::AllUtils) +Requires: perl(List::MoreUtils) +Requires: perl(Log::Log4perl) +Requires: perl(Regexp::Common) +Requires: perl(Text::BibTeX) +Requires: perl(URI) +Requires: perl(Unicode::Collate) +Requires: perl(Unicode::GCString) +Requires: perl(XML::LibXML::Simple) +Requires: perl(XML::LibXSLT) +Requires: perl(XML::Writer) +Requires: perl(autovivification) +Prefix: %{_bindir} +BuildArch: noarch + +%description -n perl-biber +Perl library files of Biber a BibTeX replacement for users of BibLaTeX. +This package is required by the package texlive-biber-bin. +%endif + %prep OS=%{_target_os} CPU=%{_target_cpu} @@ -2442,6 +2489,7 @@ popd %if %{with buildbiber} # dump a biber executable pushd ../biblatex-biber-* + find -name '*.ca' | xargs -r rm -vf LANG=en_US.UTF-8 %{__perl} ./Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS" LANG=en_US.UTF-8 ./Build build flags=%{?_smp_mflags} @@ -2453,6 +2501,7 @@ popd BIBER_DEV_TESTS=1 \ ./Build test +%if 0%{suse_version} <= 1230 pushd blib (cat > biber.files)<<-'EOF' @@ -2520,6 +2569,7 @@ popd script/biber install -m 0644 bindoc/biber.1 ${prefix}/share/man/man1/ popd +%endif popd %endif @@ -2601,8 +2651,10 @@ popd popd pushd ${prefix}/share/man/ %if %{with buildbiber} +%if 0%{suse_version} <= 1230 install -m 0644 man1/biber.1 %{buildroot}%{_mandir}/man1/ %endif +%endif %if 0%{texlive_version} < 2013 install -m 0644 man1/pmx2pdf.1 %{buildroot}%{_mandir}/man1/ install -m 0644 man1/pmxab.1 %{buildroot}%{_mandir}/man1/ @@ -2611,6 +2663,28 @@ popd install -m 0644 man1/scor2prt.1 %{buildroot}%{_mandir}/man1/ %endif popd + # + # Biber support + # +%if %{with buildbiber} +%if 0%{suse_version} > 1230 + pushd ../biblatex-biber-* + ./Build install destdir=%{buildroot} + chmod 0755 %{buildroot}%{_bindir}/biber + chmod 0644 %{buildroot}%{_mandir}/man1/biber.1* + chmod 0644 %{buildroot}%{perl_vendorlib}/Biber.pm + chmod -R u+rw %{buildroot}%{perl_vendorlib}/Biber + chmod -R u+rw %{buildroot}%{perl_vendorlib}/Unicode/Collate/* + rm -vrf %{buildroot}%{perl_vendorarch}/auto + rm -vrf %{buildroot}%{_mandir}/man3 + %perl_process_packlist + %perl_gen_filelist + sed -ri '\@/usr/(share|bin)/.*@d' texlive.files + popd + mv ../biblatex-biber-*/texlive.files perl-biber.files +%endif +%endif + # # Those lines with exclamation mark have to done in the # specific spec files @@ -3595,4 +3669,11 @@ VERBOSE=false %{_texmfdistdir}/texconfig/update || : %files -n %{name}-bin-devel %defattr(-,root,root,755) +%if %{with buildbiber} +%if 0%{suse_version} > 1230 +%files -n perl-biber -f perl-biber.files +%defattr(-,root,root,755) +%endif +%endif + %changelog