From 3086e70b60e8f05c616a1c62fbfb2de4b98e999b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 3 Feb 2015 08:00:12 +0100 Subject: php-phpdocumentor-reflection-docblock: add LICENSE --- LICENSE | 21 +++++++++++++++++++++ php-phpdocumentor-reflection-docblock.spec | 13 ++++++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 LICENSE 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 - 2.0.3-2 +- add LICENSE from upstream repository + * Fri Dec 19 2014 Remi Collet - 2.0.3-1 - initial package - open https://github.com/phpDocumentor/ReflectionDocBlock/issues/40 -- cgit