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