14
0
forked from pool/python-reno

Accepting request 359615 from home:dirkmueller:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/359615
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-reno?expand=0&rev=1
This commit is contained in:
Thomas Bechtold
2016-02-16 13:09:25 +00:00
committed by Git OBS Bridge
commit c85a345772
5 changed files with 122 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-reno.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Feb 15 20:02:57 UTC 2016 - dmueller@suse.com
- Initial package (1.5.0)

90
python-reno.spec Normal file
View File

@@ -0,0 +1,90 @@
#
# spec file for package python-reno
#
# Copyright (c) 2016 SUSE LINUX Products 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/
Name: python-reno
Version: 1.5.0
Release: 0
License: Apache-2.0
Summary: RElease NOtes manager
Url: http://www.openstack.org/
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/r/reno/reno-%{version}.tar.gz
BuildRequires: python-Babel
BuildRequires: python-devel
BuildRequires: python-pbr
BuildRequires: python-PyYAML
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-testrepository
BuildRequires: python-testscenarios
BuildRequires: python-testtools
%endif
Requires: python-Babel >= 1.3
Requires: python-PyYAML >= 3.1.0
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%description
Reno is a release notes manager for storing release notes in a git
repository and then building documentation from them.
%prep
%setup -q -n reno-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if %{with tests}
%check
python setup.py test
%endif
# Prepare for update-alternatives usage
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for p in reno ; do
mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver}
ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p
# create a dummy target for /etc/alternatives/$p
touch %{buildroot}%{_sysconfdir}/alternatives/$p
done
%post
%_sbindir/update-alternatives \
--install %{_bindir}/reno reno %{_bindir}/reno-%{py_ver} 30
%postun
if [ $1 -eq 0 ] ; then
%_sbindir/update-alternatives --remove reno %{_bindir}/reno-%{py_ver}
fi
%files
%defattr(-,root,root,-)
%doc LICENSE ChangeLog README.rst AUTHORS
%{_bindir}/reno
%{_bindir}/reno-%{py_ver}
%ghost %{_sysconfdir}/alternatives/reno
%{python_sitelib}/reno
%{python_sitelib}/*.egg-info
%changelog

3
reno-1.5.0.tar.gz Normal file
View File

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