diff --git a/_service b/_service
new file mode 100644
index 0000000..cb9f4fa
--- /dev/null
+++ b/_service
@@ -0,0 +1,15 @@
+
+
+ https://github.com/Pylons/plaster
+ git
+ docs/*
+ 1.1.2
+ 1.1.2
+
+
+
+
+ *.tar
+ xz
+
+
diff --git a/plaster-1.1.2-py2.py3-none-any.whl b/plaster-1.1.2-py2.py3-none-any.whl
deleted file mode 100644
index 8abb64a..0000000
--- a/plaster-1.1.2-py2.py3-none-any.whl
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:42992ab1f4865f1278e2ad740e8ad145683bb4022e03534265528f0c23c0df2d
-size 11554
diff --git a/plaster-1.1.2.obscpio b/plaster-1.1.2.obscpio
new file mode 100644
index 0000000..ee8a3d0
--- /dev/null
+++ b/plaster-1.1.2.obscpio
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a058a1e0b701074cf9ca970ccce876781af04613d04fb4b6d22c39cadd2a346d
+size 75787
diff --git a/plaster.obsinfo b/plaster.obsinfo
new file mode 100644
index 0000000..43c175d
--- /dev/null
+++ b/plaster.obsinfo
@@ -0,0 +1,4 @@
+name: plaster
+version: 1.1.2
+mtime: 1668994867
+commit: 30a7c7a3355f786483cc44fcceb0914649d124e5
diff --git a/python-plaster.changes b/python-plaster.changes
index bfe0145..8804842 100644
--- a/python-plaster.changes
+++ b/python-plaster.changes
@@ -1,3 +1,10 @@
+-------------------------------------------------------------------
+Tue May 14 12:49:13 UTC 2024 - Daniel Garcia
+
+- 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
diff --git a/python-plaster.spec b/python-plaster.spec
index f5d0f3e..3f1df3c 100644
--- a/python-plaster.spec
+++ b/python-plaster.spec
@@ -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/