switch to unversioned documentation directory

epel9
Eduardo Echeverria 12 years ago
parent 08b9352bf9
commit bf4610f880

@ -1,6 +1,14 @@
%if 0%{?fedora} >= 20
%global tools_doc %{_docdir}/%{name}-tools
%global glib_doc %{_docdir}/%{name}-glib-devel
%else
%global tools_doc %{_docdir}/%{name}-tools-%{version}
%global glib_doc %{_docdir}/%{name}-glib-devel-%{version}
%endif
Name: libdbusmenu Name: libdbusmenu
Version: 12.10.2 Version: 12.10.2
Release: 4%{?dist} Release: 5%{?dist}
Summary: A library that pulling out some code out of indicator-applet Summary: A library that pulling out some code out of indicator-applet
# All files installed in final rpms use C sources with dual licensing headers. # All files installed in final rpms use C sources with dual licensing headers.
@ -158,14 +166,14 @@ popd
# Put documentation in correct directory # Put documentation in correct directory
install -dm755 %{buildroot}%{_docdir}/%{name}-tools-%{version}/ install -dm755 %{buildroot}%{tools_doc}/
mv %{buildroot}%{_docdir}/%{name}/README.dbusmenu-bench \ mv %{buildroot}%{_docdir}/%{name}/README.dbusmenu-bench \
%{buildroot}%{_docdir}/%{name}-tools-%{version}/ %{buildroot}%{tools_doc}
# Put examples in correct documentation directory # Put examples in correct documentation directory
install -dm755 %{buildroot}%{_docdir}/%{name}-glib-devel-%{version}/examples/ install -dm755 %{buildroot}%{glib_doc}/examples/
mv %{buildroot}%{_docdir}/%{name}/examples/glib-server-nomenu.c \ mv %{buildroot}%{_docdir}/%{name}/examples/glib-server-nomenu.c \
%{buildroot}%{_docdir}/%{name}-glib-devel-%{version}/examples/ %{buildroot}%{glib_doc}/examples/
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
@ -191,9 +199,9 @@ mv %{buildroot}%{_docdir}/%{name}/examples/glib-server-nomenu.c \
%{_libdir}/pkgconfig/dbusmenu-glib-0.4.pc %{_libdir}/pkgconfig/dbusmenu-glib-0.4.pc
%{_datadir}/gir-1.0/Dbusmenu-0.4.gir %{_datadir}/gir-1.0/Dbusmenu-0.4.gir
%{_datadir}/vala/vapi/Dbusmenu-0.4.vapi %{_datadir}/vala/vapi/Dbusmenu-0.4.vapi
%dir %{_docdir}/%{name}-glib-devel-%{version}/ %dir %{glib_doc}/
%dir %{_docdir}/%{name}-glib-devel-%{version}/examples/ %dir %{glib_doc}/examples/
%doc %{_docdir}/%{name}-glib-devel-%{version}/examples/glib-server-nomenu.c %doc %{glib_doc}/examples/glib-server-nomenu.c
%files jsonloader %files jsonloader
%{_libdir}/libdbusmenu-jsonloader.so.* %{_libdir}/libdbusmenu-jsonloader.so.*
@ -245,10 +253,13 @@ mv %{buildroot}%{_docdir}/%{name}/examples/glib-server-nomenu.c \
%dir %{_datadir}/%{name}/ %dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/json/ %dir %{_datadir}/%{name}/json/
%{_datadir}/%{name}/json/test-gtk-label.json %{_datadir}/%{name}/json/test-gtk-label.json
%dir %{_docdir}/%{name}-tools-%{version}/ %dir %{tools_doc}/
%{_docdir}/%{name}-tools-%{version}/README.dbusmenu-bench %{tools_doc}/README.dbusmenu-bench
%changelog %changelog
* Mon Aug 26 2013 Eduardo Echeverria <echevemaster@gmail.com> - 12.10.2-5
- switch to unversioned documentation directory
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.2-4 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12.10.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

Loading…
Cancel
Save