summaryrefslogtreecommitdiffstats
path: root/php-phpdocumentor-reflection-docblock.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-phpdocumentor-reflection-docblock.spec')
-rw-r--r--php-phpdocumentor-reflection-docblock.spec13
1 files changed, 10 insertions, 3 deletions
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