forked from pool/texlive
.
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=161
This commit is contained in:
parent
5421198992
commit
976c992293
@ -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
|
||||
|
||||
|
85
texlive.spec
85
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
|
||||
|
Loading…
Reference in New Issue
Block a user