Accepting request 522165 from home:TheBlackCat:branches:devel:languages:python

- Implement single-spec version.
- Update to version 0.4.13
  * No changelog

OBS-URL: https://build.opensuse.org/request/show/522165
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=3
This commit is contained in:
Todd R 2017-09-07 20:47:23 +00:00 committed by Git OBS Bridge
parent 9e0b01305d
commit b9ff58c02d
4 changed files with 39 additions and 18 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289
size 133478

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:903d3d3c676e2b1244892954e2bbbe27871a633385a9bfe81f1a81a7032df2fe
size 3462

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Sep 7 20:06:52 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version.
- Update to version 0.4.13
* No changelog
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 3 19:12:38 UTC 2015 - toddrme2178@gmail.com Tue Feb 3 19:12:38 UTC 2015 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-python-magic # spec file for package python-python-magic
# #
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,24 +16,25 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_with test
Name: python-python-magic Name: python-python-magic
Version: 0.4.6 Version: 0.4.13
Release: 0 Release: 0
Summary: File type identification using libmagic Summary: File type identification using libmagic
License: Python-2.0 License: Python-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/ahupp/python-magic Url: https://github.com/ahupp/python-magic
Source: https://pypi.python.org/packages/source/p/python-magic/python-magic-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/python-magic/python-magic-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: file BuildRequires: file
Requires: file Requires: file
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch BuildArch: noarch
%endif
%python_subpackages
%description %description
This module uses ctypes to access the libmagic file type This module uses ctypes to access the libmagic file type
@ -44,13 +45,26 @@ supports both textual and MIME-type output.
%setup -q -n python-magic-%{version} %setup -q -n python-magic-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %if %{with test}
%check
pushd test
export PYTHONPATH='..'
export LANG=en_US.UTF-8
%python_exec test.py
popd
%endif
%files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{python_sitelib}/* %doc LICENSE
%{python_sitelib}/magic.py*
%pycache_only %{python_sitelib}/__pycache__/magic*.py*
%{python_sitelib}/python_magic-%{version}-py*.egg-info
%changelog %changelog