Bump to python-magic 5.39 14/243214/1 accepted/tizen_6.5_base accepted/tizen_6.5_base_tool sandbox/backup/python-magic-5.39_20220321 sandbox/dh0128.kwak/python-magic-5.39_20200904 tizen_6.5_base accepted/tizen/6.5/base/20230714.002645 accepted/tizen/6.5/base/tool/20211027.120736 accepted/tizen/base/tool/20201201.024625 submit/tizen_6.5_base/20211026.180901 submit/tizen_6.5_base/20211027.183101 submit/tizen_6.5_base/20211027.201001 submit/tizen_base/20201109.060729 submit/tizen_base/20201110.034236 submit/tizen_base/20201123.010053 submit/tizen_base/20201207.055733 submit/tizen_base/20201208.051231 submit/tizen_base/20201208.051733 tizen_6.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 4 Sep 2020 03:43:17 +0000 (20:43 -0700)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 4 Sep 2020 03:43:17 +0000 (20:43 -0700)
Change-Id: I56d36357259a9cb2bfdd7e0d63de95987d9d88ae

packaging/python-magic-rpmlintrc [new file with mode: 0644]
packaging/python-magic.manifest [new file with mode: 0644]
packaging/python-magic.spec [new file with mode: 0644]

diff --git a/packaging/python-magic-rpmlintrc b/packaging/python-magic-rpmlintrc
new file mode 100644 (file)
index 0000000..1b4d915
--- /dev/null
@@ -0,0 +1 @@
+addFilter("E: non-standard-group");
diff --git a/packaging/python-magic.manifest b/packaging/python-magic.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python-magic.spec b/packaging/python-magic.spec
new file mode 100644 (file)
index 0000000..789274a
--- /dev/null
@@ -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.*