[packages/php-composer-spdx-licenses] new, version 1.1.2

glen glen at pld-linux.org
Wed Nov 25 17:50:38 CET 2015


commit f3f271cc5d27e6cc18244f7aba68a59074538e69
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Nov 25 18:50:14 2015 +0200

    new, version 1.1.2
    
    based on fedora package, 7f510f5

 php-composer-spdx-licenses.spec | 43 +++++++++++++++++++++++++++++++++++++++++
 res.patch                       | 11 +++++++++++
 2 files changed, 54 insertions(+)
---
diff --git a/php-composer-spdx-licenses.spec b/php-composer-spdx-licenses.spec
new file mode 100644
index 0000000..431d7c8
--- /dev/null
+++ b/php-composer-spdx-licenses.spec
@@ -0,0 +1,43 @@
+%define		pkgname	spdx-licenses
+Summary:	SPDX licenses list and validation library
+Name:		php-composer-%{pkgname}
+Version:	1.1.2
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+Source0:	https://github.com/composer/spdx-licenses/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	3491a325766b3d04f92a1d4567b2abf8
+Patch0:		res.patch
+URL:		https://github.com/composer/spdx-licenses
+Requires:	php(core) >= 5.3.2
+Requires:	php(json)
+Requires:	php(pcre)
+Requires:	php(spl)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SPDX licenses list and validation library.
+
+Originally written as part of composer/composer, now extracted and
+made available as a stand-alone library.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}/Composer/Spdx
+cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}/Composer/Spdx
+cp -a res $RPM_BUILD_ROOT%{php_data_dir}/Composer/Spdx
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.md LICENSE
+# NOTE: dir shared with composer
+%dir %{php_data_dir}/Composer
+%{php_data_dir}/Composer/Spdx
diff --git a/res.patch b/res.patch
new file mode 100644
index 0000000..9072cda
--- /dev/null
+++ b/res.patch
@@ -0,0 +1,11 @@
+--- spdx-licenses-1.1.2/src/SpdxLicenses.php~	2015-10-05 14:27:42.000000000 +0300
++++ spdx-licenses-1.1.2/src/SpdxLicenses.php	2015-11-25 18:48:26.861299555 +0200
+@@ -178,7 +178,7 @@
+      */
+     public static function getResourcesDir()
+     {
+-        return dirname(__DIR__) . '/res';
++        return __DIR__ . '/res';
+     }
+ 
+     private function loadLicenses()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-composer-spdx-licenses.git/commitdiff/f3f271cc5d27e6cc18244f7aba68a59074538e69



More information about the pld-cvs-commit mailing list