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