From: DongHun Kwak Date: Fri, 4 Sep 2020 03:43:17 +0000 (-0700) Subject: Bump to python-magic 5.39 X-Git-Tag: accepted/tizen/6.5/base/20230714.002645^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fdh0128.kwak%2Fpython-magic-5.39_20200904;p=platform%2Fupstream%2Fpython-magic.git Bump to python-magic 5.39 Change-Id: I56d36357259a9cb2bfdd7e0d63de95987d9d88ae --- diff --git a/packaging/python-magic-rpmlintrc b/packaging/python-magic-rpmlintrc new file mode 100644 index 0000000..1b4d915 --- /dev/null +++ b/packaging/python-magic-rpmlintrc @@ -0,0 +1 @@ +addFilter("E: non-standard-group"); diff --git a/packaging/python-magic.manifest b/packaging/python-magic.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python-magic.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python-magic.spec b/packaging/python-magic.spec new file mode 100644 index 0000000..789274a --- /dev/null +++ b/packaging/python-magic.spec @@ -0,0 +1,42 @@ +Name: python-magic +Version: 5.39 +Release: 0 +Url: http://www.darwinsys.com/file/ +Summary: Python module to use libmagic +License: BSD-2-Clause +Group: Platform Development/Python +Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz +Source1001: python-magic.manifest +BuildRequires: findutils +BuildRequires: libtool +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: zlib-devel + +BuildArch: noarch + +%description +This package contains the python binding that require the magic "file" +interface. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} ./%{name}.manifest + +%build +pushd python +python setup.py build +popd + +%install +pushd python +python setup.py install --root=%{buildroot} \ + --prefix=%{_prefix} +popd + +%files +%defattr(-,root,root) +%manifest %{name}.manifest +%license python/LICENSE +%{python_sitelib}/file_magic-*.egg-info/* +%{python_sitelib}/magic.*