summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-31 08:50:11 +0200
committerRemi Collet <remi@remirepo.net>2021-03-31 08:50:11 +0200
commitad3492960871aa15e58e1e0ce1cc8522ed1b7bbd (patch)
treeb6c864053e718d90fb7a20b32289d947881f277b
parentf22e33525c4c5f433cd45e4237fe5d9b5718e3ad (diff)
add LICENSE file copy/pasted from other doctrine project,
and from https://github.com/doctrine/deprecations/pull/27
-rw-r--r--php-doctrine-deprecations-pr27.patch35
-rw-r--r--php-doctrine-deprecations.spec15
2 files changed, 47 insertions, 3 deletions
diff --git a/php-doctrine-deprecations-pr27.patch b/php-doctrine-deprecations-pr27.patch
new file mode 100644
index 0000000..84a5690
--- /dev/null
+++ b/php-doctrine-deprecations-pr27.patch
@@ -0,0 +1,35 @@
+From 41f562939513a3db98785289dde99a9765939cbd Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 31 Mar 2021 07:45:06 +0200
+Subject: [PATCH] Fix #26 add LICENSE file
+
+---
+ LICENSE | 19 +++++++++++++++++++
+ 1 file changed, 19 insertions(+)
+ create mode 100644 LICENSE
+
+diff --git a/LICENSE b/LICENSE
+new file mode 100644
+index 0000000..156905c
+--- /dev/null
++++ b/LICENSE
+@@ -0,0 +1,19 @@
++Copyright (c) 2020-2021 Doctrine Project
++
++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-doctrine-deprecations.spec b/php-doctrine-deprecations.spec
index 0eb752e..3ac1ae7 100644
--- a/php-doctrine-deprecations.spec
+++ b/php-doctrine-deprecations.spec
@@ -22,7 +22,7 @@
Name: php-%{pk_vendor}-%{pk_project}
Version: 0.5.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A small layer on top of trigger_error or PSR-3 logging
License: MIT
@@ -30,6 +30,10 @@ URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: %{name}-%{version}-%{gh_short}.tgz
Source1: makesrc.sh
+# Missing license file from
+# https://github.com/doctrine/deprecations/pull/27
+Patch0: %{name}-pr27.patch
+
BuildArch: noarch
BuildRequires: php(language) >= 7.1
BuildRequires: php-fedora-autoloader-devel
@@ -91,6 +95,7 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
%prep
%setup -q -n %{gh_project}-%{gh_commit}
+%patch0 -p1
%build
@@ -146,13 +151,17 @@ exit $ret
%files
# remirepo:1
%{!?_licensedir:%global license %%doc}
-# https://github.com/doctrine/deprecations/issues/26
-#license LICENSE
+%license LICENSE
%doc *.md
%doc composer.json
%{_datadir}/php/%{ns_vendor}/%{ns_project}/
%changelog
+* Wed Mar 31 2021 Remi Collet <remi@remirepo.net> - 0.5.3-2
+- add LICENSE file copy/pasted from other doctrine project,
+ and from https://github.com/doctrine/deprecations/pull/27
+
* Tue Mar 30 2021 Remi Collet <remi@remirepo.net> - 0.5.3-1
- initial package
+- open https://github.com/doctrine/deprecations/issues/26 missing License