All docs are now installed into /usr/share/doc/graphviz-%{version}

- Demos packaged as docs not to automatically bring in unnecessary deps
This commit is contained in:
Jaroslav Škarvada 2012-05-22 12:29:23 +02:00
parent 05ba3affd5
commit 640caee988

View File

@ -39,7 +39,7 @@
Name: graphviz Name: graphviz
Summary: Graph Visualization Tools Summary: Graph Visualization Tools
Version: 2.28.0 Version: 2.28.0
Release: 16%{?dist} Release: 17%{?dist}
Group: Applications/Multimedia Group: Applications/Multimedia
License: EPL License: EPL
URL: http://www.graphviz.org/ URL: http://www.graphviz.org/
@ -295,15 +295,15 @@ export CPPFLAGS=-I`ruby -e "puts File.join(RbConfig::CONFIG['includedir'], RbCon
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install %install
rm -rf %{buildroot} __doc rm -rf %{buildroot}
make DESTDIR=%{buildroot} \ make DESTDIR=%{buildroot} \
docdir=%{buildroot}%{_docdir}/%{name} \ docdir=%{buildroot}%{_docdir}/%{name} \
pkgconfigdir=%{_libdir}/pkgconfig \ pkgconfigdir=%{_libdir}/pkgconfig \
install install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
chmod -x %{buildroot}%{_datadir}/%{name}/lefty/* chmod -x %{buildroot}%{_datadir}/%{name}/lefty/*
cp -a %{buildroot}%{_datadir}/%{name}/doc __doc mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
rm -rf %{buildroot}%{_datadir}/%{name}/doc mv %{buildroot}%{_datadir}/%{name}/doc/* %{buildroot}%{_docdir}/%{name}-%{version}
# PHP configuration file # PHP configuration file
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d %{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
@ -312,6 +312,12 @@ rm -rf %{buildroot}%{_datadir}/%{name}/doc
extension=gv.so extension=gv.so
__EOF__ __EOF__
# Remove executable modes from demos
find %{buildroot}%{_datadir}/%{name}/demo -type f -exec chmod a-x {} ';'
# Move demos to doc
mv %{buildroot}%{_datadir}/%{name}/demo %{buildroot}%{_docdir}/%{name}-%{version}/
%check %check
# Minimal load test of php extension # Minimal load test of php extension
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
@ -374,6 +380,9 @@ fi
%{_mandir}/man1/*.1* %{_mandir}/man1/*.1*
%{_mandir}/man7/*.7* %{_mandir}/man7/*.7*
%dir %{_datadir}/graphviz %dir %{_datadir}/graphviz
%exclude %{_docdir}/%{name}-%{version}/html
%exclude %{_docdir}/%{name}-%{version}/pdf
%exclude %{_docdir}/%{name}-%{version}/demo
%{_datadir}/graphviz/lefty %{_datadir}/graphviz/lefty
%if %{QTAPPS} %if %{QTAPPS}
@ -406,7 +415,9 @@ fi
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc __doc/* %doc %{_docdir}/%{name}-%{version}/html
%doc %{_docdir}/%{name}-%{version}/pdf
%doc %{_docdir}/%{name}-%{version}/demo
%files gd %files gd
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -491,7 +502,6 @@ fi
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/graphviz/tcl/ %{_libdir}/graphviz/tcl/
%{_libdir}/tcl*/* %{_libdir}/tcl*/*
%{_datadir}/graphviz/demo/
# hack to include gv.3tcl only if available # hack to include gv.3tcl only if available
# always includes tcldot.3tcl, gdtclft.3tcl # always includes tcldot.3tcl, gdtclft.3tcl
%{_mandir}/man3/*.3tcl* %{_mandir}/man3/*.3tcl*
@ -499,6 +509,10 @@ fi
%changelog %changelog
* Tue May 22 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.28.0-17
- All docs are now installed into /usr/share/doc/graphviz-%%{version}
- Demos packaged as docs not to automatically bring in unnecessary deps
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.0-16 * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.28.0-16
- Rebuilt for c++ ABI breakage - Rebuilt for c++ ABI breakage