From 2b1844013e31770429b72016b8af5e9ac48c6c5a2fab4fdea9fae1c00c040ffa Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Sun, 21 May 2017 15:32:23 +0000 Subject: [PATCH] Accepting request 496993 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/496993 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytaglib?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + pytaglib-1.4.1.tar.gz | 3 ++ python-pytaglib.changes | 5 ++++ python-pytaglib.spec | 66 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytaglib-1.4.1.tar.gz create mode 100644 python-pytaglib.changes create mode 100644 python-pytaglib.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/pytaglib-1.4.1.tar.gz b/pytaglib-1.4.1.tar.gz new file mode 100644 index 0000000..3282bd7 --- /dev/null +++ b/pytaglib-1.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c374ab6a236db4711f10e3afb40e68982918aa8ee8eee165dbeab7ed49589b50 +size 108574 diff --git a/python-pytaglib.changes b/python-pytaglib.changes new file mode 100644 index 0000000..2126fda --- /dev/null +++ b/python-pytaglib.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat May 20 18:11:09 UTC 2017 - aloisio@gmx.com + +- Initial package (1.4.1) + diff --git a/python-pytaglib.spec b/python-pytaglib.spec new file mode 100644 index 0000000..5cfefd2 --- /dev/null +++ b/python-pytaglib.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-pytaglib +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytaglib +Version: 1.4.1 +Release: 0 +Summary: Metadata "tagging" library based on TagLib +License: GPL-3.0+ +Group: Development/Libraries/Python +Url: https://github.com/supermihi/pytaglib +Source: https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: libtag-devel +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + +%description +pytaglib is an audio metadata (“tag”) library for Python). +It relies on the popular TagLib C++ library. + +%prep +%setup -q -n "pytaglib-%{version}" +sed -i -e "1d" src/pyprinttags.py + +%build +%python_build + +%install +%python_install +mv %{buildroot}%{_bindir}/pyprinttags3 %{buildroot}/%{_bindir}/pyprinttags +%python_expand %fdupes -s %{buildroot}%{$python_sitearch} + +%check +export LANG=en_US.UTF-8 +%python_exec setup.py test + +%files %{python_files} +%defattr(-,root,root) +%doc COPYING README.txt +%python3_only %{_bindir}/pyprinttags +%pycache_only %{python_sitearch}/__pycache__ +%{python_sitearch}/pyprinttags.py* +%{python_sitearch}/taglib*.so +%{python_sitearch}/pytaglib-%{version}-py%{python_version}.egg-info/ + +%changelog