packages: php-smushit/php-smushit.spec (NEW) - new
glen
glen at pld-linux.org
Thu Apr 14 23:49:52 CEST 2011
Author: glen Date: Thu Apr 14 21:49:52 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/php-smushit:
php-smushit.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/php-smushit/php-smushit.spec
diff -u /dev/null packages/php-smushit/php-smushit.spec:1.1
--- /dev/null Thu Apr 14 23:49:52 2011
+++ packages/php-smushit/php-smushit.spec Thu Apr 14 23:49:47 2011
@@ -0,0 +1,50 @@
+# $Revision$, $Date$
+%define pkgname smushit
+%define php_min_version 5.2.0
+%include /usr/lib/rpm/macros.php
+Summary: A PHP client for the Yahoo! Smush.it web service
+Name: php-%{pkgname}
+Version: 0.1
+Release: 1
+License: MIT
+Group: Development/Languages/PHP
+Source0: https://github.com/davgothic/SmushIt/tarball/master#/%{name}.tgz
+# Source0-md5: eea9d343230df453b189de8538315f9f
+URL: https://github.com/davgothic/SmushIt
+BuildRequires: rpmbuild(macros) >= 1.553
+Requires: php-common >= 4:%{php_min_version}
+Requires: php-curl
+Requires: php-json
+Requires: php-pcre
+Requires: php-spl
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SmushIt is a PHP client for the popular Yahoo! image compression web
+service Smush.it
+
+%prep
+%setup -qc
+mv *-SmushIt-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}
+cp -p smushit.php $RPM_BUILD_ROOT%{php_data_dir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{php_data_dir}/smushit.php
+
+%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 2011/04/14 21:49:47 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list