14
0

Accepting request 501168 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/501168
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=1
This commit is contained in:
2017-06-07 10:29:06 +00:00
committed by Git OBS Bridge
commit 81d5766c8f
5 changed files with 93 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

5
python-rencode.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Jun 5 12:48:15 UTC 2017 - aloisio@gmx.com
- Initial package (v. 1.0.5)

61
python-rencode.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# spec file for package python-rencode
#
# 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-rencode
Version: 1.0.5
Release: 0
Summary: Web safe object pickling/unpickling
License: GPL-3.0
Url: https://github.com/aresch/rencode
Source0: https://files.pythonhosted.org/packages/source/r/rencode/rencode-%{version}.tar.gz
Source1: %{name}.changes
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%python_subpackages
%description
The rencode module is a modified version of bencode from the
BitTorrent project. For complex, heterogeneous data structures with
many small elements, r-encodings take up significantly less space than
b-encodings. Python2 version of package
%prep
%setup -q -n rencode-%{version}
# to "avoid python-bytecode-inconsistent-mtime" warnings
FAKE_TIMESTAMP=$(LC_ALL=C date -u -r %{SOURCE1} +%y%m%d%H%M)
find . -name '*.py' -exec touch -mat $FAKE_TIMESTAMP {} \;
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes -s %{buildroot}%{$python_sitearch}/rencode
%files %{python_files}
%defattr(-,root,root)
%{python_sitearch}/rencode
%{python_sitearch}/rencode-%{version}-py%{python_version}.egg-info
%changelog

3
rencode-1.0.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fb66c92d35355d6098956204e663ddadf7f2cc8f64962846f67e1e1d036efc57
size 8706