Install docs to %{_pkgdocdir} where available (#994105).

epel9
Ville Skyttä 11 years ago
parent 9b3037074c
commit 18b2a6f821

@ -1,8 +1,9 @@
%global maj 0 %global maj 0
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: sratom Name: sratom
Version: 0.4.2 Version: 0.4.2
Release: 5%{?dist} Release: 6%{?dist}
Summary: A C library for serializing LV2 plugins Summary: A C library for serializing LV2 plugins
Group: System Environment/Libraries Group: System Environment/Libraries
@ -52,7 +53,7 @@ export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
--libdir=%{_libdir} \ --libdir=%{_libdir} \
--mandir=%{_mandir} \ --mandir=%{_mandir} \
--datadir=%{_datadir} \ --datadir=%{_datadir} \
--docdir=%{_docdir}/%{name}-devel-%{version} \ --docdir=%{_pkgdocdir} \
--test \ --test \
--docs --docs
./waf build -v %{?_smp_mflags} ./waf build -v %{?_smp_mflags}
@ -60,6 +61,7 @@ export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
%install %install
DESTDIR=%{buildroot} ./waf install DESTDIR=%{buildroot} ./waf install
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.* chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
install -pm 644 COPYING NEWS README %{buildroot}%{_pkgdocdir}
# tests failing - see http://dev.drobilla.net/ticket/832 # tests failing - see http://dev.drobilla.net/ticket/832
#%%check #%%check
@ -70,17 +72,21 @@ chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%doc NEWS README COPYING %{_pkgdocdir}
%exclude %{_pkgdocdir}/%{name}-%{maj}/
%{_libdir}/lib%{name}-%{maj}.so.* %{_libdir}/lib%{name}-%{maj}.so.*
%files devel %files devel
%{_pkgdocdir}/%{name}-%{maj}/
%{_libdir}/lib%{name}-%{maj}.so %{_libdir}/lib%{name}-%{maj}.so
%{_libdir}/pkgconfig/%{name}-%{maj}.pc %{_libdir}/pkgconfig/%{name}-%{maj}.pc
%{_includedir}/%{name}-%{maj}/ %{_includedir}/%{name}-%{maj}/
%{_docdir}/%{name}-devel-%{version}
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Sun Dec 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.4.2-6
- Install docs to %%{_pkgdocdir} where available (#994105).
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

Loading…
Cancel
Save