summaryrefslogtreecommitdiffstats
path: root/php-dasprid-enum.spec
diff options
context:
space:
mode:
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