From 9f7967fef14af667633c689863a27467014c2e9b Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 3 Sep 2020 20:43:17 -0700 Subject: [PATCH] Bump to python-magic 5.39 Change-Id: I56d36357259a9cb2bfdd7e0d63de95987d9d88ae --- packaging/python-magic-rpmlintrc | 1 + packaging/python-magic.manifest | 5 +++++ packaging/python-magic.spec | 42 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 packaging/python-magic-rpmlintrc create mode 100644 packaging/python-magic.manifest create mode 100644 packaging/python-magic.spec 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.* -- 2.7.4