15
0

- Build from source, using obs_scm service to download from repository

without docs/* to do not distribute CC-noncomercial licensed
  documentation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-plaster?expand=0&rev=14
This commit is contained in:
2024-05-14 12:51:17 +00:00
committed by Git OBS Bridge
parent cdb3695fde
commit e22adee406
6 changed files with 41 additions and 9 deletions

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/Pylons/plaster</param>
<param name="scm">git</param>
<param name="exclude">docs/*</param>
<param name="version">1.1.2</param>
<param name="revision">1.1.2</param>
</service>
<service mode="manual" name="set_version" />
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42992ab1f4865f1278e2ad740e8ad145683bb4022e03534265528f0c23c0df2d
size 11554

3
plaster-1.1.2.obscpio Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a058a1e0b701074cf9ca970ccce876781af04613d04fb4b6d22c39cadd2a346d
size 75787

4
plaster.obsinfo Normal file
View File

@@ -0,0 +1,4 @@
name: plaster
version: 1.1.2
mtime: 1668994867
commit: 30a7c7a3355f786483cc44fcceb0914649d124e5

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue May 14 12:49:13 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Build from source, using obs_scm service to download from repository
without docs/* to do not distribute CC-noncomercial licensed
documentation.
-------------------------------------------------------------------
Fri Jun 9 05:33:35 UTC 2023 - ecsos <ecsos@popensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-plaster
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,9 +24,13 @@ Summary: A loader interface around multiple config file formats
License: MIT
Group: Development/Languages/Python
URL: http://docs.pylonsproject.org/projects/plaster/en/latest
# Wheels lack files with problematic noncommercial license
Source: https://files.pythonhosted.org/packages/py2.py3/p/plaster/plaster-%{version}-py2.py3-none-any.whl
# The _service download the source and repack without the docs folder
# that has CC noncommercial license.
Source: plaster-%{version}.tar.xz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -42,16 +46,18 @@ implemented in a pluggable loader which can be registered via an
entrypoint.
%prep
%setup -q -c -T
%autosetup -p1 -n plaster-%{version}
%build
# Not Needed
%pyproject_wheel
%install
cp -a %{SOURCE0} .
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license %{python_sitelib}/plaster-%{version}.dist-info/LICENSE.txt
%{python_sitelib}/plaster-%{version}.dist-info/