2021-07-31 11:15:34 +08:00
|
|
|
%global _empty_manifest_terminate_build 0
|
2022-11-03 14:30:48 +08:00
|
|
|
Name: python-identify
|
2024-02-20 15:12:45 +08:00
|
|
|
Version: 2.5.35
|
2022-11-03 14:30:48 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: File identification library for Python
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/pre-commit/identify
|
2024-02-20 15:12:45 +08:00
|
|
|
Source0: https://files.pythonhosted.org/packages/c4/ba/680e84c24284eba70aebaaa90d03bd039453419151b0e6f92cd36bf69dd5/identify-2.5.35.tar.gz
|
2022-11-03 14:30:48 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
2021-07-31 11:15:34 +08:00
|
|
|
%description
|
|
|
|
|
File identification library for Python.
|
|
|
|
|
Given a file (or some information about a file), return a set of standardized tags identifying what the file is.
|
|
|
|
|
|
|
|
|
|
%package -n python3-identify
|
2022-11-03 14:30:48 +08:00
|
|
|
Summary: File identification library for Python
|
|
|
|
|
Provides: python-identify = %{version}-%{release}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-pbr
|
|
|
|
|
BuildRequires: python3-pip
|
|
|
|
|
BuildRequires: python3-wheel
|
2021-07-31 11:15:34 +08:00
|
|
|
%description -n python3-identify
|
|
|
|
|
File identification library for Python.
|
|
|
|
|
Given a file (or some information about a file), return a set of standardized tags identifying what the file is.
|
|
|
|
|
|
|
|
|
|
%package help
|
2022-11-03 14:30:48 +08:00
|
|
|
Summary: Development documents and examples for identify
|
|
|
|
|
Provides: python3-identify-doc
|
2021-07-31 11:15:34 +08:00
|
|
|
%description help
|
|
|
|
|
File identification library for Python.
|
|
|
|
|
Given a file (or some information about a file), return a set of standardized tags identifying what the file is.
|
|
|
|
|
|
|
|
|
|
%prep
|
2022-11-03 14:30:48 +08:00
|
|
|
%autosetup -n identify-%{version}
|
2021-07-31 11:15:34 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
|
|
|
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
|
|
|
pushd %{buildroot}
|
|
|
|
|
if [ -d usr/lib ]; then
|
2022-11-03 14:30:48 +08:00
|
|
|
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-31 11:15:34 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/lib64 ]; then
|
2022-11-03 14:30:48 +08:00
|
|
|
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-31 11:15:34 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/bin ]; then
|
2022-11-03 14:30:48 +08:00
|
|
|
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-31 11:15:34 +08:00
|
|
|
fi
|
|
|
|
|
if [ -d usr/sbin ]; then
|
2022-11-03 14:30:48 +08:00
|
|
|
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
2021-07-31 11:15:34 +08:00
|
|
|
fi
|
|
|
|
|
touch doclist.lst
|
|
|
|
|
if [ -d usr/share/man ]; then
|
2022-11-03 14:30:48 +08:00
|
|
|
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
2021-07-31 11:15:34 +08:00
|
|
|
fi
|
|
|
|
|
popd
|
|
|
|
|
mv %{buildroot}/filelist.lst .
|
|
|
|
|
mv %{buildroot}/doclist.lst .
|
|
|
|
|
|
|
|
|
|
%files -n python3-identify -f filelist.lst
|
|
|
|
|
%dir %{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%files help -f doclist.lst
|
|
|
|
|
%{_docdir}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-20 15:12:45 +08:00
|
|
|
* Tue Feb 20 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 2.5.35-1
|
|
|
|
|
- Update package to version 2.5.35
|
|
|
|
|
|
2023-10-26 14:03:13 +08:00
|
|
|
* Thu Oct 26 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.5.30-1
|
|
|
|
|
- Update package to version 2.5.30
|
|
|
|
|
|
2023-08-01 11:04:39 +08:00
|
|
|
* Tue Aug 01 2023 niuyaru <niuyaru@kylinos.cn> - 2.5.26-1
|
|
|
|
|
- Update package to version 2.5.26
|
|
|
|
|
|
2023-06-21 14:39:47 +08:00
|
|
|
* Wed Jun 21 2023 chendexi <chendexi@kylinos.cn> - 2.5.24-1
|
|
|
|
|
- Update package to version 2.5.24
|
|
|
|
|
|
2023-04-07 10:59:48 +08:00
|
|
|
* Fri Apr 7 2023 liyanan <thistleslyn@163.com> - 2.5.22-1
|
|
|
|
|
- Upgrade package to version 2.5.22
|
|
|
|
|
|
2023-02-24 14:54:41 +08:00
|
|
|
* Fri Feb 24 2023 wubijie <wubijie@kylinos.cn> - 2.5.18-1
|
|
|
|
|
- Update package to version 2.5.18
|
|
|
|
|
|
2023-02-08 13:50:10 +08:00
|
|
|
* Wed Feb 8 2023 wubijie <wubijie@kylinos.cn> - 2.5.17-1
|
|
|
|
|
- Update package to version 2.5.17
|
|
|
|
|
|
2022-12-16 15:32:11 +08:00
|
|
|
* Fri Dec 16 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2.5.10-1
|
|
|
|
|
- Update package to version 2.5.10
|
|
|
|
|
|
2022-11-03 14:30:48 +08:00
|
|
|
* Thu Nov 03 2022 wangjunqi <wangjunqi@kylinos.cn> - 2.5.8-1
|
|
|
|
|
- Update package to version 2.5.8
|
|
|
|
|
|
2021-07-31 11:15:34 +08:00
|
|
|
* Tue Jul 13 2021 OpenStack_SIG <openstack@openeuler.org> - 2.2.10-1
|
|
|
|
|
- Package Spec generate
|