|
|
9dbbea9 |
Name: libpaper
|
|
|
9dbbea9 |
Version: 1.1.20
|
|
|
b85da01 |
Release: 5%{?dist}
|
|
|
9dbbea9 |
Summary: Library and tools for handling papersize
|
|
|
9dbbea9 |
Group: System Environment/Libraries
|
|
|
9dbbea9 |
License: GPL
|
|
|
9dbbea9 |
URL: http://packages.qa.debian.org/libp/libpaper.html
|
|
|
9dbbea9 |
Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}.tar.gz
|
|
|
9dbbea9 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
569d18b |
BuildRequires: automake, gettext
|
|
|
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
|
|
|
9dbbea9 |
%setup -q
|
|
|
569d18b |
cp debian/NEWS NEWS
|
|
|
9dbbea9 |
|
|
|
9dbbea9 |
%build
|
|
|
569d18b |
touch AUTHORS
|
|
|
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, -)
|
|
|
569d18b |
%doc COPYING ChangeLog NEWS 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
|
|
|
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
|