summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-02-03 08:00:12 +0100
committerRemi Collet <fedora@famillecollet.com>2015-02-03 08:00:12 +0100
commit3086e70b60e8f05c616a1c62fbfb2de4b98e999b (patch)
tree96163ee268312b8bfd517062f949abca4f6bcc21
parent1d5106d593f47c12f42788d09240306269e95ff0 (diff)
php-phpdocumentor-reflection-docblock: add LICENSE
-rw-r--r--LICENSE21
-rw-r--r--php-phpdocumentor-reflection-docblock.spec13
2 files changed, 31 insertions, 3 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..792e404
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2010 Mike van Riel
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/php-phpdocumentor-reflection-docblock.spec b/php-phpdocumentor-reflection-docblock.spec
index 99fe151..23491f1 100644
--- a/php-phpdocumentor-reflection-docblock.spec
+++ b/php-phpdocumentor-reflection-docblock.spec
@@ -14,15 +14,17 @@
Name: php-phpdocumentor-reflection-docblock
Version: 2.0.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: DocBlock parser
Group: Development/Libraries
-# https://github.com/phpDocumentor/ReflectionDocBlock/issues/40
License: MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
+# https://github.com/phpDocumentor/ReflectionDocBlock/issues/40
+Source1: https://raw.githubusercontent.com/phpDocumentor/ReflectionDocBlock/master/LICENSE
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php(language) >= 5.3.3
@@ -53,6 +55,8 @@ DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+cp %{SOURCE1} LICENSE
+
%build
phpab \
@@ -85,13 +89,16 @@ rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
-#license LICENSE
+%license LICENSE
%doc *.md
%doc composer.json
%{_datadir}/php/phpDocumentor
%changelog
+* Tue Feb 3 2015 Remi Collet <remi@fedoraproject.org> - 2.0.3-2
+- add LICENSE from upstream repository
+
* Fri Dec 19 2014 Remi Collet <remi@fedoraproject.org> - 2.0.3-1
- initial package
- open https://github.com/phpDocumentor/ReflectionDocBlock/issues/40