[php-symfony2-Console] Updated to upstream version 2.0.15 & updates per other package review

Shawn Iwinski siwinski at fedoraproject.org
Mon Jun 11 00:33:09 UTC 2012


commit 1241e2cb2a8ef0d4e3b75d8044476b8591a00a96
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date:   Sun Jun 10 20:32:33 2012 -0400

    Updated to upstream version 2.0.15 & updates per other package review
    
    (See: https://bugzilla.redhat.com/show_bug.cgi?id=817303)
    - Removed "BuildRequires: php-pear >= 1:1.4.9-1.2"
    - Updated %prep section
    - Removed cleaning buildroot from %install section
    - Removed documentation move from %install section (fixed upstream)
    - Removed %clean section
    - Updated %doc in %files section

 .gitignore                |    1 +
 php-symfony2-Console.spec |   38 ++++++++++++++------------------------
 sources                   |    2 +-
 3 files changed, 16 insertions(+), 25 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6a3c9aa..4c42808 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /Console-2.0.14.tgz
+/Console-2.0.15.tgz
diff --git a/php-symfony2-Console.spec b/php-symfony2-Console.spec
index 35b0b4b..2bb0c54 100644
--- a/php-symfony2-Console.spec
+++ b/php-symfony2-Console.spec
@@ -3,8 +3,8 @@
 %global pear_name %(echo %{name} | sed -e 's/^php-symfony2-//' -e 's/-/_/g')
 
 Name:             php-symfony2-Console
-Version:          2.0.14
-Release:          3%{?dist}
+Version:          2.0.15
+Release:          1%{?dist}
 Summary:          Symfony2 %{pear_name} Component
 
 Group:            Development/Libraries
@@ -13,7 +13,6 @@ URL:              http://symfony.com/doc/current/components/console.html
 Source0:          http://%{pear_channel}/get/%{pear_name}-%{version}.tgz
 
 BuildArch:        noarch
-BuildRequires:    php-pear >= 1:1.4.9-1.2
 BuildRequires:    php-pear(PEAR)
 BuildRequires:    php-channel(%{pear_channel})
 
@@ -40,9 +39,8 @@ other batch jobs.
 
 %prep
 %setup -q -c
-[ -f package2.xml ] || mv package.xml package2.xml
-mv package2.xml %{pear_name}-%{version}/%{name}.xml
-cd %{pear_name}-%{version}
+# package.xml is version 2.0
+mv package.xml %{pear_name}-%{version}/%{name}.xml
 
 
 %build
@@ -51,31 +49,16 @@ cd %{pear_name}-%{version}
 
 %install
 cd %{pear_name}-%{version}
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 %{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
 
 # Clean up unnecessary files
 rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
 
-# Move documentation to correct location
-# NOTE: Remove this when upstream updates their package.xml with role="doc"
-#       for these files
-mkdir -p $RPM_BUILD_ROOT%{pear_docdir}/Symfony/Component/%{pear_name}
-mv -f \
-    $RPM_BUILD_ROOT%{pear_phpdir}/Symfony/Component/%{pear_name}/composer.json \
-    $RPM_BUILD_ROOT%{pear_phpdir}/Symfony/Component/%{pear_name}/LICENSE \
-    $RPM_BUILD_ROOT%{pear_phpdir}/Symfony/Component/%{pear_name}/README.md \
-    $RPM_BUILD_ROOT%{pear_docdir}/Symfony/Component/%{pear_name}
-
 # Install XML package description
 mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
 install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
 
 
-%clean
-[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-
-
 %post
 %{__pear} install --nodeps --soft --force --register-only \
     %{pear_xmldir}/%{name}.xml >/dev/null || :
@@ -89,9 +72,7 @@ fi
 
 
 %files
-%doc %{pear_docdir}/Symfony/Component/%{pear_name}
-%dir %{pear_docdir}/Symfony/Component
-%dir %{pear_docdir}/Symfony
+%doc %{pear_docdir}/%{pear_name}
 %{pear_xmldir}/%{name}.xml
 %{pear_phpdir}/Symfony/Component/%{pear_name}
 %dir %{pear_phpdir}/Symfony/Component
@@ -99,6 +80,15 @@ fi
 
 
 %changelog
+* Wed May 30 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.0.15-1
+- Updated to upstream version 2.0.15
+- Removed "BuildRequires: php-pear >= 1:1.4.9-1.2"
+- Updated %%prep section
+- Removed cleaning buildroot from %%install section
+- Removed documentation move from %%install section (fixed upstream)
+- Removed %%clean section
+- Updated %%doc in %%files section
+
 * Sun May 20 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 2.0.14-3
 - Moved documentation to correct location
 
diff --git a/sources b/sources
index 10f2c67..b13bad7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3f91ea33251e6c3f90ae0ff25894a9a1  Console-2.0.14.tgz
+3d72b0624a0182a4e0d17e09ef3b6cb0  Console-2.0.15.tgz


More information about the scm-commits mailing list