9dbbea9
Name:		libpaper
d1fe1d3
Version:	1.1.23
d1fe1d3
Release:	3%{?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
d1fe1d3
Source0:	http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}+nmu1.tar.gz
d1fe1d3
# Filed	upstream as:
d1fe1d3
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496126
cd98ed6
Patch0:		libpaper-1.1.20-automake_1.10.patch
d1fe1d3
# Upstream bug:
d1fe1d3
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475683
d1fe1d3
Patch1:		libpaper-1.1.23-debianbug475683.patch
d1fe1d3
# Filed upstream as:
d1fe1d3
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=481213
d1fe1d3
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
d1fe1d3
%setup -q -n %{name}-%{version}+nmu1
d1fe1d3
%patch0 -p1 -b .automake110
d1fe1d3
%patch1 -p1 -b .dlfix
d1fe1d3
%patch2 -p1 -b .useglibcfallback
9dbbea9
9dbbea9
%build
d1fe1d3
touch AUTHORS NEWS
cd98ed6
aclocal
cd98ed6
autoconf
9dbbea9
automake -a
569d18b
%configure --disable-static
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, -)
d1fe1d3
%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
d1fe1d3
* Fri Aug 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.1.23-3
d1fe1d3
- update to nmu1
d1fe1d3
- apply patch to fix imprecise definition of DL format
d1fe1d3
- apply patch so that when no config is present, libpaper will fallback through
d1fe1d3
  LC_PAPER before giving up and using Letter
d1fe1d3
d1fe1d3
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.23-2
d1fe1d3
- Autorebuild for GCC 4.3
d1fe1d3
d1fe1d3
* Tue Feb 19 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.23-1
d1fe1d3
- 1.1.23
d1fe1d3
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