[postgresql-ip4r] Use special %doc to install docs (#994049).

Ville Skyttä scop at fedoraproject.org
Mon Aug 12 08:33:58 UTC 2013


commit ff0a4e5daede13c0af1695050c9eb2bed7e3f26c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Aug 12 11:33:47 2013 +0300

    Use special %doc to install docs (#994049).

 postgresql-ip4r.spec |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/postgresql-ip4r.spec b/postgresql-ip4r.spec
index dbe0afa..daab5c4 100644
--- a/postgresql-ip4r.spec
+++ b/postgresql-ip4r.spec
@@ -3,7 +3,7 @@
 Summary:	IPv4 and IPv4 range index types for PostgreSQL
 Name:		postgresql-%{sname}
 Version:	1.05
-Release:	6%{?dist}
+Release:	7%{?dist}
 License:	BSD
 Group:		Applications/Databases
 Source0:	http://pgfoundry.org/frs/download.php/1581/%{sname}-%{version}.tar.gz
@@ -19,6 +19,7 @@ indexable version of the cidr type.
 
 %prep
 %setup -q -n %{sname}-%{version}
+mv README.%{sname} README
 
 %build
 make USE_PGXS=1 %{?_smp_mflags} 
@@ -28,23 +29,23 @@ rm -rf %{buildroot}
 
 install -d %{buildroot}%{_libdir}/pgsql/
 install -d %{buildroot}%{_datadir}/%{name}
-install -d %{buildroot}%{_docdir}/%{name}-%{version}
 install -m 755 %{sname}.so %{buildroot}%{_libdir}/pgsql/%{sname}.so
 install -p -m 755 %{sname}.sql %{buildroot}%{_datadir}/%{name}
-install -p -m 755 README.%{sname} %{buildroot}%{_docdir}/%{name}-%{version}/README
 
 %clean
 rm -rf %{buildroot}
 
 %files
 %defattr(644,root,root,755)
-%dir %{_docdir}/%{name}-%{version}
-%doc %{_docdir}/%{name}-%{version}/README
+%doc README
 %{_datadir}/%{name}
 %{_datadir}/%{name}/%{sname}*.sql
 %{_libdir}/pgsql/%{sname}.so
 
 %changelog
+* Mon Aug 12 2013 Ville Skyttä <ville.skytta at iki.fi> - 1.05-7
+- Use special %%doc to install docs (#994049).
+
 * Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.05-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list