forked from pool/python-cogapp
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cogapp?expand=0&rev=4
This commit is contained in:
@@ -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}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user