package init
This commit is contained in:
parent
095129bf40
commit
84322c6750
@ -8,9 +8,9 @@ Summary: Scanner access software
|
||||
License: GPLv2+ and GPLv2+ with exceptions and Public Domain and IJG and LGPLv2+ and MIT
|
||||
URL: http://www.sane-project.org
|
||||
Source0: https://gitlab.com/sane-project/backends/uploads/9e718daff347826f4cfe21126c8d5091/%{name}-%{version}.tar.gz
|
||||
Source2: saned.socket
|
||||
Source3: saned@.service.in
|
||||
Source4: 66-saned.rules
|
||||
Source1: saned.socket
|
||||
Source2: saned@.service.in
|
||||
Source3: 66-saned.rules
|
||||
|
||||
BuildRequires: gcc-c++ texlive-latex libusbx-devel libieee1284-devel libjpeg-devel libpng-devel
|
||||
BuildRequires: libtiff-devel libv4l-devel gettext systemd-devel gphoto2-devel systemd
|
||||
@ -102,7 +102,7 @@ install -d %{buildroot}%{_prefix}/lib/udev/rules.d
|
||||
install -d %{buildroot}%{_prefix}/lib/udev/hwdb.d
|
||||
install -m 0644 tools/udev/sane-backends.rules %{buildroot}%{_prefix}/lib/udev/rules.d/65-sane-backends.rules
|
||||
install -m 0644 tools/udev/sane-backends.hwdb %{buildroot}%{_prefix}/lib/udev/hwdb.d/20-sane-backends.hwdb
|
||||
install -m 0644 %{SOURCE4} %{buildroot}%{_prefix}/lib/udev/rules.d/66-saned.rules
|
||||
install -m 0644 %{SOURCE3} %{buildroot}%{_prefix}/lib/udev/rules.d/66-saned.rules
|
||||
|
||||
install -d %{buildroot}%{_libdir}/pkgconfig
|
||||
install -m 0644 tools/sane-backends.pc %{buildroot}%{_libdir}/pkgconfig/
|
||||
@ -128,8 +128,8 @@ done
|
||||
cd -
|
||||
|
||||
install -m 755 -d %{buildroot}%{_unitdir}
|
||||
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
|
||||
sed 's|@CONFIGDIR@|%{_sysconfdir}/sane.d|g' < %{SOURCE3} > saned@.service
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
|
||||
sed 's|@CONFIGDIR@|%{_sysconfdir}/sane.d|g' < %{SOURCE2} > saned@.service
|
||||
install -m 644 saned@.service %{buildroot}%{_unitdir}
|
||||
|
||||
%find_lang sane-backends
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user