summaryrefslogtreecommitdiff
path: root/python-osadl-matrix.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-osadl-matrix.spec')
-rw-r--r--python-osadl-matrix.spec297
1 files changed, 297 insertions, 0 deletions
diff --git a/python-osadl-matrix.spec b/python-osadl-matrix.spec
new file mode 100644
index 0000000..068aea3
--- /dev/null
+++ b/python-osadl-matrix.spec
@@ -0,0 +1,297 @@
+%global _empty_manifest_terminate_build 0
+Name: python-osadl-matrix
+Version: 2023.3.16.10309
+Release: 1
+Summary: OSADL license compatibility matrix
+License: The Unlicense (Unlicense)
+URL: https://pypi.org/project/osadl-matrix/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d8/60/51d94941445851f51f3e1133d53ebd02dec5aa4963b87ff0fbca1a7b3670/osadl-matrix-2023.3.16.10309.tar.gz
+BuildArch: noarch
+
+
+%description
+# osadl-matrix
+
+This is a machine readable version of the [OSADL license compatibility matrix](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html) as a python library.
+
+## Changelog of the provided data
+
+A detailed changelog of the provided data can be found [here](https://github.com/priv-kweihmann/osadl-matrix/blob/master/DATALOG.md)
+
+## License
+
+This module is licensed under [Unlicensed](LICENSE.Unlicensed) license. Feel free to do whatever you want with it.
+
+### Data license
+
+The raw data of the OSADL Open Source License Checklists are licensed under the Creative Commons Attribution 4.0 International license (CC-BY-4.0), https://creativecommons.org/licenses/by/4.0/.
+
+© 2017 - 2021 Open Source Automation Development Lab (OSADL) eG and contributors, info@osadl.org
+
+Further information can be found [here](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html)
+A copy of the CC-BY-4.0 text can be found [here](LICENSE.ccby40)
+
+## Disclaimer
+
+We are not affiliated, associated, endorsed by, or in any way officially connected with the Open Source Automation Development Lab (OSADL) eG, or any of its subsidiaries or its affiliates. The official OSADL website can be found at https://www.osadl.org.
+
+## Usage
+
+### Using builtin functions
+
+```python
+import osadl_matrix
+
+result = osadl_matrix.is_compatible("BSD-3-Clause", "MIT")
+# result is either
+# True - licenses are compatible
+# False - licenses are *NOT* compatible
+
+result = osadl_matrix.get_compatibility("GPL-2.0-only", "MIT")
+# result is either
+# osadl_matrix.OSADLCompatibility.YES - licenses are compatible
+# osadl_matrix.OSADLCompatibility.NO - licenses are *NOT* compatible
+# osadl_matrix.OSADLCompatibility.UNKNOWN - license compatibility is uncertain
+# osadl_matrix.OSADLCompatibility.CHECKDEP - compatibility has depencies that need to be checked
+# osadl_matrix.OSADLCompatibility.UNDEF - at least one of the licenses are not present in the OSADL matrix
+
+result = osadl_matrix.supported_licenses()
+# result is a set of supported license (identifiers)
+```
+
+### Using the raw data
+
+```python
+import csv
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX) as csvinput:
+ creader = csv.reader(csvinput, delimiter=',', quotechar='"')
+ for row in creader:
+ print(row)
+```
+
+or as json
+
+```python
+import json
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:
+ cnt = json.read(jsoninput)
+ print(cnt)
+```
+
+
+
+
+%package -n python3-osadl-matrix
+Summary: OSADL license compatibility matrix
+Provides: python-osadl-matrix
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-osadl-matrix
+# osadl-matrix
+
+This is a machine readable version of the [OSADL license compatibility matrix](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html) as a python library.
+
+## Changelog of the provided data
+
+A detailed changelog of the provided data can be found [here](https://github.com/priv-kweihmann/osadl-matrix/blob/master/DATALOG.md)
+
+## License
+
+This module is licensed under [Unlicensed](LICENSE.Unlicensed) license. Feel free to do whatever you want with it.
+
+### Data license
+
+The raw data of the OSADL Open Source License Checklists are licensed under the Creative Commons Attribution 4.0 International license (CC-BY-4.0), https://creativecommons.org/licenses/by/4.0/.
+
+© 2017 - 2021 Open Source Automation Development Lab (OSADL) eG and contributors, info@osadl.org
+
+Further information can be found [here](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html)
+A copy of the CC-BY-4.0 text can be found [here](LICENSE.ccby40)
+
+## Disclaimer
+
+We are not affiliated, associated, endorsed by, or in any way officially connected with the Open Source Automation Development Lab (OSADL) eG, or any of its subsidiaries or its affiliates. The official OSADL website can be found at https://www.osadl.org.
+
+## Usage
+
+### Using builtin functions
+
+```python
+import osadl_matrix
+
+result = osadl_matrix.is_compatible("BSD-3-Clause", "MIT")
+# result is either
+# True - licenses are compatible
+# False - licenses are *NOT* compatible
+
+result = osadl_matrix.get_compatibility("GPL-2.0-only", "MIT")
+# result is either
+# osadl_matrix.OSADLCompatibility.YES - licenses are compatible
+# osadl_matrix.OSADLCompatibility.NO - licenses are *NOT* compatible
+# osadl_matrix.OSADLCompatibility.UNKNOWN - license compatibility is uncertain
+# osadl_matrix.OSADLCompatibility.CHECKDEP - compatibility has depencies that need to be checked
+# osadl_matrix.OSADLCompatibility.UNDEF - at least one of the licenses are not present in the OSADL matrix
+
+result = osadl_matrix.supported_licenses()
+# result is a set of supported license (identifiers)
+```
+
+### Using the raw data
+
+```python
+import csv
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX) as csvinput:
+ creader = csv.reader(csvinput, delimiter=',', quotechar='"')
+ for row in creader:
+ print(row)
+```
+
+or as json
+
+```python
+import json
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:
+ cnt = json.read(jsoninput)
+ print(cnt)
+```
+
+
+
+
+%package help
+Summary: Development documents and examples for osadl-matrix
+Provides: python3-osadl-matrix-doc
+%description help
+# osadl-matrix
+
+This is a machine readable version of the [OSADL license compatibility matrix](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html) as a python library.
+
+## Changelog of the provided data
+
+A detailed changelog of the provided data can be found [here](https://github.com/priv-kweihmann/osadl-matrix/blob/master/DATALOG.md)
+
+## License
+
+This module is licensed under [Unlicensed](LICENSE.Unlicensed) license. Feel free to do whatever you want with it.
+
+### Data license
+
+The raw data of the OSADL Open Source License Checklists are licensed under the Creative Commons Attribution 4.0 International license (CC-BY-4.0), https://creativecommons.org/licenses/by/4.0/.
+
+© 2017 - 2021 Open Source Automation Development Lab (OSADL) eG and contributors, info@osadl.org
+
+Further information can be found [here](https://www.osadl.org/Access-to-raw-data.oss-compliance-raw-data-access.0.html)
+A copy of the CC-BY-4.0 text can be found [here](LICENSE.ccby40)
+
+## Disclaimer
+
+We are not affiliated, associated, endorsed by, or in any way officially connected with the Open Source Automation Development Lab (OSADL) eG, or any of its subsidiaries or its affiliates. The official OSADL website can be found at https://www.osadl.org.
+
+## Usage
+
+### Using builtin functions
+
+```python
+import osadl_matrix
+
+result = osadl_matrix.is_compatible("BSD-3-Clause", "MIT")
+# result is either
+# True - licenses are compatible
+# False - licenses are *NOT* compatible
+
+result = osadl_matrix.get_compatibility("GPL-2.0-only", "MIT")
+# result is either
+# osadl_matrix.OSADLCompatibility.YES - licenses are compatible
+# osadl_matrix.OSADLCompatibility.NO - licenses are *NOT* compatible
+# osadl_matrix.OSADLCompatibility.UNKNOWN - license compatibility is uncertain
+# osadl_matrix.OSADLCompatibility.CHECKDEP - compatibility has depencies that need to be checked
+# osadl_matrix.OSADLCompatibility.UNDEF - at least one of the licenses are not present in the OSADL matrix
+
+result = osadl_matrix.supported_licenses()
+# result is a set of supported license (identifiers)
+```
+
+### Using the raw data
+
+```python
+import csv
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX) as csvinput:
+ creader = csv.reader(csvinput, delimiter=',', quotechar='"')
+ for row in creader:
+ print(row)
+```
+
+or as json
+
+```python
+import json
+
+import osadl_matrix
+
+with open(osadl_matrix.OSADL_MATRIX_JSON) as jsoninput:
+ cnt = json.read(jsoninput)
+ print(cnt)
+```
+
+
+
+
+%prep
+%autosetup -n osadl-matrix-2023.3.16.10309
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-osadl-matrix -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 2023.3.16.10309-1
+- Package Spec generated