From 1deab1ea14f8bbb8c37c5c647e7fcaba9c9c3d0e Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Oct 02 2017 11:20:18 +0000 Subject: Initial package. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3ba0587 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sphinxcontrib-actdiag-0.8.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index b6c78a9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-sphinxcontrib-actdiag - -The python-sphinxcontrib-actdiag package \ No newline at end of file diff --git a/python-sphinxcontrib-actdiag.spec b/python-sphinxcontrib-actdiag.spec new file mode 100644 index 0000000..a8c1eee --- /dev/null +++ b/python-sphinxcontrib-actdiag.spec @@ -0,0 +1,92 @@ +%global pypi_name sphinxcontrib-actdiag + +%if 0%{?fedora} +%global with_python3 1 +%endif + +%global common_desc sphinxcontribactdiag A sphinx extension for embedding \ +activity diagram using actdiag. This extension enables you to insert activity \ +diagrams into your document. + + +Name: python-%{pypi_name} +Version: 0.8.5 +Release: 1%{?dist} +Summary: Sphinx "actdiag" extension + +License: BSD +URL: http://github.com/blockdiag/sphinxcontrib-actdiag +Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + + +%description +%{common_desc} + +%package -n python2-%{pypi_name} +Summary: Sphinx "actdiag" extension +%{?python_provide:%python_provide python2-%{pypi_name}} + +BuildRequires: python2-devel +BuildRequires: python-setuptools +Requires: python-blockdiag >= 1.5.0 +Requires: python-actdiag >= 0.5.3 +Requires: python-sphinx >= 0.6 + +%description -n python2-%{pypi_name} +%{common_desc} + +%if 0%{?with_python3} +%package -n python3-%{pypi_name} +Summary: Sphinx "actdiag" extension +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python3-blockdiag >= 1.5.0 +Requires: python3-actdiag >= 0.5.3 +Requires: python3-sphinx >= 0.6 + +%description -n python3-%{pypi_name} +%{common_desc} +%endif + + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif + +%install +%if 0%{?with_python3} +%py3_install +%endif + +%py2_install + + +%files -n python2-%{pypi_name} +%license LICENSE +%doc README.rst +%{python2_sitelib}/sphinxcontrib_actdiag*nspkg.pth +%{python2_sitelib}/sphinxcontrib +%{python2_sitelib}/sphinxcontrib_actdiag-%{version}-py?.?.egg-info + +%if 0%{?with_python3} +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/sphinxcontrib_actdiag*nspkg.pth +%{python3_sitelib}/sphinxcontrib +%{python3_sitelib}/sphinxcontrib_actdiag-%{version}-py?.?.egg-info +%endif + +%changelog +* Tue Aug 29 2017 Haïkel Guémar - 0.8.5-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..afab4d4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sphinxcontrib-actdiag-0.8.5.tar.gz) = 3e526e675a4e17bff5c29f56f80f3feeadb0e408a818dc97e7a0c9acfcb70bc50a5a44d38bd40347ff8709d58deff824fb47caf89a8eeacce5cce9659651a701