From a7a931213e11338cef7745bc2b2edcc235022fef Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 29 Sep 2020 22:27:31 +0200 Subject: [PATCH] - initial --- tex-latex-adjustbox.spec | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tex-latex-adjustbox.spec diff --git a/tex-latex-adjustbox.spec b/tex-latex-adjustbox.spec new file mode 100644 index 0000000..ca0b59d --- /dev/null +++ b/tex-latex-adjustbox.spec @@ -0,0 +1,55 @@ +Summary: Macros to adjust boxed content +Summary(pl.UTF-8): Makra do umieszczania treści w polach +Name: tex-latex-adjustbox +Version: 1.3 +Release: 1 +License: LaTeX Project Public License v1.3+ +Group: Applications/Publishing +Source0: http://mirrors.ctan.org/macros/latex/contrib/adjustbox.zip +# Source0-md5: 79b10d1ee1324aad287d52b3a8e7fd78 +URL: https://sourceforge.net/projects/adjustbox/ +BuildRequires: /usr/bin/latex +BuildRequires: rpmbuild(macros) >= 1.751 +BuildRequires: tex(ydoc) +BuildRequires: unzip +Requires(post,postun): /usr/bin/texhash +# TODO: use generic +Requires: texlive-latex +Requires: tex(collectbox) +Provides: tex(adjustbox) = %{version} +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Macros to adjust boxed content. + +%description -l pl.UTF-8 +Makra do umieszczania treści w polach. + +%prep +%setup -q -n adjustbox + +%build +latex adjustbox.ins + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/texmf/{doc,tex}/latex/adjustbox + +cp -p *.pdf $RPM_BUILD_ROOT%{_datadir}/texmf/doc/latex/adjustbox +cp -p *.def *.sty $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/adjustbox + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%texhash + +%postun +%texhash + +%files +%defattr(644,root,root,755) +%doc README +%doc %{_datadir}/texmf/doc/latex/adjustbox +%{_datadir}/texmf/tex/latex/adjustbox -- 2.44.0