Fix all the remaining items in 207802.

This commit is contained in:
Tom Callaway 2006-09-24 01:04:35 +00:00
parent 9dbbea9dd2
commit 569d18b767

View File

@ -1,13 +1,13 @@
Name: libpaper
Version: 1.1.20
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Library and tools for handling papersize
Group: System Environment/Libraries
License: GPL
URL: http://packages.qa.debian.org/libp/libpaper.html
Source0: http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: automake
BuildRequires: automake, gettext
%description
The paper library and accompanying files are intended to provide a
@ -28,21 +28,27 @@ to develop applications which use libpaper.
%prep
%setup -q
cp debian/NEWS NEWS
%build
touch NEWS AUTHORS
touch AUTHORS
aclocal
automake -a
%configure
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
# letter is a sane default
rm $RPM_BUILD_ROOT%{_libdir}/*.la
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
echo "letter" > $RPM_BUILD_ROOT%{_sysconfdir}/papersize
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}
%clean
rm -rf $RPM_BUILD_ROOT
@ -51,15 +57,15 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig
%files
%files -f %{name}.lang
%defattr(-, root, root, -)
%doc COPYING ChangeLog README
%doc COPYING ChangeLog NEWS README
%config(noreplace) %{_sysconfdir}/papersize
%dir %{_sysconfdir}/libpaper.d
%{_bindir}/paperconf
%{_libdir}/libpaper.so.*
%{_sbindir}/paperconfig
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/*
@ -67,8 +73,18 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root, -)
%{_includedir}/paper.h
%{_libdir}/libpaper.so
%{_mandir}/man3/*
%changelog
* 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
* Sat Sep 23 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1.1.20-2
- nuke static lib
- own /etc/papersize