[php-ezc-EventLog] - move data to doc (not used in the code, really doc) - doc in /usr/share/doc/pear

Remi Collet remi at fedoraproject.org
Sun Aug 19 10:33:04 UTC 2012


commit ded6823d9b9b8e58caed07f031b80eb20ea026d6
Author: remi <fedora at famillecollet.com>
Date:   Sun Aug 19 12:32:50 2012 +0200

    - move data to doc (not used in the code, really doc)
    - doc in /usr/share/doc/pear

 php-ezc-EventLog.spec |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/php-ezc-EventLog.spec b/php-ezc-EventLog.spec
index 24ebe8a..1365ab7 100644
--- a/php-ezc-EventLog.spec
+++ b/php-ezc-EventLog.spec
@@ -4,7 +4,7 @@
 
 Name:           php-ezc-EventLog
 Version:        1.4
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Allows you to log events or audit trails
 
 Group:          Development/Libraries
@@ -35,6 +35,10 @@ different formats.
 mv package2.xml %{pear_name}-%{version}/%{name}.xml
 cd %{pear_name}-%{version}
 
+# This are really doc, not data, not used in the code
+sed -e '/design/s/role="data"/role="doc"/' \
+    -i %{name}.xml
+
 
 %build
 cd %{pear_name}-%{version}
@@ -43,13 +47,9 @@ cd %{pear_name}-%{version}
 
 %install
 cd %{pear_name}-%{version}
-rm -rf %{buildroot} docdir
+rm -rf %{buildroot}
 %{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
 
-# Move documentation
-mv %{buildroot}%{pear_docdir}/%{pear_name}/docs ./docdir
-rm -rf %{buildroot}%{pear_docdir}
-
 # Clean up unnecessary files
 rm -rf %{buildroot}%{pear_phpdir}/.??*
 
@@ -76,14 +76,17 @@ fi
 
 %files
 %defattr(-,root,root,-)
-%doc %{pear_name}-%{version}/docdir/*
+%doc %{pear_docdir}/%{pear_name}
 %{pear_xmldir}/%{name}.xml
-%{pear_phpdir}/data/%{pear_name}
 %{pear_phpdir}/ezc/%{pear_name}
 %{pear_phpdir}/ezc/autoload/log_autoload.php
 
 
 %changelog
+* Sun Aug 19 2012 Remi Collet <remi at fedoraproject.org> - 1.4-6
+- move data to doc (not used in the code, really doc)
+- doc in /usr/share/doc/pear
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list