[python-ZODB3] Adapt to versionless _docdir in Rawhide.

Jerry James jjames at fedoraproject.org
Tue Jul 30 20:09:54 UTC 2013


commit 32e21c66498430841da2ec2eb6cfea6b32638506
Author: Jerry James <jamesjer at betterlinux.com>
Date:   Tue Jul 30 14:09:43 2013 -0600

    Adapt to versionless _docdir in Rawhide.

 python-ZODB3.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/python-ZODB3.spec b/python-ZODB3.spec
index b73b4af..a53bea3 100644
--- a/python-ZODB3.spec
+++ b/python-ZODB3.spec
@@ -1,6 +1,6 @@
 Name:           python-ZODB3
 Version:        3.10.5
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Zope Object Database: Object Database and Persistence
 Group:          Development/Libraries
 License:        ZPLv2.1
@@ -70,8 +70,8 @@ pushd $RPM_BUILD_ROOT%{python_sitearch}
 find . \( -name '*.c' -o -name '*.h' \) -type f -print0 | xargs -0 rm -fv
 
 # deal with documents
-mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
-DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
+mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}/
+DOCDIR=$RPM_BUILD_ROOT%{_docdir}/%{name}/
 for FILE in `find . -name '*.txt'`; do
   DIR=${FILE%/*.*}
   # If a file in */tests/ directory, move it to an upper one.
@@ -101,7 +101,7 @@ cp -p COPYRIGHT.txt LICENSE.txt HISTORY.txt README.txt \
 python setup.py test
 
 %files
-%{_docdir}/%{name}-%{version}/
+%{_docdir}/%{name}/
 %{python_sitearch}/ZODB/
 %exclude %{python_sitearch}/ZODB/tests/
 %exclude %{python_sitearch}/ZODB/scripts/tests/
@@ -120,6 +120,9 @@ python setup.py test
 %{_includedir}/python?.?/ZODB3
 
 %changelog
+* Tue Jul 30 2013 Jerry James <loganjerry at gmail.com> - 3.10.5-5
+- Adapt to versionless _docdir in Rawhide
+
 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.10.5-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list