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

- Move *.1 manpages to main package.
epel9
Ville Skyttä 11 years ago
parent e0f40131d9
commit 998d6a52e2

@ -1,8 +1,9 @@
%global maj 0 %global maj 0
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: sord Name: sord
Version: 0.12.0 Version: 0.12.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: A lightweight Resource Description Framework (RDF) C library Summary: A lightweight Resource Description Framework (RDF) C library
Group: System Environment/Libraries Group: System Environment/Libraries
@ -49,7 +50,7 @@ export CFLAGS="%{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}
@ -57,27 +58,32 @@ export CFLAGS="%{optflags}"
%install %install
DESTDIR=%{buildroot} ./waf install DESTDIR=%{buildroot} ./waf install
chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.* chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.*
install -pm 644 AUTHORS NEWS README COPYING %{buildroot}%{_pkgdocdir}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%doc AUTHORS NEWS README COPYING %{_pkgdocdir}
%exclude %{_pkgdocdir}/%{name}-%{maj}/
%{_libdir}/lib%{name}-%{maj}.so.* %{_libdir}/lib%{name}-%{maj}.so.*
%{_bindir}/sordi %{_bindir}/sordi
%{_bindir}/sord_validate %{_bindir}/sord_validate
%{_mandir}/man1/sordi.1.gz %{_mandir}/man1/%{name}*.1*
%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/%{name}*.3*
%{_mandir}/man1/%{name}*.1.*
%{_mandir}/man3/%{name}*.3.*
%changelog %changelog
* Sun Dec 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.12.0-4
- Install docs to %%{_pkgdocdir} where available (#994099).
- Move *.1 manpages to main package.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-3 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

Loading…
Cancel
Save