Install docs to %{_pkgdocdir} where available.
This commit is contained in:
parent
c92d6a28c2
commit
4f986d9a40
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
%{?!_without_firmware: %global builddirsfirmw hdsploader mixartloader usx2yloader vxloader }
|
%{?!_without_firmware: %global builddirsfirmw hdsploader mixartloader usx2yloader vxloader }
|
||||||
|
|
||||||
|
%{?!_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||||
|
|
||||||
# Note that the Version is intended to coincide with the version of ALSA
|
# Note that the Version is intended to coincide with the version of ALSA
|
||||||
# included with the Fedora kernel, rather than necessarily the very latest
|
# included with the Fedora kernel, rather than necessarily the very latest
|
||||||
# upstream version of alsa-tools
|
# upstream version of alsa-tools
|
||||||
@ -23,7 +25,7 @@
|
|||||||
Summary: Specialist tools for ALSA
|
Summary: Specialist tools for ALSA
|
||||||
Name: alsa-tools
|
Name: alsa-tools
|
||||||
Version: 1.0.27
|
Version: 1.0.27
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
# Checked at least one source file from all the sub-projects contained in
|
# 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
|
# the source tarball and they are consistent GPLv2+ - TJ 2007-11-15
|
||||||
@ -145,19 +147,19 @@ do
|
|||||||
esac
|
esac
|
||||||
if [[ -s "${i}"/README ]]
|
if [[ -s "${i}"/README ]]
|
||||||
then
|
then
|
||||||
if [[ ! -d "%{buildroot}%{_docdir}/%{name}-%{version}/${i}" ]]
|
if [[ ! -d "%{buildroot}%{_pkgdocdir}/${i}" ]]
|
||||||
then
|
then
|
||||||
mkdir -p "%{buildroot}%{_docdir}/%{name}-%{version}/${i}"
|
mkdir -p "%{buildroot}%{_pkgdocdir}/${i}"
|
||||||
fi
|
fi
|
||||||
cp "${i}"/README "%{buildroot}%{_docdir}/%{name}-%{version}/${i}"
|
cp "${i}"/README "%{buildroot}%{_pkgdocdir}/${i}"
|
||||||
fi
|
fi
|
||||||
if [[ -s "${i}"/COPYING ]]
|
if [[ -s "${i}"/COPYING ]]
|
||||||
then
|
then
|
||||||
if [[ ! -d "%{buildroot}%{_docdir}/%{name}-%{version}/${i}" ]]
|
if [[ ! -d "%{buildroot}%{_pkgdocdir}/${i}" ]]
|
||||||
then
|
then
|
||||||
mkdir -p "%{buildroot}%{_docdir}/%{name}-%{version}/${i}"
|
mkdir -p "%{buildroot}%{_pkgdocdir}/${i}"
|
||||||
fi
|
fi
|
||||||
cp "${i}"/COPYING "%{buildroot}%{_docdir}/%{name}-%{version}/${i}"
|
cp "${i}"/COPYING "%{buildroot}%{_pkgdocdir}/${i}"
|
||||||
fi
|
fi
|
||||||
if [[ -s %{buildroot}%{_datadir}/applications/${i}.desktop ]] ; then
|
if [[ -s %{buildroot}%{_datadir}/applications/${i}.desktop ]] ; then
|
||||||
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
|
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
|
||||||
@ -174,17 +176,17 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d
|
|||||||
|
|
||||||
%if 0%{!?_without_tools:1}
|
%if 0%{!?_without_tools:1}
|
||||||
%files
|
%files
|
||||||
%dir %{_docdir}/%{name}-%{version}
|
%dir %{_pkgdocdir}
|
||||||
%doc %{_docdir}/%{name}-%{version}/as10k1
|
%doc %{_pkgdocdir}/as10k1
|
||||||
%doc %{_docdir}/%{name}-%{version}/echomixer
|
%doc %{_pkgdocdir}/echomixer
|
||||||
%doc %{_docdir}/%{name}-%{version}/envy24control
|
%doc %{_pkgdocdir}/envy24control
|
||||||
%doc %{_docdir}/%{name}-%{version}/hdspconf
|
%doc %{_pkgdocdir}/hdspconf
|
||||||
%doc %{_docdir}/%{name}-%{version}/hdspmixer
|
%doc %{_pkgdocdir}/hdspmixer
|
||||||
%doc %{_docdir}/%{name}-%{version}/hwmixvolume
|
%doc %{_pkgdocdir}/hwmixvolume
|
||||||
%doc %{_docdir}/%{name}-%{version}/rmedigicontrol
|
%doc %{_pkgdocdir}/rmedigicontrol
|
||||||
%doc %{_docdir}/%{name}-%{version}/sbiload
|
%doc %{_pkgdocdir}/sbiload
|
||||||
%doc %{_docdir}/%{name}-%{version}/hda-verb
|
%doc %{_pkgdocdir}/hda-verb
|
||||||
%doc %{_docdir}/%{name}-%{version}/hdajackretask
|
%doc %{_pkgdocdir}/hdajackretask
|
||||||
%{_bindir}/as10k1
|
%{_bindir}/as10k1
|
||||||
%{_bindir}/echomixer
|
%{_bindir}/echomixer
|
||||||
%{_bindir}/envy24control
|
%{_bindir}/envy24control
|
||||||
@ -213,7 +215,7 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d
|
|||||||
|
|
||||||
# sb16_csp stuff which is excluded for PPCx
|
# sb16_csp stuff which is excluded for PPCx
|
||||||
%ifnarch ppc ppc64
|
%ifnarch ppc ppc64
|
||||||
%doc %{_docdir}/%{name}-%{version}/sb16_csp
|
%doc %{_pkgdocdir}/sb16_csp
|
||||||
%{_bindir}/cspctl
|
%{_bindir}/cspctl
|
||||||
%{_datadir}/man/man1/cspctl.1.gz
|
%{_datadir}/man/man1/cspctl.1.gz
|
||||||
%endif
|
%endif
|
||||||
@ -222,11 +224,11 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d
|
|||||||
|
|
||||||
%if 0%{!?_without_firmware:1}
|
%if 0%{!?_without_firmware:1}
|
||||||
%files firmware
|
%files firmware
|
||||||
%dir %{_docdir}/%{name}-%{version}
|
%dir %{_pkgdocdir}
|
||||||
%doc %{_docdir}/%{name}-%{version}/hdsploader
|
%doc %{_pkgdocdir}/hdsploader
|
||||||
%doc %{_docdir}/%{name}-%{version}/mixartloader
|
%doc %{_pkgdocdir}/mixartloader
|
||||||
%doc %{_docdir}/%{name}-%{version}/usx2yloader
|
%doc %{_pkgdocdir}/usx2yloader
|
||||||
%doc %{_docdir}/%{name}-%{version}/vxloader
|
%doc %{_pkgdocdir}/vxloader
|
||||||
/lib/udev/rules.d/*.rules
|
/lib/udev/rules.d/*.rules
|
||||||
/lib/udev/tascam_fpga
|
/lib/udev/tascam_fpga
|
||||||
/lib/udev/tascam_fw
|
/lib/udev/tascam_fw
|
||||||
@ -237,6 +239,9 @@ install -m 644 %{SOURCE5} %{buildroot}/lib/udev/rules.d
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 1 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.0.27-3
|
||||||
|
- Install docs to %%{_pkgdocdir} where available.
|
||||||
|
|
||||||
* Tue May 21 2013 Dan Horák <dan[at]danny.cz> - 1.0.27-2
|
* Tue May 21 2013 Dan Horák <dan[at]danny.cz> - 1.0.27-2
|
||||||
- fix build on non-x86 arches
|
- fix build on non-x86 arches
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user