SPECS: php-Phlickr.spec (NEW) - new
adamg
adamg at pld-linux.org
Thu Sep 14 15:44:20 CEST 2006
Author: adamg Date: Thu Sep 14 13:44:20 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
php-Phlickr.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/php-Phlickr.spec
diff -u /dev/null SPECS/php-Phlickr.spec:1.1
--- /dev/null Thu Sep 14 15:44:20 2006
+++ SPECS/php-Phlickr.spec Thu Sep 14 15:44:13 2006
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+# TODO:
+# - this isn't a PEAR package - it's merely PEAR compatible,
+# maybe we should keep these somewhere outside PEAR tree?
+%include /usr/lib/rpm/macros.php
+%define _status beta
+%define _pearname Phlickr
+
+Summary: %{_pearname} - Access the Flickr API (PHP 5)
+Summary(pl): %{_pearname} - Dostęp do API Flickr (PHP 5)
+Name: php-%{_pearname}
+Version: 0.2.6
+Release: 1
+Epoch: 0
+License: LGPL
+Group: Development/Languages/PHP
+Source0: http://dl.sourceforge.net/phlickr/%{_pearname}-%{version}.tgz
+# Source0-md5: 66ae0b934d5ccbf88c175dce5f6d3781
+URL: http://phlickr.sourceforge.net/
+BuildRequires: php-pear-PEAR
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+Requires: php-common >= 3:5.0.0
+Requires: php-curl
+Requires: php-pear
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# exclude optional dependencies
+%define _noautoreq 'pear(PHPUnit2.*)'
+
+%description
+Phlickr is a PHP5 library designed to wrap the web service API
+provided by Flickr, a web based photo storage service. Phlickr
+requires that PHP5 be compiled with the CURL and SimpleXML extensions.
+
+Status of this package is: %{_status}.
+
+%description -l pl
+Phlickr to biblioteka dla PHP5 zaprojektowana by "opakować" API usług
+sieciowych dostarczonych przez Flickr, serwis zdjęć online. Phlickr
+korzysta z rozszerzeń CURL oraz SimpleXML.
+
+Ta klasa ma status: %{_status}.
+
+%package tests
+Summary: Tests for PEAR::%{_pearname}
+Summary(pl): Testy dla PEAR::%{_pearname}
+Group: Development
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: php-pear-PHPUnit2
+AutoReq: no
+
+%description tests
+Tests for PEAR::%{_pearname}.
+
+%description tests -l pl
+Testy dla PEAR::%{_pearname}.
+
+%prep
+%pear_package_setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+%pear_package_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
+ cat %{_docdir}/%{name}-%{version}/optional-packages.txt
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc install.log optional-packages.txt
+%{php_pear_dir}/.registry/*.reg
+%{php_pear_dir}/Phlickr/
+
+%files tests
+%defattr(644,root,root,755)
+%{php_pear_dir}/tests/Phlickr
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/09/14 13:44:13 adamg
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list