terjeros pushed to python-exif (master). "2.0.2 (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 13 18:11:19 UTC 2015
>From d226a2d578d54991eda784a34f3a2aa55ef14127 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terje.rosten at ntnu.no>
Date: Mon, 13 Apr 2015 20:11:10 +0200
Subject: 2.0.2
- Add python3 sub package
diff --git a/.gitignore b/.gitignore
index 152d8f4..bb150a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ EXIFpy_1.0.8.tar.gz
/exif-py-1.3.3.tar.gz
/exif-py-1.4.1.tar.gz
/exif-py-1.4.2.tar.gz
+/exif-py-2.0.2.tar.gz
diff --git a/python-exif.spec b/python-exif.spec
index 7f0aa07..6d306de 100644
--- a/python-exif.spec
+++ b/python-exif.spec
@@ -1,37 +1,83 @@
+%global with_python3 1
%global oname exif-py
Summary: Python module to extract EXIF information
Name: python-exif
-Version: 1.4.2
-Release: 2%{?dist}
+Version: 2.0.2
+Release: 1%{?dist}
License: BSD
Group: Development/Libraries
URL: https://github.com/ianare/exif-py
Source0: https://github.com/ianare/%{oname}/archive/%{version}/%{oname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python-devel
+BuildRequires: python-setuptools
+%if 0%{?with_python3}
+BuildRequires: python3-setuptools
+BuildRequires: python3-devel
+%endif
%description
-Python Library to extract EXIF information in digital camera image files
+Python Library to extract EXIF information in digital camera image files.
+
+%if 0%{?with_python3}
+%package -n python3-exif
+Summary: Python 3 module to extract EXIF information
+Group: Development/Tools
+
+%description -n python3-exif
+Python Library to extract EXIF information in digital camera image files.
+
+This is the Python 3 version of python-exif.
+%endif
%prep
%setup -q -n %{oname}-%{version}
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif
%build
%{__python2} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif
%install
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+mv %{buildroot}%{_bindir}/EXIF.py %{buildroot}%{_bindir}/python3-EXIF.py
+ln -s python3-EXIF.py %{buildroot}%{_bindir}/python3-EXIF
+popd
+%endif
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
ln -s EXIF.py %{buildroot}%{_bindir}/EXIF
%files
-%doc CHANGES.txt LICENSE.txt README.rst
+%doc ChangeLog.rst LICENSE.txt README.rst
%{_bindir}/EXIF
%{_bindir}/EXIF.py
%{python_sitelib}/ExifRead-*-*.egg-info
%{python_sitelib}/exifread
+%if 0%{?with_python3}
+%files -n python3-exif
+%doc ChangeLog.rst LICENSE.txt README.rst
+%{_bindir}/python3-EXIF
+%{_bindir}/python3-EXIF.py
+%{python3_sitelib}/exifread
+%{python3_sitelib}/ExifRead-*-py*.egg-info
+%endif
+
%changelog
+* Mon Apr 13 2015 Terje Rosten <terje.rosten at ntnu.no> - 2.0.2-1
+- 2.0.2
+- Add python3 sub package
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index e834580..c66979c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fb99ecc1919494600aa6965ffb41dd60 exif-py-1.4.2.tar.gz
+a734b1e4bfdfff474416e698e9120271 exif-py-2.0.2.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/python-exif.git/commit/?h=master&id=d226a2d578d54991eda784a34f3a2aa55ef14127
More information about the scm-commits
mailing list