diff --git a/exif-1.3.4.tar.gz b/exif-1.3.4.tar.gz new file mode 100644 index 0000000..018f501 Binary files /dev/null and b/exif-1.3.4.tar.gz differ diff --git a/python-exif.spec b/python-exif.spec new file mode 100644 index 0000000..4bd06e1 --- /dev/null +++ b/python-exif.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-exif +Version: 1.3.4 +Release: 1 +Summary: Read and modify image EXIF metadata using Python. +License: MIT +URL: https://gitlab.com/TNThieding/exif +Source0: https://files.pythonhosted.org/packages/3b/c8/b9450ea444eef6d3daeb3d517b7d4a2ed42c245a35e87aa5f27d54de8059/exif-1.3.4.tar.gz +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 +%autosetup -n exif-1.3.4 + +%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 +* Tue Dec 14 2021 Python_Bot - 1.3.4-1 +- Package Init