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