Compare commits

4 Commits

Author SHA256 Message Date
6f7821bc76 Accepting request 1264835 from devel:languages:python
- Normalize metadata directory name.

Requires python-setuptools 78 to build successfully.

OBS-URL: https://build.opensuse.org/request/show/1264835
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyOgg?expand=0&rev=10
2025-04-16 18:38:23 +00:00
1666367437 - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyOgg?expand=0&rev=20
2025-03-25 05:54:12 +00:00
823685446e Accepting request 1245777 from devel:languages:python
- Don't use %_libdir, it doesn't work for noarch packages
- No more greedy globs in %files.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1245777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyOgg?expand=0&rev=9
2025-02-14 18:20:59 +00:00
988ddf0d7f - Don't use %_libdir, it doesn't work for noarch packages
- No more greedy globs in %files.
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyOgg?expand=0&rev=18
2025-02-14 03:56:50 +00:00
2 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Mar 25 05:53:57 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Lowercase metadata directory name.
-------------------------------------------------------------------
Fri Feb 14 03:56:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Don't use %_libdir, it doesn't work for noarch packages
- No more greedy globs in %files.
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 28 23:07:11 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Sun Aug 28 23:07:11 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyOgg # spec file for package python-PyOgg
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,14 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyOgg Name: python-PyOgg
Version: 0.6.14a1 Version: 0.6.14a1
Release: 0 Release: 0
Summary: Python bindings for Xiphorg's Ogg Vorbis, Opus and FLAC Summary: Python bindings for Xiphorg's Ogg Vorbis, Opus and FLAC
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/Zuzu-Typ/PyOgg URL: https://github.com/Zuzu-Typ/PyOgg
Source: https://files.pythonhosted.org/packages/source/P/PyOgg/PyOgg-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyOgg/PyOgg-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: pkgconfig BuildRequires: pkgconfig
@@ -36,14 +35,14 @@ BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(vorbisenc) BuildRequires: pkgconfig(vorbisenc)
BuildRequires: pkgconfig(vorbisfile) BuildRequires: pkgconfig(vorbisfile)
# Automatically get so numbers # Automatically get so numbers
Recommends: %( ls %{_libdir}/libogg.so.*.*.* | sed -r 's/.*(libogg)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libogg.so.*.*.* | sed -r 's/.*(libogg)\.so\.([0-9]*)\..*/\1\2/g' )
Recommends: libflac Recommends: libflac
Recommends: libvorbis Recommends: libvorbis
Recommends: %( ls %{_libdir}/libopus.so.*.*.* | sed -r 's/.*(libopus)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libopus.so.*.*.* | sed -r 's/.*(libopus)\.so\.([0-9]*)\..*/\1\2/g' )
Recommends: %( ls %{_libdir}/libopusenc.so.*.*.* | sed -r 's/.*(libopusenc)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libopusenc.so.*.*.* | sed -r 's/.*(libopusenc)\.so\.([0-9]*)\..*/\1\2/g' )
Recommends: %( ls %{_libdir}/libopusfile.so.*.*.* | sed -r 's/.*(libopusfile)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libopusfile.so.*.*.* | sed -r 's/.*(libopusfile)\.so\.([0-9]*)\..*/\1\2/g' )
Recommends: %( ls %{_libdir}/libvorbisenc.so.*.*.* | sed -r 's/.*(libvorbisenc)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libvorbisenc.so.*.*.* | sed -r 's/.*(libvorbisenc)\.so\.([0-9]*)\..*/\1\2/g' )
Recommends: %( ls %{_libdir}/libvorbisfile.so.*.*.* | sed -r 's/.*(libvorbisfile)\.so\.([0-9]*)\..*/\1\2/g' ) Recommends: %( ls /usr/lib*/libvorbisfile.so.*.*.* | sed -r 's/.*(libvorbisfile)\.so\.([0-9]*)\..*/\1\2/g' )
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -57,15 +56,16 @@ audio file formats.
sed -i 's/\r$//' README.md README.rst sed -i 's/\r$//' README.md README.rst
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%doc README.md README.rst %doc README.md README.rst
%license COPYING LICENSE %license COPYING LICENSE
%{python_sitelib}/* %{python_sitelib}/pyogg
%{python_sitelib}/pyogg-%{version}.dist-info
%changelog %changelog