commit 6f2af84e2475b92f6472d7d54e3e42992289ed7789f422fbe72684ce93d44389 Author: Tomáš Chvátal Date: Wed May 29 12:49:26 2019 +0000 Accepting request 706280 from home:mcalabkova:branches:devel:languages:python it is a dependency of new python-msm OBS-URL: https://build.opensuse.org/request/show/706280 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pako?expand=0&rev=1 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/pako-0.2.3.tar.gz b/pako-0.2.3.tar.gz new file mode 100644 index 0000000..25550f5 --- /dev/null +++ b/pako-0.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6be55fd8c5a2a6f02974f37438c1c47a3d9e764ce81c9d0a1a8c9a1815a59778 +size 7668 diff --git a/python-pako.changes b/python-pako.changes new file mode 100644 index 0000000..2c9cf40 --- /dev/null +++ b/python-pako.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed May 29 11:20:07 UTC 2019 - Marketa Calabkova + +- Initial packaging (v0.2.3) diff --git a/python-pako.spec b/python-pako.spec new file mode 100644 index 0000000..8e26f52 --- /dev/null +++ b/python-pako.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pako +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pako +Version: 0.2.3 +Release: 0 +Summary: The universal package manager library +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/MycroftAI/pako +Source: https://files.pythonhosted.org/packages/source/p/pako/pako-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: appdirs +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%python_subpackages + +%description +Often, scripts need to install system dependencies using the native package +manager of the user's OS. Typically, this is solved by having some bash script +that runs apt-get, assuming the user is on Ubuntu. Smarter scripts use hand +crafted code to detect the user's platform and aggregate a set of dependencies +on a few of the more popular platforms. Our approach is different: + * Parse package format (devel/debug/normal library or executable) + * Look up package managers that exist in PATH + * Format parsed package with common package convention of package manager + +More on https://github.com/MycroftAI/pako + +%prep +%setup -q -n pako-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/pako +rm -f %{buildroot}%{_prefix}/pako/LICENSE + +%post +%python_install_alternative pako + +%postun +%python_uninstall_alternative pako + +%files %{python_files} +%license LICENSE +%{python_sitelib}/* +%python_alternative %{_bindir}/pako + +%changelog