Move udev rules to /lib/udev/rules.d (fixes rhbz #748206)

This commit is contained in:
Tim Jackson 2012-08-29 21:14:36 +02:00
parent 2639b90ad6
commit a12fb4dd6b

View File

@ -23,7 +23,7 @@
Summary: Specialist tools for ALSA
Name: alsa-tools
Version: 1.0.25
Release: 3%{?dist}
Release: 4%{?dist}
# Checked at least one source file from all the sub-projects contained in
# the source tarball and they are consistent GPLv2+ - TJ 2007-11-15
@ -43,7 +43,7 @@ Source5: 90-alsa-tools-firmware.rules
# http://www.openclipart.org/detail/17428
Source6: hwmixvolume.png
Source7: hwmixvolume.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: alsa-lib-devel >= 1.0.24
%if 0%{!?_without_tools:1}
BuildRequires: gtk+-devel
@ -163,11 +163,8 @@ done
rm -f ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/tascam_fw.usermap
mkdir -p ${RPM_BUILD_ROOT}/lib/udev
mv ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/* ${RPM_BUILD_ROOT}/lib/udev
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
%clean
%{__rm} -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}/lib/udev/rules.d
install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}/lib/udev/rules.d
%if 0%{!?_without_tools:1}
%files
@ -221,7 +218,7 @@ install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
%doc %{_docdir}/%{name}-%{version}/mixartloader
%doc %{_docdir}/%{name}-%{version}/usx2yloader
%doc %{_docdir}/%{name}-%{version}/vxloader
%config(noreplace) %{_sysconfdir}/udev/rules.d/*.rules
/lib/udev/rules.d/*.rules
/lib/udev/tascam_fpga
/lib/udev/tascam_fw
%{_bindir}/hdsploader
@ -231,6 +228,10 @@ install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d
%endif
%changelog
* Wed Aug 29 2012 Tim Jackson <rpm@timj.co.uk> - 1.0.25-4
- Move udev rules to /lib/udev/rules.d (rhbz #748206)
- remove %%BuildRoot and %%clean sections; no longer required
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.25-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild