14
0

- update to 0.7.0:

* Switch to pbr
  * Include doc/* in sdist tarball
  * Add Shinx config to setup.cfg
  * Post release version bump to 0.6.7
  * Bump version to 0.6.6
  * Set files.pythonhosted.org as Source url
  * Also search for tarballs with underscores
  * Set pypi.io url for Source
  * Remove deprecated metadata subcommand
  * doc: Move CLI help to extra document
  * Support multiple template directories
  * Fix pep8 error
  * Use Sphinx for documentation
  * Remove hardcoded markers
  * Add license wit FIXME if available
  * Fix extensions for openSUSE template
  * Add script to create packages for OBS
  * Switch to metaextract
  * Improve openSUSE template checks
  * Update repository name after move to openSUSE
- Adjust Requires

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py2pack?expand=0&rev=57
This commit is contained in:
Thomas Bechtold
2017-02-14 12:12:17 +00:00
committed by Git OBS Bridge
parent ea976f6529
commit a95f0479a9
4 changed files with 43 additions and 26 deletions

View File

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

3
py2pack-0.7.0.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Tue Feb 14 11:49:36 UTC 2017 - tbechtold@suse.com
- update to 0.7.0:
* Switch to pbr
* Include doc/* in sdist tarball
* Add Shinx config to setup.cfg
* Post release version bump to 0.6.7
* Bump version to 0.6.6
* Set files.pythonhosted.org as Source url
* Also search for tarballs with underscores
* Set pypi.io url for Source
* Remove deprecated metadata subcommand
* doc: Move CLI help to extra document
* Support multiple template directories
* Fix pep8 error
* Use Sphinx for documentation
* Remove hardcoded markers
* Add license wit FIXME if available
* Fix extensions for openSUSE template
* Add script to create packages for OBS
* Switch to metaextract
* Improve openSUSE template checks
* Update repository name after move to openSUSE
- Adjust Requires
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 15 06:47:32 UTC 2016 - tbechtold@suse.com Mon Aug 15 06:47:32 UTC 2016 - tbechtold@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-py2pack # spec file for package python-py2pack
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-py2pack Name: python-py2pack
Version: 0.6.4 Version: 0.7.0
Release: 0 Release: 0
Url: http://github.com/saschpe/py2pack Url: http://github.com/saschpe/py2pack
Summary: Generate distribution packages from Python packages on PyPI Summary: Generate distribution packages from Python packages on PyPI
@@ -26,26 +26,18 @@ Group: Development/Languages/Python
Source: https://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz Source: https://pypi.io/packages/source/p/py2pack/py2pack-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-Jinja2 BuildRequires: python-Jinja2
BuildRequires: python-argparse BuildRequires: python-Sphinx
BuildRequires: python-cssselect
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-lxml BuildRequires: python-pbr
BuildRequires: python-requests
BuildRequires: python-setuptools
BuildRequires: python-six BuildRequires: python-six
BuildRequires: python-sphinxcontrib-programoutput
Requires: python-Jinja2 Requires: python-Jinja2
Requires: python-argparse Requires: python-metaextract
Requires: python-cssselect Requires: python-pbr
Requires: python-lxml
Requires: python-requests
Requires: python-six Requires: python-six
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
%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 BuildArch: noarch
%endif
%description %description
This script allows to generate RPM spec or DEB dsc files from Python modules. This script allows to generate RPM spec or DEB dsc files from Python modules.
@@ -55,19 +47,19 @@ universal tool to package Python modules.
%prep %prep
%setup -q -n py2pack-%{version} %setup -q -n py2pack-%{version}
#sed -i "1d" py2pack/py2pack.py # Fix non-executable script
%build %build
python setup.py build python setup.py build
python setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# The setup script installs stuff into '/usr/local', move stuff around accordingly
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_docdir}/%{name}
mv %{buildroot}/usr/share/doc/py2pack/* %{buildroot}%{_docdir}/%{name} install -d %{buildroot}%{_mandir}/man1
mv %{buildroot}/usr/man/man1/py2pack.1 %{buildroot}%{_mandir}/man1/py2pack-%{py_ver}.1
mv doc/build/man/py2pack.1 %{buildroot}%{_mandir}/man1/py2pack-%{py_ver}.1
ln -s -f %{_sysconfdir}/alternatives/py2pack.1.gz %{buildroot}%{_mandir}/man1/py2pack.1.gz ln -s -f %{_sysconfdir}/alternatives/py2pack.1.gz %{buildroot}%{_mandir}/man1/py2pack.1.gz
# Prepare for update-alternatives usage # Prepare for update-alternatives usage
@@ -91,14 +83,13 @@ fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc AUTHORS LICENSE README.rst %doc AUTHORS LICENSE README.rst doc/build/html
%{_bindir}/py2pack %{_bindir}/py2pack
%{_bindir}/py2pack-%{py_ver} %{_bindir}/py2pack-%{py_ver}
%{_mandir}/man1/py2pack.1.gz %{_mandir}/man1/py2pack.1.gz
%{_mandir}/man1/py2pack-%{py_ver}.1.gz %{_mandir}/man1/py2pack-%{py_ver}.1.gz
%ghost %{_sysconfdir}/alternatives/py2pack %ghost %{_sysconfdir}/alternatives/py2pack
%ghost %{_sysconfdir}/alternatives/py2pack.1.gz %ghost %{_sysconfdir}/alternatives/py2pack.1.gz
%{_docdir}/%{name}
%{python_sitelib}/py2pack-%{version}-py*.egg-info %{python_sitelib}/py2pack-%{version}-py*.egg-info
%{python_sitelib}/py2pack %{python_sitelib}/py2pack