From 2218233eab7a1103c0a6f14edaa4149555fd814e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:20:48 +0100 Subject: [PATCH] bump epoch [release 2.0.4-2mamba;Thu Nov 24 2022] --- libpaper.spec | 101 +++++++++++++++++++++++++++++--------------------- 1 file changed, 58 insertions(+), 43 deletions(-) diff --git a/libpaper.spec b/libpaper.spec index 5853fe2..4134b0e 100644 --- a/libpaper.spec +++ b/libpaper.spec @@ -1,21 +1,19 @@ -%define libver 1.1.2 -%define libmajver %(echo %libver | cut -d. -f 1) - Name: libpaper Epoch: 2 -Version: 1.1.28 -Release: 3mamba +Version: 2.0.4 +Release: 2mamba Summary: An open source viewer for Portable Document Format (PDF) files Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://ftp.debian.org/debian/pool/main/libp/libpaper/ -Source: http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_%{version}.tar.gz +URL: https://github.com/rrthomas/libpaper +Source: https://github.com/rrthomas/libpaper/releases/download/v%{version}/libpaper-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END +Requires: paper-utils = %{?epoch:%epoch:}%{version}-%{release} %description The paper library and accompanying files are intended to provide a simple way for applications to take actions based on a system- or user-specified paper size. @@ -38,44 +36,38 @@ Group: Applications/Publishing %description -n paper-utils The paper library and accompanying files are intended to provide a simple way for applications to take actions based on a system- or user-specified paper size. This release is quite minimal, its purpose being to provide really basic functions (obtaining the system paper name and getting the height and width of a given kond of paper) that applications can immediately integrate. -This package contains some utilities. +This package contains utilities provided with %{name}. %debug_package %prep %setup -q -autoreconf -f -i +#./bootstrap --force %build -#aclocal && automake --foreign --add-missing --copy && autoconf -%configure --enable-shared --enable-static +# 210x297 (in mm) is A4 size. Use as default to be provided by locale. +#export CFLAGS+="%{optflags} -D_NL_PAPER_WIDTH=210 -D_NL_PAPER_HEIGHT=297" + +%configure \ + --enable-relocatable \ + --enable-shared + %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -cd debian/po -for file in cs.po da.po de.po es.po fr.po gl.po hu.po it.po ja.po nl.po pt_BR.po ru.po sv.po tr.po uk.po vi.po; do - lang="$(basename $file .po)" - %{__install} -d -m0755 %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/ - msgfmt $file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/libpaper.mo; -done - -cd %{buildroot}%{_libdir} -##mv libpaper.%{libver} libpaper.so.%{libver} -ln -sf libpaper.so.%{libver} libpaper.so -ln -sf libpaper.so.%{libver} libpaper.so.%{libmajver} -#ln -sf libpaper.so.%{libver} libpaper -#ln -sf libpaper.so.%{libver} libpaper.%{libmajver} -#ln -sf libpaper.so.%{libver} libpaper.%{libver} +#for file in cs.po da.po de.po es.po fr.po gl.po hu.po it.po ja.po nl.po pt_BR.po ru.po sv.po tr.po uk.po vi.po; do +# lang="$(basename $file .po)" +# %{__install} -d -m0755 %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/ +# msgfmt debian/po/$file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/libpaper.mo; +#done install -d %{buildroot}%{_sysconfdir} -echo "a4" > %{buildroot}%{_sysconfdir}/papersize +#echo "a4" > %{buildroot}%{_sysconfdir}/papersize - - -#%find_lang %{name} -f %{name}.lang +#%find_lang %{name} --all-name %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -83,7 +75,8 @@ echo "a4" > %{buildroot}%{_sysconfdir}/papersize %post -p /sbin/ldconfig %preun -p /sbin/ldconfig -%files +%files +#-f %{name}.lang %defattr(-,root,root) %{_libdir}/libpaper.so.* %doc COPYING @@ -92,27 +85,49 @@ echo "a4" > %{buildroot}%{_sysconfdir}/papersize %defattr(-,root,root) %{_includedir}/paper.h %{_libdir}/libpaper.a -%{_libdir}/libpaper.la %{_libdir}/libpaper.so -%{_mandir}/man3/* %doc ChangeLog README %files -n paper-utils %defattr(-,root,root) -%{_bindir}/paperconf -%{_sbindir}/paperconfig -%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo -%config(noreplace) %{_sysconfdir}/papersize -%{_mandir}/man1/paperconf.* -%{_mandir}/man5/papersize.* -%{_mandir}/man8/paperconfig.* +%config %{_sysconfdir}/paperspecs +%{_bindir}/paper +%{_mandir}/man1/paper.1* +%{_mandir}/man5/paperspecs.5* +%dir %{_docdir}/libpaper +%{_docdir}/libpaper/* %changelog -* Thu Jun 23 2022 Silvan Calarco 1.1.28-3mamba -- bump epoch again caused by libpaper 1.2.1 still making ghostcript crash +* Thu Nov 24 2022 Silvan Calarco 2.0.4-2mamba +- bump epoch -* Sun May 29 2022 Silvan Calarco 1.1.28-2mamba -- revert to old version due to 1.2.0 crashing with convert (epoch bump) +* Wed Nov 16 2022 Automatic Build System 2.0.4-1mamba +- automatic version update by autodist + +* Sat Nov 05 2022 Automatic Build System 2.0.3-1mamba +- automatic version update by autodist + +* Thu Oct 27 2022 Automatic Build System 2.0.1-1mamba +- automatic version update by autodist + +* Fri Sep 16 2022 Automatic Build System 2.0.0-1mamba +- automatic version update by autodist + +* Fri Aug 26 2022 Automatic Build System 1.2.3-1mamba +- automatic version update by autodist + +* Sun Jul 17 2022 Automatic Build System 1.2.2-1mamba +- automatic version update by autodist + +* Mon Jun 20 2022 Automatic Build System 1.2.1-1mamba +- automatic version update by autodist + +* Sun May 29 2022 Silvan Calarco 1.2.0-2mamba +- rebuilt from release tarball (see https://github.com/rrthomas/libpaper/issues/20) +- bump epoch and send to devel-future because crashing with convert + +* Mon May 23 2022 Silvan Calarco 1.2.0-1mamba +- update to 1.2.0 * Wed Jan 29 2020 Automatic Build System 1.1.28-1mamba - automatic version update by autodist