diff --git a/python-cogapp.spec b/python-cogapp.spec index 7bc30dd..dc19bf2 100644 --- a/python-cogapp.spec +++ b/python-cogapp.spec @@ -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}/*