72468a8
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
72468a8
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
72468a8
72468a8
Name:           pyexiv2
272853b
Version:        0.3.2
fbdfd24
Release:        5%{?dist}
72468a8
Summary:        Python binding to exiv2
72468a8
72468a8
Group:          Development/Languages
72468a8
License:        GPLv2+
72468a8
URL:            http://tilloy.net/dev/pyexiv2/
f5cd8a2
Source0:        http://launchpad.net/pyexiv2/0.3.x/%{version}/+download/pyexiv2-%{version}.tar.bz2
15f70bb
Patch0:         http://tilloy.net/dev/pyexiv2-0.3.2-exiv2-0.18.2.patch
f6d2c4e
BuildRequires:  python-devel exiv2-devel boost-devel scons pytz
72468a8
72468a8
%description
72468a8
pyexiv2 is a python binding to exiv2, the C++ library for manipulation
72468a8
of EXIF and IPTC image metadata. It is a python module that allows your
72468a8
python scripts to read and write metadata (EXIF, IPTC, thumbnail)
4a7bc0a
embedded in image files (JPEG, TIFF, ...).
72468a8
72468a8
%prep
1358e3f
%setup -q
b1a585d
%if 0%{?rhel} > 0 && 0%{?rhel} <= 7
15f70bb
%patch0 -p0 -b .exiv2-0182
b1a585d
%endif
72468a8
72468a8
%build
72468a8
# Remove CFLAGS=... for noarch packages (unneeded)
72468a8
#CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
72468a8
export CXXFLAGS="%{optflags}"
72468a8
export LDFLAGS="%{optflags}"
72468a8
scons
72468a8
72468a8
%install
72468a8
#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
72468a8
export CXXFLAGS="%{optflags}"
72468a8
export LDFLAGS="%{optflags}"
72468a8
scons DESTDIR=$RPM_BUILD_ROOT install
72468a8
72468a8
%check
3b521f3
pushd test
0477547
PYTHONPATH=$RPM_BUILD_ROOT%{python_sitearch}  ./TestsRunner.py
b2f85ab
popd
72468a8
0189fe1
%files
72468a8
%defattr(-,root,root,-)
3b521f3
%doc README COPYING NEWS doc/
72468a8
%{python_sitearch}/*
72468a8
f4833d6
72468a8
%changelog
fbdfd24
* Wed Oct 17 2012 Matěj Cepl <mcepl@redhat.com> - 0.3.2-5
fbdfd24
- Rebuild for new boost.
fbdfd24
3fcfbc2
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.2-4
3fcfbc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3fcfbc2
5c5d69b
* Wed May 02 2012 Rex Dieter <rdieter@fedoraproject.org> - 0.3.2-3
5c5d69b
- rebuild (exiv2)
5c5d69b
b1a585d
* Mon Jan 9 2012 Matěj Cepl <mcepl@redhat.com> 0.3.2-2
b1a585d
- Applying upstream patch for 0.18.2 compatbility (#753322)
b1a585d
bf021f6
* Fri Dec 23 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 0.3.2-1
bf021f6
- Update to 0.3.2 and rebuild for new boost, drop upstreamed patch
bf021f6
2635993
* Wed Dec 14 2011 Matěj Cepl <mcepl@redhat.com> 0.3.1-2
2635993
- Make the package building with exiv 0.18.2 on EL-6 (#753322)
2635993
f6d2c4e
* Fri Nov 11 2011 'Matěj Cepl <mcepl@redhat.com>' - 0.3.1-1
f6d2c4e
- Add pytz to the BuildRequires (so that more tests are run).
f5cd8a2
bbef198
* Fri Oct 14 2011 Rex Dieter <rdieter@fedoraproject.org> - 0.3.0-6
bbef198
- rebuild (exiv2)
bbef198
3cbdf5b
* Sat Jul 30 2011 Matěj Cepl <mcepl@redhat.com> - 0.3.0-5
3cbdf5b
- Rebuilt against new libraries.
3cbdf5b
cd93b76
* Wed Apr 13 2011 Matěj Cepl <mcepl@redhat.com> - 0.3.0-4
cd93b76
- Rebuilt for new boost.
cd93b76
e1f07d3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
e1f07d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e1f07d3
cd583ce
* Sun Feb 06 2011 Thomas Spura <tomspur@fedoraproject.org> - 0.3.0-2
cd583ce
- rebuild for new boost
cd583ce
be24f32
* Sun Jan 02 2011 Rex Dieter <rdieter@fedoraproject.org> -  0.3.0-1
be24f32
- pyexiv2-0.3.0
be24f32
8dd8446
* Mon Oct 25 2010 Matěj Cepl <mcepl@redhat.com> - 0.2.2-2
8dd8446
- Fixing unit tests.
8dd8446
3b521f3
* Wed Aug 25 2010 Matěj Cepl <mcepl@redhat.com> - 0.2.2-1
3b521f3
- New upstream package, switch to 0.2.* version
3b521f3
4a7bc0a
* Sat Aug  7 2010 Peter Lemenkov <lemenkov@gmail.com> - 0.1.3-11
4a7bc0a
- Rebuilt for new boost
4a7bc0a
- Small cosmetic changes - whitespace cleanups
4a7bc0a
f532c2e
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.1.3-10
f532c2e
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f532c2e
4a7bc0a
* Mon May 31 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.3-9
bb87f05
- rebuild (exiv2)
bb87f05
4a7bc0a
* Sat Jan 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.3-8
bf13ed8
- rebuild (boost)
bf13ed8
b2f85ab
* Fri Jan 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.3-7
b2f85ab
- %%check: use unittests
b2f85ab
f4833d6
* Fri Jan 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.1.3-6
f4833d6
- pyexiv2 FTBFS against exiv2-0.19 (#552281)
f4833d6
5725dd3
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-5
5725dd3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5725dd3
d9117b7
* Mon Jun 08 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.3-4
d9117b7
-rebuild for new boot library
d9117b7
fe5226d
* Thu Apr 23 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.3-3
fe5226d
- executable library doesn't make sense
fe5226d
a127a5e
* Sat Apr 18 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.3-2
a127a5e
- Rebuild after exiv2 was fixed.
a127a5e
1358e3f
* Thu Apr 16 2009 Matěj Cepl <mcepl@redhat.com> - 0.1.3-1
1358e3f
- New upstream release (closes bug 494419)
1358e3f
b5e8b9b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-9.1.20090109bzr107
b5e8b9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b5e8b9b
8f82e8b
* Fri Jan 09 2009 Matej Cepl <mcepl@redhat.com> 0.1.2-8.1.20090109bzr107
d272c1c
- New snapshot from upstream pyexiv2-0.2 branch in order to be compatible
d272c1c
  with the current package of exiv2.
d272c1c
4a7bc0a
* Thu Dec 18 2008 Rex Dieter <rdieter@fedoraproject.org> - 0.1.2-6
49550c2
- respin (eviv2)
49550c2
f0a14b1
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.1.2-5
f0a14b1
- Rebuild for Python 2.6
f0a14b1
7bf7917
* Thu Sep 11 2008 Jesse Keating <jkeating@redhat.com> - 0.1.2-4
7bf7917
- Rebuild for deps
7bf7917
72468a8
* Fri Jul 18 2008 Matěj Cepl <mcepl@redhat.com> 0.1.2-3
72468a8
- Fix building system.
4a7bc0a
- Approved for Fedora
72468a8
72468a8
* Fri Jul 18 2008 Matěj Cepl <mcepl@redhat.com> 0.1.2-2
72468a8
- Dan's patch to fix compilation flags.
72468a8
72468a8
* Thu Jul 17 2008 Matěj Cepl <mcepl@redhat.com> 0.1.2-1
7bf7917
- initial build