summaryrefslogtreecommitdiffstats
path: root/php-dasprid-enum.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-09-10 09:42:54 +0200
committerRemi Collet <remi@remirepo.net>2019-09-10 09:42:54 +0200
commit70d47199fcf2b68c4c1c65eb44d7b028a4625f48 (patch)
tree29e2a110b33bf0daf85d451857b5e0d138b78190 /php-dasprid-enum.spec
parent4b9ea625d47cf921ab61c02b83d22682c40e255d (diff)
add license file
Diffstat (limited to 'php-dasprid-enum.spec')
-rw-r--r--php-dasprid-enum.spec8
1 files changed, 6 insertions, 2 deletions
diff --git a/php-dasprid-enum.spec b/php-dasprid-enum.spec
index d9487d7..321a729 100644
--- a/php-dasprid-enum.spec
+++ b/php-dasprid-enum.spec
@@ -29,6 +29,8 @@ License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
+Patch0: https://patch-diff.githubusercontent.com/raw/DASPRiD/Enum/pull/2.patch
+
BuildArch: noarch
%if %{with_tests}
# For tests
@@ -67,6 +69,7 @@ Autoloader: %{php_home}/%{ns_vendor}/%{ns_project}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1
cat << 'EOF' | tee src/autoload.php
<?php
@@ -109,7 +112,7 @@ exit $ret
%files
%{!?_licensedir:%global license %%doc}
-# Missing LICENSE, see https://github.com/DASPRiD/Enum/issues
+%license LICENSE
%doc composer.json
%doc README.md
%dir %{php_home}/%{ns_vendor}
@@ -119,4 +122,5 @@ exit $ret
%changelog
* Thu Oct 19 2017 Remi Collet <remi@remirepo.net> - 1.0.0-1
- initial package, version 1.0.0
-- open https://github.com/DASPRiD/Enum/issues - missing LICENSE
+- add license file from
+ https://github.com/DASPRiD/Enum/pull/2