forked from pool/python-python-magic
		
	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:
		
							
								
								
									
										3
									
								
								python-magic-0.4.13.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								python-magic-0.4.13.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289 | ||||
| size 133478 | ||||
| @@ -1,3 +0,0 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:903d3d3c676e2b1244892954e2bbbe27871a633385a9bfe81f1a81a7032df2fe | ||||
| size 3462 | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # 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 | ||||
| # 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 | ||||
| Version:        0.4.6 | ||||
| Version:        0.4.13 | ||||
| Release:        0 | ||||
| Summary:        File type identification using libmagic | ||||
| License:        Python-2.0 | ||||
| Group:          Development/Languages/Python | ||||
| Url:            http://github.com/ahupp/python-magic | ||||
| Source:         https://pypi.python.org/packages/source/p/python-magic/python-magic-%{version}.tar.gz | ||||
| BuildRequires:  python-devel | ||||
| BuildRequires:  python-setuptools | ||||
| Url:            https://github.com/ahupp/python-magic | ||||
| Source:         https://files.pythonhosted.org/packages/source/p/python-magic/python-magic-%{version}.tar.gz | ||||
| BuildRequires:  %{python_module devel} | ||||
| BuildRequires:  %{python_module setuptools} | ||||
| BuildRequires:  fdupes | ||||
| BuildRequires:  python-rpm-macros | ||||
| BuildRequires:  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 | ||||
| %endif | ||||
|  | ||||
| %python_subpackages | ||||
|  | ||||
| %description | ||||
| 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} | ||||
|  | ||||
| %build | ||||
| python setup.py build | ||||
| %python_build | ||||
|  | ||||
| %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,-) | ||||
| %{python_sitelib}/* | ||||
| %doc LICENSE | ||||
| %{python_sitelib}/magic.py* | ||||
| %pycache_only %{python_sitelib}/__pycache__/magic*.py* | ||||
| %{python_sitelib}/python_magic-%{version}-py*.egg-info | ||||
|  | ||||
| %changelog | ||||
|   | ||||
		Reference in New Issue
	
	Block a user