2014-04-22 20:02:26 +00:00
|
|
|
%global nmu +nmu3
|
2011-05-17 16:47:58 +00:00
|
|
|
|
2006-09-23 16:19:12 +00:00
|
|
|
Name: libpaper
|
2010-04-24 16:28:25 +00:00
|
|
|
Version: 1.1.24
|
2014-08-17 05:22:07 +00:00
|
|
|
Release: 10%{?dist}
|
2006-09-23 16:19:12 +00:00
|
|
|
Summary: Library and tools for handling papersize
|
|
|
|
Group: System Environment/Libraries
|
2007-08-23 22:35:23 +00:00
|
|
|
License: GPLv2
|
2006-09-23 16:19:12 +00:00
|
|
|
URL: http://packages.qa.debian.org/libp/libpaper.html
|
2011-05-17 16:47:58 +00:00
|
|
|
Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}%{nmu}.tar.gz
|
2008-08-22 21:01:48 +00:00
|
|
|
# Filed upstream as:
|
|
|
|
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
|
|
|
|
Patch2: libpaper-useglibcfallback.patch
|
2007-08-24 13:25:28 +00:00
|
|
|
BuildRequires: libtool, gettext, gawk
|
2006-09-23 16:19:12 +00:00
|
|
|
|
|
|
|
%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 kind of paper) that
|
|
|
|
applications can immediately integrate.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Headers/Libraries for developing programs that use libpaper
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains headers and libraries that programmers will need
|
|
|
|
to develop applications which use libpaper.
|
|
|
|
|
|
|
|
%prep
|
2011-05-17 16:47:58 +00:00
|
|
|
%setup -q -n %{name}-%{version}%{nmu}
|
2008-08-22 21:01:48 +00:00
|
|
|
%patch2 -p1 -b .useglibcfallback
|
2009-02-16 16:27:44 +00:00
|
|
|
libtoolize
|
2006-09-23 16:19:12 +00:00
|
|
|
|
|
|
|
%build
|
2008-08-22 21:01:48 +00:00
|
|
|
touch AUTHORS NEWS
|
2007-07-09 15:10:27 +00:00
|
|
|
aclocal
|
|
|
|
autoconf
|
2006-09-23 16:19:12 +00:00
|
|
|
automake -a
|
2006-09-24 01:04:35 +00:00
|
|
|
%configure --disable-static
|
2009-02-16 16:27:44 +00:00
|
|
|
# Disable rpath
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2006-09-23 16:19:12 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2006-09-24 01:04:35 +00:00
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
2006-09-23 16:19:12 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
2006-09-24 01:04:35 +00:00
|
|
|
echo '# Simply write the paper name. See papersize(5) for possible values' > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/libpaper.d
|
|
|
|
for i in cs da de es fr gl hu it ja nl pt_BR sv tr uk vi; do
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/;
|
|
|
|
msgfmt debian/po/$i.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/%{name}.mo;
|
|
|
|
done
|
|
|
|
%find_lang %{name}
|
2006-09-23 16:19:12 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2006-09-24 01:04:35 +00:00
|
|
|
%files -f %{name}.lang
|
2008-08-22 21:01:48 +00:00
|
|
|
%doc COPYING ChangeLog README
|
2006-09-23 16:19:12 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/papersize
|
2006-09-24 01:04:35 +00:00
|
|
|
%dir %{_sysconfdir}/libpaper.d
|
2006-09-23 16:19:12 +00:00
|
|
|
%{_bindir}/paperconf
|
|
|
|
%{_libdir}/libpaper.so.*
|
|
|
|
%{_sbindir}/paperconfig
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/paper.h
|
|
|
|
%{_libdir}/libpaper.so
|
2006-09-24 01:04:35 +00:00
|
|
|
%{_mandir}/man3/*
|
2006-09-23 16:19:12 +00:00
|
|
|
|
|
|
|
%changelog
|
2014-08-17 05:22:07 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 04:58:43 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 06:40:38 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-14 05:01:26 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 20:50:14 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-13 08:16:31 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-05-17 16:47:58 +00:00
|
|
|
* Tue May 17 2011 Tom Callaway <spot@fedoraproject.org> - 1.1.24-3
|
|
|
|
- bump to nmu1
|
|
|
|
|
2011-02-08 10:43:14 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-04-24 16:28:25 +00:00
|
|
|
* Sat Apr 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.24-1
|
|
|
|
- update to 1.1.24
|
|
|
|
|
2010-03-04 14:20:12 +00:00
|
|
|
* Thu Mar 4 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-7
|
|
|
|
- update to 1.1.23+nmu2
|
|
|
|
|
2009-07-25 06:24:05 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 17:25:22 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.23-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-16 16:28:54 +00:00
|
|
|
* Mon Feb 16 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-4
|
2009-02-16 16:27:44 +00:00
|
|
|
- run libtoolize to fix build with newer libtool
|
|
|
|
- disable rpath
|
|
|
|
|
2008-08-22 21:01:48 +00:00
|
|
|
* Fri Aug 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-3
|
|
|
|
- update to nmu1
|
|
|
|
- apply patch to fix imprecise definition of DL format
|
|
|
|
- apply patch so that when no config is present, libpaper will fallback through
|
|
|
|
LC_PAPER before giving up and using Letter
|
|
|
|
|
2008-02-20 01:18:46 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.23-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-02-19 20:31:14 +00:00
|
|
|
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.23-1
|
|
|
|
- 1.1.23
|
|
|
|
|
2007-08-24 13:25:28 +00:00
|
|
|
* Fri Aug 24 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1.1
|
|
|
|
- missing BR: gawk
|
|
|
|
|
2007-08-23 22:35:23 +00:00
|
|
|
* Thu Aug 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.22-1
|
|
|
|
- bump, no real changes of note, rebuild for ppc32
|
|
|
|
- license fix, v2 only
|
|
|
|
|
2007-07-09 15:18:51 +00:00
|
|
|
* Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1.1
|
|
|
|
- BR: libtool
|
|
|
|
|
2007-07-09 15:10:27 +00:00
|
|
|
* Mon Jul 09 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.21-1
|
|
|
|
- bump to 1.1.21
|
|
|
|
- fix automake bug (bz 247458)
|
|
|
|
|
2006-10-04 22:22:44 +00:00
|
|
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.20-5
|
|
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
|
|
2006-09-24 01:32:14 +00:00
|
|
|
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-4
|
|
|
|
- remove aclocal call
|
|
|
|
|
2006-09-24 01:04:35 +00:00
|
|
|
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-3
|
|
|
|
- fix FC-4 with aclocal call
|
|
|
|
- move man3 pages to -devel
|
|
|
|
- don't set default, just put comment in conf file
|
|
|
|
- own /etc/libpaper.d
|
|
|
|
- use debian/NEWS
|
|
|
|
- include the meager translations
|
|
|
|
- use --disable-static
|
|
|
|
|
2006-09-23 16:19:12 +00:00
|
|
|
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-2
|
|
|
|
- nuke static lib
|
|
|
|
- own /etc/papersize
|
|
|
|
- fix mixed spaces/tabs rpmlint warning
|
|
|
|
|
|
|
|
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-1
|
|
|
|
- initial package for Fedora Extras
|