commit c85a345772786415979d2c8e3e89484965909f1dd3054a48e4e7cb20696e4fe6 Author: Thomas Bechtold Date: Tue Feb 16 13:09:25 2016 +0000 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 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/python-reno.changes b/python-reno.changes new file mode 100644 index 0000000..45d09eb --- /dev/null +++ b/python-reno.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 15 20:02:57 UTC 2016 - dmueller@suse.com + +- Initial package (1.5.0) + diff --git a/python-reno.spec b/python-reno.spec new file mode 100644 index 0000000..6b86e96 --- /dev/null +++ b/python-reno.spec @@ -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 diff --git a/reno-1.5.0.tar.gz b/reno-1.5.0.tar.gz new file mode 100644 index 0000000..bca8a19 --- /dev/null +++ b/reno-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5f5aae571105a1ed949aeb3ec1948c327d2c4c11fbe3cde3ab75094eda4de44 +size 27650