|
|
2072e9 |
%global nmu +nmu4
|
|
|
2072e9 |
|
|
|
2072e9 |
Name: libpaper
|
|
|
2072e9 |
Version: 1.1.24
|
|
|
2072e9 |
Release: 22%{?dist}
|
|
|
2072e9 |
Summary: Library and tools for handling papersize
|
|
|
2072e9 |
License: GPLv2
|
|
|
2072e9 |
URL: http://packages.qa.debian.org/libp/libpaper.html
|
|
|
2072e9 |
Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}%{nmu}.tar.gz
|
|
|
2072e9 |
# Filed upstream as:
|
|
|
2072e9 |
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
|
|
|
2072e9 |
Patch2: libpaper-useglibcfallback.patch
|
|
|
2072e9 |
# Memory leak
|
|
|
2072e9 |
Patch3: libpaper-file-leak.patch
|
|
|
2072e9 |
# 1606989 - Please review important issues found by covscan in "libpaper-1.1.24-21.el8+7" package
|
|
|
2072e9 |
Patch4: libpaper-covscan.patch
|
|
|
2072e9 |
|
|
|
2072e9 |
# gcc is no longer in buildroot by default
|
|
|
2072e9 |
BuildRequires: gcc
|
|
|
2072e9 |
BuildRequires: libtool, gettext, gawk
|
|
|
2072e9 |
|
|
|
2072e9 |
%description
|
|
|
2072e9 |
The paper library and accompanying files are intended to provide a
|
|
|
2072e9 |
simple way for applications to take actions based on a system- or
|
|
|
2072e9 |
user-specified paper size. This release is quite minimal, its purpose
|
|
|
2072e9 |
being to provide really basic functions (obtaining the system paper name
|
|
|
2072e9 |
and getting the height and width of a given kind of paper) that
|
|
|
2072e9 |
applications can immediately integrate.
|
|
|
2072e9 |
|
|
|
2072e9 |
%package devel
|
|
|
2072e9 |
Summary: Headers/Libraries for developing programs that use libpaper
|
|
|
2072e9 |
Requires: %{name} = %{version}-%{release}
|
|
|
2072e9 |
|
|
|
2072e9 |
%description devel
|
|
|
2072e9 |
This package contains headers and libraries that programmers will need
|
|
|
2072e9 |
to develop applications which use libpaper.
|
|
|
2072e9 |
|
|
|
2072e9 |
%prep
|
|
|
2072e9 |
%setup -q -n %{name}-%{version}%{nmu}
|
|
|
2072e9 |
%patch2 -p1 -b .useglibcfallback
|
|
|
2072e9 |
%patch3 -p1 -b .file-leak
|
|
|
2072e9 |
%patch4 -p1 -b .covscan
|
|
|
2072e9 |
libtoolize
|
|
|
2072e9 |
|
|
|
2072e9 |
%build
|
|
|
2072e9 |
touch AUTHORS NEWS
|
|
|
2072e9 |
aclocal
|
|
|
2072e9 |
autoconf
|
|
|
2072e9 |
automake -a
|
|
|
2072e9 |
%configure --disable-static
|
|
|
2072e9 |
# Disable rpath
|
|
|
2072e9 |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
2072e9 |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
2072e9 |
make %{?_smp_mflags}
|
|
|
2072e9 |
|
|
|
2072e9 |
%install
|
|
|
2072e9 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
2072e9 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
2072e9 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
2072e9 |
echo '# Simply write the paper name. See papersize(5) for possible values' > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
|
|
|
2072e9 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/libpaper.d
|
|
|
2072e9 |
for i in cs da de es fr gl hu it ja nl pt_BR sv tr uk vi; do
|
|
|
2072e9 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/;
|
|
|
2072e9 |
msgfmt debian/po/$i.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/%{name}.mo;
|
|
|
2072e9 |
done
|
|
|
2072e9 |
%find_lang %{name}
|
|
|
2072e9 |
|
|
|
2072e9 |
%ldconfig_scriptlets
|
|
|
2072e9 |
|
|
|
2072e9 |
%files -f %{name}.lang
|
|
|
2072e9 |
%doc ChangeLog README
|
|
|
2072e9 |
%license COPYING
|
|
|
2072e9 |
%config(noreplace) %{_sysconfdir}/papersize
|
|
|
2072e9 |
%dir %{_sysconfdir}/libpaper.d
|
|
|
2072e9 |
%{_bindir}/paperconf
|
|
|
2072e9 |
%{_libdir}/libpaper.so.1.1.2
|
|
|
2072e9 |
%{_libdir}/libpaper.so.1
|
|
|
2072e9 |
%{_sbindir}/paperconfig
|
|
|
2072e9 |
%{_mandir}/man1/*
|
|
|
2072e9 |
%{_mandir}/man5/*
|
|
|
2072e9 |
%{_mandir}/man8/*
|
|
|
2072e9 |
|
|
|
2072e9 |
%files devel
|
|
|
2072e9 |
%{_includedir}/paper.h
|
|
|
2072e9 |
%{_libdir}/libpaper.so
|
|
|
2072e9 |
%{_mandir}/man3/*
|
|
|
2072e9 |
|
|
|
2072e9 |
%changelog
|
|
|
2072e9 |
* Mon Dec 03 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.24-22
|
|
|
2072e9 |
- 1606989 - Please review important issues found by covscan in "libpaper-1.1.24-21.el8+7" package
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Mar 09 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.24-21
|
|
|
2072e9 |
- remove nmu5 from .gitignore and sources
|
|
|
2072e9 |
- fixed memory leak
|
|
|
2072e9 |
|
|
|
2072e9 |
* Wed Feb 21 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.24-20
|
|
|
2072e9 |
- gcc is no longer in buildroot by default
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.24-19
|
|
|
2072e9 |
- remove old stuff https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
|
|
|
2072e9 |
|
|
|
2072e9 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.24-18
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Mon Feb 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.24-17
|
|
|
2072e9 |
- Switch to %%ldconfig_scriptlets
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.24-16
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.24-15
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.24-14
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Nov 11 2016 Zdenek Dohnal <zdohnal@redhat.com> - 1.1.24-13
|
|
|
2072e9 |
- bump to nmu4
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.24-12
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-11
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-10
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-9
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-7
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-6
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-5
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-4
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Tue May 17 2011 Tom Callaway <spot@fedoraproject.org> - 1.1.24-3
|
|
|
2072e9 |
- bump to nmu1
|
|
|
2072e9 |
|
|
|
2072e9 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-2
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Apr 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.24-1
|
|
|
2072e9 |
- update to 1.1.24
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Mar 4 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-7
|
|
|
2072e9 |
- update to 1.1.23+nmu2
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-6
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-5
|
|
|
2072e9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
2072e9 |
|
|
|
2072e9 |
* Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-4
|
|
|
2072e9 |
- run libtoolize to fix build with newer libtool
|
|
|
2072e9 |
- disable rpath
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Aug 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-3
|
|
|
2072e9 |
- update to nmu1
|
|
|
2072e9 |
- apply patch to fix imprecise definition of DL format
|
|
|
2072e9 |
- apply patch so that when no config is present, libpaper will fallback through
|
|
|
2072e9 |
LC_PAPER before giving up and using Letter
|
|
|
2072e9 |
|
|
|
2072e9 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.23-2
|
|
|
2072e9 |
- Autorebuild for GCC 4.3
|
|
|
2072e9 |
|
|
|
2072e9 |
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.23-1
|
|
|
2072e9 |
- 1.1.23
|
|
|
2072e9 |
|
|
|
2072e9 |
* Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1.1
|
|
|
2072e9 |
- missing BR: gawk
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1
|
|
|
2072e9 |
- bump, no real changes of note, rebuild for ppc32
|
|
|
2072e9 |
- license fix, v2 only
|
|
|
2072e9 |
|
|
|
2072e9 |
* Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1.1
|
|
|
2072e9 |
- BR: libtool
|
|
|
2072e9 |
|
|
|
2072e9 |
* Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1
|
|
|
2072e9 |
- bump to 1.1.21
|
|
|
2072e9 |
- fix automake bug (bz 247458)
|
|
|
2072e9 |
|
|
|
2072e9 |
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.20-5
|
|
|
2072e9 |
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-4
|
|
|
2072e9 |
- remove aclocal call
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-3
|
|
|
2072e9 |
- fix FC-4 with aclocal call
|
|
|
2072e9 |
- move man3 pages to -devel
|
|
|
2072e9 |
- don't set default, just put comment in conf file
|
|
|
2072e9 |
- own /etc/libpaper.d
|
|
|
2072e9 |
- use debian/NEWS
|
|
|
2072e9 |
- include the meager translations
|
|
|
2072e9 |
- use --disable-static
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-2
|
|
|
2072e9 |
- nuke static lib
|
|
|
2072e9 |
- own /etc/papersize
|
|
|
2072e9 |
- fix mixed spaces/tabs rpmlint warning
|
|
|
2072e9 |
|
|
|
2072e9 |
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-1
|
|
|
2072e9 |
- initial package for Fedora Extras
|