15
0
forked from pool/python-cogapp
2018-12-04 17:11:20 +00:00
committed by Git OBS Bridge
parent cea29e841c
commit d5b641a19e

View File

@@ -24,18 +24,16 @@ Release: 0
Summary: A code generator for executing Python snippets in source files
License: MIT
Group: Development/Languages/Python
Url: http://nedbatchelder.com/code/cog
URL: http://nedbatchelder.com/code/cog
Source: https://files.pythonhosted.org/packages/source/c/cogapp/cogapp-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module nose}
%endif
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(post): update-alternatives
Requires(preun): update-alternatives
%python_subpackages
%description
@@ -66,8 +64,8 @@ mv %{buildroot}%{_bindir}/cog.py %{buildroot}%{_bindir}/cog
%python_uninstall_alternative cog
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt README.txt
%license LICENSE.txt
%doc README.txt
%python_alternative %{_bindir}/cog
%{python_sitelib}/*