2016-02-18 12:51:37 +01:00
|
|
|
#
|
|
|
|
# spec file for package python3-magic
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{expand:%(sed -n -e '/^%%define somajor/,/^%%define libname/p' <%_sourcedir/file.spec)}
|
|
|
|
|
|
|
|
%define python python3
|
|
|
|
|
|
|
|
Name: python3-magic
|
|
|
|
%define build_python_bindings 1
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: python3-devel
|
2016-04-20 10:51:51 +02:00
|
|
|
BuildRequires: python3-setuptools
|
2016-02-18 12:51:37 +01:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
Url: http://www.darwinsys.com/file/
|
2016-11-24 11:45:15 +01:00
|
|
|
Version: 5.29
|
2016-02-18 12:51:37 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python module to use libmagic
|
|
|
|
License: BSD-3-Clause and BSD-4-Clause
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Source99: file.spec
|
|
|
|
%{expand:%(sed -n -e '/^Source:/,/^BuildRoot:/p' <%_sourcedir/file.spec)}
|
|
|
|
Requires: %libname
|
|
|
|
%global _sysconfdir /etc
|
|
|
|
%global _miscdir %{_datadir}/misc
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the python binding that require the magic "file"
|
|
|
|
interface.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%{expand:%(sed -n -e '/^%%prep/,/^%%install/p' <%_sourcedir/file.spec | sed -e '1d' -e '$d')}
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd python
|
|
|
|
%python setup.py install --root=%{buildroot} \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--record-rpm=../python_files
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files -f python_files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc python/README python/example.py
|
|
|
|
|
|
|
|
%changelog
|