legacy package [release 1.1.28-4mamba;Thu Nov 24 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 05:21:05 +01:00
parent 715a7834af
commit f3773f5469
2 changed files with 149 additions and 0 deletions

View File

@ -1,2 +1,5 @@
# libpaper1 # libpaper1
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.

146
libpaper1.spec Normal file
View File

@ -0,0 +1,146 @@
%define libver 1.1.2
%define libmajver %(echo %libver | cut -d. -f 1)
Name: libpaper1
Epoch: 2
Version: 1.1.28
Release: 4mamba
Summary: An open source viewer for Portable Document Format (PDF) files
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ftp.debian.org/debian/pool/main/libp/libpaper/
Source: http://ftp.debian.org/debian/pool/main/libp/libpaper/libpaper_%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
Requires: paper1-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.
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.
%package devel
Summary: Devel files for %{libname} library
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%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.
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 static libraries and header files needed for development.
%package -n paper1-utils
Summary: Library for handling paper characteristics (development files)
Group: Applications/Publishing
%description -n paper1-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.
%debug_package
%prep
%setup -q -n libpaper-%{version}
autoreconf -f -i
%build
#aclocal && automake --foreign --add-missing --copy && autoconf
%configure --enable-shared --enable-static
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
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
%find_lang %{name} --all-name
ln -sf libpaper.so.%{libver} %{buildroot}%{_libdir}/libpaper.so
ln -sf libpaper.so.%{libver} %{buildroot}%{_libdir}/libpaper.so.%{libmajver}
install -d %{buildroot}%{_sysconfdir}
echo "a4" > %{buildroot}%{_sysconfdir}/papersize
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%preun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libpaper.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/paper.h
%{_libdir}/libpaper.a
%{_libdir}/libpaper.so
%{_mandir}/man3/*
%doc ChangeLog README
%files -n paper1-utils -f %{name}.lang
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/papersize
%{_bindir}/paperconf
%{_sbindir}/paperconfig
%{_mandir}/man1/paperconf.*
%{_mandir}/man5/papersize.*
%{_mandir}/man8/paperconfig.*
%changelog
* Thu Nov 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.28-4mamba
- legacy package
* Thu Jun 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.28-3mamba
- bump epoch again caused by libpaper 1.2.1 still making ghostcript crash
* Sun May 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.28-2mamba
- 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
- automatic version update by autodist
* Thu Jan 10 2019 Automatic Build System <autodist@mambasoft.it> 1.1.26-1mamba
- automatic update by autodist
* Sun Jun 20 2010 Automatic Build System <autodist@mambasoft.it> 1.1.24-1mamba
- automatic update by autodist
* Wed Jul 16 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.21-2mamba
- removed wrong library links (libpaper.1)
* Tue Jul 15 2008 gil <puntogil@libero.it> 1.1.21-1mamba
- update to 1.1.21
* Wed Oct 12 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.14-4qilnx
- specfile updates (foxis wronw path shown in man pages)
- man3 pages moved to devel package
- add missing configuration file needed by paperconf
- new package paper-utils
* Tue Oct 19 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.14-3qilnx
- add also *.so.* files for rpm provides to work
* Tue Oct 19 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.14-2qilnx
- added /usr/lib/libpaper because it is needed by kdegraphics 3.3.1
* Wed Apr 14 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.14-1qilnx
- new version rebuild
- added documentation
* Wed Feb 25 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.13-2qilnx
- added missing scriptlets
* Mon Jan 12 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.1.13-1qilnx
- first build