revert to old version due to 1.2.0 crashing with convert (epoch bump) [release 1.1.28-2mamba;Sun May 29 2022]
This commit is contained in:
parent
f25ee9b486
commit
eba2738d6c
@ -1,19 +1,21 @@
|
|||||||
|
%define libver 1.1.2
|
||||||
|
%define libmajver %(echo %libver | cut -d. -f 1)
|
||||||
|
|
||||||
Name: libpaper
|
Name: libpaper
|
||||||
Version: 1.2.0
|
Epoch: 1
|
||||||
Release: 1mamba
|
Version: 1.1.28
|
||||||
|
Release: 2mamba
|
||||||
Summary: An open source viewer for Portable Document Format (PDF) files
|
Summary: An open source viewer for Portable Document Format (PDF) files
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: https://github.com/rrthomas/libpaper
|
URL: http://ftp.debian.org/debian/pool/main/libp/libpaper/
|
||||||
Source: https://github.com/rrthomas/libpaper.git/v%{version}/libpaper-%{version}.tar.bz2
|
Source: http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_%{version}.tar.gz
|
||||||
#Source: http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_%{version}.tar.gz
|
|
||||||
License: GPL
|
License: GPL
|
||||||
## AUTOBUILDREQ-BEGIN
|
## AUTOBUILDREQ-BEGIN
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
Requires: paper-utils = %{version}-%{release}
|
|
||||||
|
|
||||||
%description
|
%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.
|
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.
|
||||||
@ -22,7 +24,7 @@ This release is quite minimal, its purpose being to provide really basic functio
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Devel files for %{libname} library
|
Summary: Devel files for %{libname} library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
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.
|
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.
|
||||||
@ -36,34 +38,44 @@ Group: Applications/Publishing
|
|||||||
%description -n paper-utils
|
%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.
|
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 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 utilities provided with %{name}.
|
This package contains some utilities.
|
||||||
|
|
||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
./bootstrap --force
|
autoreconf -f -i
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
#aclocal && automake --foreign --add-missing --copy && autoconf
|
||||||
--enable-shared
|
%configure --enable-shared --enable-static
|
||||||
|
|
||||||
%make
|
%make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
%makeinstall
|
%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
|
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)"
|
lang="$(basename $file .po)"
|
||||||
%{__install} -d -m0755 %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
|
%{__install} -d -m0755 %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
|
||||||
msgfmt debian/po/$file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/libpaper.mo;
|
msgfmt $file -o %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/libpaper.mo;
|
||||||
done
|
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}
|
||||||
|
|
||||||
install -d %{buildroot}%{_sysconfdir}
|
install -d %{buildroot}%{_sysconfdir}
|
||||||
echo "a4" > %{buildroot}%{_sysconfdir}/papersize
|
echo "a4" > %{buildroot}%{_sysconfdir}/papersize
|
||||||
|
|
||||||
%find_lang %{name} --all-name
|
|
||||||
|
|
||||||
|
#%find_lang %{name} -f %{name}.lang
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -71,7 +83,7 @@ echo "a4" > %{buildroot}%{_sysconfdir}/papersize
|
|||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%preun -p /sbin/ldconfig
|
%preun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libpaper.so.*
|
%{_libdir}/libpaper.so.*
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
@ -82,23 +94,22 @@ echo "a4" > %{buildroot}%{_sysconfdir}/papersize
|
|||||||
%{_libdir}/libpaper.a
|
%{_libdir}/libpaper.a
|
||||||
%{_libdir}/libpaper.la
|
%{_libdir}/libpaper.la
|
||||||
%{_libdir}/libpaper.so
|
%{_libdir}/libpaper.so
|
||||||
|
%{_mandir}/man3/*
|
||||||
%doc ChangeLog README
|
%doc ChangeLog README
|
||||||
|
|
||||||
%files -n paper-utils
|
%files -n paper-utils
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%config(noreplace) %{_sysconfdir}/papersize
|
%{_bindir}/paperconf
|
||||||
%config %{_sysconfdir}/paperspecs
|
|
||||||
%{_bindir}/paper
|
|
||||||
%{_sbindir}/paperconfig
|
%{_sbindir}/paperconfig
|
||||||
%{_mandir}/man1/paper.1*
|
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
|
||||||
%{_mandir}/man5/paperspecs.5*
|
%config(noreplace) %{_sysconfdir}/papersize
|
||||||
|
%{_mandir}/man1/paperconf.*
|
||||||
|
%{_mandir}/man5/papersize.*
|
||||||
%{_mandir}/man8/paperconfig.*
|
%{_mandir}/man8/paperconfig.*
|
||||||
%dir %{_docdir}/libpaper
|
|
||||||
%{_docdir}/libpaper/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon May 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
|
* Sun May 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.28-2mamba
|
||||||
- update to 1.2.0
|
- revert to old version due to 1.2.0 crashing with convert (epoch bump)
|
||||||
|
|
||||||
* Wed Jan 29 2020 Automatic Build System <autodist@mambasoft.it> 1.1.28-1mamba
|
* Wed Jan 29 2020 Automatic Build System <autodist@mambasoft.it> 1.1.28-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
Loading…
Reference in New Issue
Block a user