python-exif/python-exif.spec

85 lines
2.5 KiB
RPMSpec
Raw Normal View History

2021-12-14 14:20:23 +08:00
%global _empty_manifest_terminate_build 0
Name: python-exif
2023-02-08 16:45:54 +08:00
Version: 1.6.0
2021-12-14 14:20:23 +08:00
Release: 1
Summary: Read and modify image EXIF metadata using Python.
2022-10-27 15:04:01 +08:00
License: MIT
2021-12-14 14:20:23 +08:00
URL: https://gitlab.com/TNThieding/exif
2023-02-08 16:45:54 +08:00
Source0: https://files.pythonhosted.org/packages/69/fc/226f502d3533e7d09876e5c0f9b8a61f84a88944d7815ad3bb9e43895785/exif-1.6.0.tar.gz
2021-12-14 14:20:23 +08:00
BuildArch: noarch
Requires: python3-plum-py
%description
Read and modify image EXIF metadata using Python without any third-party software
dependencies. For example, batch process image metadata using a Python script.
%package -n python3-exif
Summary: Read and modify image EXIF metadata using Python.
Provides: python-exif
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description -n python3-exif
Read and modify image EXIF metadata using Python without any third-party software
dependencies. For example, batch process image metadata using a Python script.
%package help
Summary: Development documents and examples for exif
Provides: python3-exif-doc
%description help
Read and modify image EXIF metadata using Python without any third-party software
dependencies. For example, batch process image metadata using a Python script.
%prep
2022-10-27 15:04:01 +08:00
%autosetup -n exif-%{version}
2021-12-14 14:20:23 +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
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-exif -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-02-08 16:45:54 +08:00
* Wed Feb 8 2023 wubijie <wubijie@kylinos.cn> - 1.6.0-1
- Update package to version 1.6.0
2022-12-16 15:10:36 +08:00
* Fri Dec 16 2022 wenzhiwei <wenzhiwei@kylinos.cn> - 1.4.0-1
- Upgrade package to version 1.4.0
2022-10-27 15:04:01 +08:00
* Thu Oct 27 2022 liqiuyu <liqiuyu@kylinos.cn> - 1.3.5-1
- Upgrade package to version 1.3.5
2021-12-14 14:20:23 +08:00
* Tue Dec 14 2021 Python_Bot <Python_Bot@openeuler.org> - 1.3.4-1
- Package Init