summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-12-16 19:46:58 +0100
committerRemi Collet <fedora@famillecollet.com>2012-12-16 19:46:58 +0100
commit8efec93acccd36a36e537cfe36c258a91232afce (patch)
tree69efcbc1ba5c19eb883eb910a8727ce07b75a5d5
parent96253ee95c81bad0bff3ba6d1860e2746cd05f61 (diff)
sync with rawhide and fix content
-rw-r--r--php-simplepie.spec32
1 files changed, 28 insertions, 4 deletions
diff --git a/php-simplepie.spec b/php-simplepie.spec
index 38e6e6f..10f765e 100644
--- a/php-simplepie.spec
+++ b/php-simplepie.spec
@@ -1,15 +1,29 @@
Name: php-simplepie
Version: 1.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Simple RSS Library in PHP
Group: Development/Libraries
License: BSD
URL: http://simplepie.org/
Source0: http://simplepie.org/downloads/simplepie_%{version}.zip
+
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
+BuildRequires: php-phpunit-PHPUnit
+
Requires: php-IDNA_Convert
+Requires: php-curl
+Requires: php-date
+Requires: php-dom
+Requires: php-iconv
+Requires: php-libxml
+Requires: php-mbstring
+Requires: php-pcre
+Requires: php-pdo
+Requires: php-reflection
+Requires: php-xml
+# Optional: memcache, xmlreader, zlib
%description
SimplePie is a very fast and easy-to-use class, written in PHP, that puts the
@@ -29,10 +43,16 @@ chmod -x demo/for_the_demo/mediaplayer_readme.htm
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{_datadir}/php/%{name}
-
+mkdir -p %{buildroot}/%{_datadir}/php/
+cp -ar library %{buildroot}/%{_datadir}/php/%{name}
+
+sed -e '/__FILE__/s/\..*$/;/' autoloader.php \
+ > %{buildroot}/%{_datadir}/php/%{name}/autoloader.php
+%check
+phpunit .
+
%clean
rm -rf %{buildroot}
@@ -44,8 +64,12 @@ rm -rf %{buildroot}
%{_datadir}/php/%{name}
-
%changelog
+* Sun Dec 16 2012 Remi Collet <remi@fedoraproject.org> - 1.3.1-2
+- really install library
+- provides autoloader.php
+- run tests
+
* Wed Dec 12 2012 Nick Bebout <nb@fedoraproject.org> - 1.3.1-1
- Update to 1.3.1