Improved docs handling code in spec to be backward compatible with older RPM
This commit is contained in:
parent
640caee988
commit
a2bb395229
@ -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: 17%{?dist}
|
Release: 18%{?dist}
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
License: EPL
|
License: EPL
|
||||||
URL: http://www.graphviz.org/
|
URL: http://www.graphviz.org/
|
||||||
@ -297,14 +297,19 @@ make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make DESTDIR=%{buildroot} \
|
make DESTDIR=%{buildroot} \
|
||||||
docdir=%{buildroot}%{_docdir}/%{name} \
|
docdir=%{buildroot}%{_docdir}/%{name}-%{version} \
|
||||||
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/*
|
||||||
|
|
||||||
|
# Move docs to the right place
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
mv %{buildroot}%{_datadir}/%{name}/doc/* %{buildroot}%{_docdir}/%{name}-%{version}
|
mv %{buildroot}%{_datadir}/%{name}/doc/* %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
|
|
||||||
|
# Install README
|
||||||
|
install -m0644 README %{buildroot}%{_docdir}/%{name}-%{version}
|
||||||
|
|
||||||
# PHP configuration file
|
# PHP configuration file
|
||||||
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
||||||
%{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini
|
%{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini
|
||||||
@ -372,7 +377,7 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
%doc %{_docdir}/%{name}-%{version}
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%dir %{_libdir}/graphviz
|
%dir %{_libdir}/graphviz
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
@ -509,6 +514,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 23 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.28.0-18
|
||||||
|
- Improved docs handling code in spec to be backward compatible with older RPM
|
||||||
|
|
||||||
* Tue May 22 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.28.0-17
|
* Tue May 22 2012 Jaroslav Škarvada <jskarvad@redhat.com> - 2.28.0-17
|
||||||
- All docs are now installed into /usr/share/doc/graphviz-%%{version}
|
- All docs are now installed into /usr/share/doc/graphviz-%%{version}
|
||||||
- Demos packaged as docs not to automatically bring in unnecessary deps
|
- Demos packaged as docs not to automatically bring in unnecessary deps
|
||||||
|
Loading…
Reference in New Issue
Block a user