forked from pool/python-ghp-import
Accepting request 894428 from home:Mailaender:branches:devel:languages:python
dependency for mkdocs OBS-URL: https://build.opensuse.org/request/show/894428 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ghp-import?expand=0&rev=1
This commit is contained in:
80
python-ghp-import.spec
Normal file
80
python-ghp-import.spec
Normal file
@@ -0,0 +1,80 @@
|
||||
#
|
||||
# spec file for package python-ghp-import
|
||||
#
|
||||
# Copyright (c) 2015 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-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-ghp-import
|
||||
Version: 1.1.0
|
||||
Release: 0
|
||||
Summary: Import docs to your gh-pages branch
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://pypi.org/project/ghp-import/
|
||||
Source: https://github.com/davisp/ghp-import/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module dateutil >= 2.8.1}
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: python-Markdown
|
||||
Requires: python-flake8
|
||||
Requires: python-twine
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Easily import docs to your gh-pages branch.
|
||||
This will DESTROY your gh-pages branch. If you love it, you'll want
|
||||
to take backups before playing with this. This script assumes that
|
||||
gh-pages is 100% derivative. You should never edit files in your
|
||||
gh-pages branch by hand if you're using this script because you
|
||||
will lose your work.
|
||||
|
||||
%prep
|
||||
%setup -q -n ghp-import-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/ghp-import
|
||||
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative ghp-import
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative ghp-import
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/ghp-import
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/ghp_import-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user