15
0
forked from pool/python-crcmod

Accepting request 557608 from home:pluskalm:branches:devel:languages:python

- Cleanup spec file
- Use fdupes
- Do not bundle html doc

OBS-URL: https://build.opensuse.org/request/show/557608
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-crcmod?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2017-12-16 08:15:59 +00:00
committed by Git OBS Bridge
parent 7f0791035c
commit c975bd0c2e
2 changed files with 11 additions and 10 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat Dec 16 08:07:07 UTC 2017 - mpluskal@suse.com
- Cleanup spec file
- Use fdupes
- Do not bundle html doc
-------------------------------------------------------------------
Thu Aug 24 13:35:06 UTC 2017 - jmatejek@suse.com

View File

@@ -16,8 +16,6 @@
#
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-crcmod
Version: 1.7
@@ -27,12 +25,9 @@ License: MIT
Group: Development/Languages/Python
Url: http://crcmod.sourceforge.net/
Source: https://files.pythonhosted.org/packages/source/c/crcmod/crcmod-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module base}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
%py_requires
%endif
%python_subpackages
%description
@@ -53,15 +48,14 @@ C/C++ source code that can be used in another application.
%setup -q -n crcmod-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/crcmod
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE README changelog docs/html
%doc LICENSE README changelog
%{python_sitearch}/*
%changelog