don't include *.la files

This commit is contained in:
Nils Philippsen 2006-03-24 12:04:40 +00:00
parent 4d4a3675b1
commit c0c347b149

View File

@ -4,7 +4,7 @@
Summary: Scanner access software Summary: Scanner access software
Name: sane-backends Name: sane-backends
Version: 1.0.17 Version: 1.0.17
Release: 6 Release: 7
License: GPL (programs), relaxed LGPL (libraries), and public domain (docs) License: GPL (programs), relaxed LGPL (libraries), and public domain (docs)
Group: System Environment/Libraries Group: System Environment/Libraries
Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz Source0: ftp://ftp.sane-project.org/pub/sane/%{name}-%{version}/%{name}-%{version}.tar.gz
@ -94,13 +94,12 @@ make
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
%{makeinstall} docdir=%{buildroot}/%{_docdir}/%{name}-%{version} %{makeinstall} docdir=%{buildroot}/%{_docdir}/%{name}-%{version}
perl -pi -e "s/installed.*/installed=yes/g" $RPM_BUILD_ROOT%{_libdir}/libsane.la
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_libdir}/sane
mkdir -p %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
rm -f %{buildroot}%{_bindir}/gamma4scanimage rm -f %{buildroot}%{_bindir}/gamma4scanimage
rm -f %{buildroot}%{_libdir}/sane/*.a %{buildroot}%{_libdir}/*.a rm -f %{buildroot}%{_libdir}/sane/*.a %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/libsane*.la %{buildroot}%{_libdir}/sane/*.la
mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d/ mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d/
sh tools/udev/convert-usermap.sh tools/hotplug/libsane.usermap sh tools/udev/convert-usermap.sh tools/hotplug/libsane.usermap
@ -141,9 +140,7 @@ rm -rf %{buildroot}
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/sane-config %{_bindir}/sane-config
%{_includedir}/sane %{_includedir}/sane
%{_libdir}/libsane*.la
%{_libdir}/libsane*.so %{_libdir}/libsane*.so
%{_libdir}/sane/*.la
%{_libdir}/sane/*.so %{_libdir}/sane/*.so
%files docs %files docs
@ -156,6 +153,9 @@ rm -rf %{buildroot}
%{_docdir}/%{name}-%{version}/sane.ps %{_docdir}/%{name}-%{version}/sane.ps
%changelog %changelog
* Fri Mar 24 2006 Nils Philippsen <nphilipp@redhat.com> 1.0.17-7
- don't include *.la files
* Thu Mar 23 2006 Than Ngo <than@redhat.com> 1.0.17-6 * Thu Mar 23 2006 Than Ngo <than@redhat.com> 1.0.17-6
- rebuild against gphoto2 to get rid of gphoto2.la - rebuild against gphoto2 to get rid of gphoto2.la