diff options
Diffstat (limited to 'php-horde-Horde-Secret.spec')
-rw-r--r-- | php-horde-Horde-Secret.spec | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/php-horde-Horde-Secret.spec b/php-horde-Horde-Secret.spec index f344288..6730dd3 100644 --- a/php-horde-Horde-Secret.spec +++ b/php-horde-Horde-Secret.spec @@ -4,8 +4,8 @@ %global pear_channel pear.horde.org Name: php-horde-Horde-Secret -Version: 2.0.0 -Release: 2%{?dist} +Version: 2.0.2 +Release: 1%{?dist} Summary: Secret Encryption API Group: Development/Libraries @@ -13,16 +13,13 @@ License: LGPLv2+ URL: http://pear.horde.org Source0: http://%{pear_channel}/get/%{pear_name}-%{version}.tgz -# http://bugs.horde.org/ticket/11667 -Patch0: %{pear_name}-test.patch - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php-pear(PEAR) >= 1.7.0 BuildRequires: php-channel(%{pear_channel}) # To run unit tests BuildRequires: php-pear(%{pear_channel}/Horde_Test) >= 2.0.0 -BuildRequires: php-pear(Crypt_Blowfish) >= 1.0.1 +BuildRequires: php-pear(%{pear_channel}/Horde_Crypt_Blowfish) >= 1.0.0 Requires(post): %{__pear} Requires(postun): %{__pear} @@ -30,12 +27,13 @@ Requires: php(language) >= 5.3.0 Requires: php-hash Requires: php-session Requires: php-pear(PEAR) >= 1.7.0 -Requires: php-pear(Crypt_Blowfish) >= 1.0.1 Requires: php-channel(%{pear_channel}) Requires: php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0 Conflicts: php-pear(%{pear_channel}/Horde_Exception) >= 3.0.0 Requires: php-pear(%{pear_channel}/Horde_Support) >= 2.0.0 Conflicts: php-pear(%{pear_channel}/Horde_Support) >= 3.0.0 +Requires: php-pear(%{pear_channel}/Horde_Crypt_Blowfish) >= 1.0.0 +Conflicts: php-pear(%{pear_channel}/Horde_Crypt_Blowfish) >= 2.0.0 Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version} @@ -46,16 +44,10 @@ shared key. %prep -%setup -q -c -T -tar xif %{SOURCE0} +%setup -q -c cd %{pear_name}-%{version} -%patch0 -p1 -b .11667 - -# clear md5sum for patched files -sed -e '/Autoload.php/s/md5sum.*name/name/' \ - -e '/SecretTest.php/s/md5sum.*name/name/' \ - ../package.xml >%{name}.xml +mv ../package.xml %{name}.xml %build @@ -77,7 +69,10 @@ install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} %check cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g) -phpunit -d date.timezone=UTC AllTests.php +phpunit\ + -d include_path=%{buildroot}%{pear_phpdir}:.:%{pear_phpdir} \ + -d date.timezone=UTC \ + . %post @@ -101,6 +96,10 @@ fi %changelog +* Mon Nov 19 2012 Remi Collet <RPMS@FamilleCollet.com> - 2.0.2-1 +- Update to 2.0.2 for remi repo +- switch from Crypt_Blowfish to Horde_Crypt_Blowfish + * Wed Nov 7 2012 Remi Collet <remi@fedoraproject.org> - 2.0.0-2 - add patch for broken unit test http://bugs.horde.org/ticket/11667 |