udev: improve paths

This commit is contained in:
Nils Philippsen 2012-09-10 12:34:58 +02:00
parent ad47c78c61
commit 8fdb3b9af3

View File

@ -9,6 +9,12 @@
%global _hardened_build 1 %global _hardened_build 1
%endif %endif
%if !0%{?fedora}%{?rhel} || 0%{?fedora} >= 17 || 0%{?rhel} >= 7
%global udevrulesdir %{prefix}/lib/udev/rules.d
%else
%global udevrulesdir /lib/udev/rules.d
%endif
Summary: Scanner access software Summary: Scanner access software
Name: sane-backends Name: sane-backends
Version: 1.0.23 Version: 1.0.23
@ -148,8 +154,8 @@ rm -f %{buildroot}%{_mandir}/man1/gamma4scanimage.1*
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 rm -f %{buildroot}%{_libdir}/libsane*.la %{buildroot}%{_libdir}/sane/*.la
mkdir -p %{buildroot}/lib/udev/rules.d mkdir -p %{buildroot}%{udevrulesdir}
install -m 0644 tools/udev/libsane.rules %{buildroot}/lib/udev/rules.d/65-libsane.rules install -m 0644 tools/udev/libsane.rules %{buildroot}%{udevrulesdir}/65-libsane.rules
mkdir -p %{buildroot}%{_libdir}/pkgconfig mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
@ -164,7 +170,7 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%dir /etc/sane.d %dir /etc/sane.d
%dir /etc/sane.d/dll.d %dir /etc/sane.d/dll.d
%config(noreplace) /etc/sane.d/*.conf %config(noreplace) /etc/sane.d/*.conf
/lib/udev/rules.d/65-libsane.rules %{udevrulesdir}/65-libsane.rules
%{_datadir}/pixmaps/sane.png %{_datadir}/pixmaps/sane.png
%{_bindir}/sane-find-scanner %{_bindir}/sane-find-scanner
@ -200,7 +206,7 @@ install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
%changelog %changelog
* Mon Sep 10 2012 Nils Philippsen <nils@redhat.com> - 1.0.23-3 * Mon Sep 10 2012 Nils Philippsen <nils@redhat.com> - 1.0.23-3
- udev: set up for generic user access rules - udev: set up for generic user access rules, improve paths
* Tue Sep 04 2012 Nils Philippsen <nils@redhat.com> - 1.0.23-2 * Tue Sep 04 2012 Nils Philippsen <nils@redhat.com> - 1.0.23-2
- make installed sane-config multi-lib aware again - make installed sane-config multi-lib aware again