From cc774edf2b40af53a2b9386ca26df02417bc6872ff895318e741dff0e7e5c440 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:20:03 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pymad?expand=0&rev=7 --- .gitattributes | 23 ++++++++++++++++++ .gitignore | 1 + pymad-0.11.3.tar.gz | 3 +++ python-pymad.changes | 48 +++++++++++++++++++++++++++++++++++++ python-pymad.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pymad-0.11.3.tar.gz create mode 100644 python-pymad.changes create mode 100644 python-pymad.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pymad-0.11.3.tar.gz b/pymad-0.11.3.tar.gz new file mode 100644 index 0000000..fe8f2a9 --- /dev/null +++ b/pymad-0.11.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5b9be3b625ce9257e07877b66b1f0bd8a957fb967d18cb2393a7e09cf6ce7aa +size 30098 diff --git a/python-pymad.changes b/python-pymad.changes new file mode 100644 index 0000000..1407e1d --- /dev/null +++ b/python-pymad.changes @@ -0,0 +1,48 @@ +------------------------------------------------------------------- +Wed Jun 11 05:54:14 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Sun Oct 22 07:45:17 UTC 2023 - Luigi Baldoni + +- Update to version 0.11.3 + * Bump standards-version to 4.6.2. + * Switch uscan to use the PyPI redirector. + * Acknowledged old bugs long since fixed. + * No longer needs a `PYBUILD_BEFORE_CLEAN` rule. + * Update extend-diff-ignore in source/options for git based + packaging. + * Add `python3-setuptools-scm` to the build dependencies. +- Disable tests due to missing requirement (pyao) + +------------------------------------------------------------------- +Tue Feb 20 12:31:24 UTC 2018 - aloisio@gmx.com + +- Update to version 0.10 (no changelog supplied) + +- Converted to single spec + +- Dropped pymad-use_python_sys_lib.patch (no longer necessary) + +- Spec cleanup + +------------------------------------------------------------------- +Tue Jul 1 00:00:00 UTC 2008 - guru@unixtech.be + +- obsoletes and provides python-mad + + +------------------------------------------------------------------- +Fri Apr 25 00:00:00 UTC 2008 - guru@unixtech.be + +- refactored spec file using --record-rpm + + +------------------------------------------------------------------- +Fri Dec 28 00:00:00 UTC 2007 - guru@unixtech.be + +- new package + + diff --git a/python-pymad.spec b/python-pymad.spec new file mode 100644 index 0000000..34c8f07 --- /dev/null +++ b/python-pymad.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-pymad +# +# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2008 Pascal Bleser +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pymad +Version: 0.11.3 +Release: 0 +Summary: Python Module to use the MPEG Audio Decoder Library +License: LGPL-2.0-or-later +URL: http://spacepants.org/src/pymad +Source: https://files.pythonhosted.org/packages/source/p/pymad/pymad-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(mad) +%python_subpackages + +%description +pymad is a Python module that allows Python programs to use the MPEG Audio +Decoder library. pymad provides a high-level API, similar to the pyogg module, +allowing to read PCM data from MPEG audio streams. + +%prep +%autosetup -p1 -n pymad-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +%files %{python_files} +%doc AUTHORS NEWS README.md THANKS +%license COPYING +%{python_sitearch}/mad.cpython-*-linux-gnu.so +%{python_sitearch}/pymad-%{version}.dist-info + +%changelog