diff options
| author | Remi Collet <remi@remirepo.net> | 2019-09-10 09:42:54 +0200 | 
|---|---|---|
| committer | Remi Collet <remi@remirepo.net> | 2019-09-10 09:42:54 +0200 | 
| commit | 70d47199fcf2b68c4c1c65eb44d7b028a4625f48 (patch) | |
| tree | 29e2a110b33bf0daf85d451857b5e0d138b78190 | |
| parent | 4b9ea625d47cf921ab61c02b83d22682c40e255d (diff) | |
add license file
| -rw-r--r-- | 2.patch | 38 | ||||
| -rw-r--r-- | php-dasprid-enum.spec | 8 | 
2 files changed, 44 insertions, 2 deletions
@@ -0,0 +1,38 @@ +From 8e0c46b7907925b59d6640f8e9c11cf4454eb4f7 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Tue, 10 Sep 2019 09:36:48 +0200 +Subject: [PATCH] Fix #1 add LICENSE file + +--- + LICENSE | 22 ++++++++++++++++++++++ + 1 file changed, 22 insertions(+) + create mode 100644 LICENSE + +diff --git a/LICENSE b/LICENSE +new file mode 100644 +index 0000000..d45a356 +--- /dev/null ++++ b/LICENSE +@@ -0,0 +1,22 @@ ++Copyright (c) 2017, Ben Scholzen 'DASPRiD' ++All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without ++modification, are permitted provided that the following conditions are met: ++ ++1. Redistributions of source code must retain the above copyright notice, this ++   list of conditions and the following disclaimer. ++2. Redistributions in binary form must reproduce the above copyright notice, ++   this list of conditions and the following disclaimer in the documentation ++   and/or other materials provided with the distribution. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ++ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ++LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ++ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 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  | 
