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