2679ac
%if 0%{?rhel} <= 5
2679ac
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
2679ac
%endif
2679ac
2679ac
Name: libiptcdata
2679ac
Version: 1.0.4
2679ac
Release: 21%{?dist}
2679ac
Summary: IPTC tag library
2679ac
2679ac
Group: Development/Libraries
2679ac
License: LGPLv2+
2679ac
URL: http://libiptcdata.sourceforge.net/
2679ac
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
2679ac
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2679ac
BuildRequires: autoconf
2679ac
BuildRequires: automake
2679ac
BuildRequires: gettext
2679ac
BuildRequires: gettext-devel
2679ac
BuildRequires: libtool
2679ac
BuildRequires: gtk-doc
2679ac
2679ac
%description
2679ac
libiptcdata is a library for parsing, editing, and saving IPTC data
2679ac
stored inside images.  IPTC is a standard for encoding metadata such
2679ac
as captions, titles, locations, etc. in the headers of an image file.
2679ac
libiptcdata also includes a command-line utility for modifying the
2679ac
metadata.
2679ac
2679ac
%package devel
2679ac
Summary: Headers and libraries for libiptcdata application development
2679ac
Group: Development/Libraries
2679ac
Requires: %{name} = %{version}-%{release}
2679ac
Requires: pkgconfig
2679ac
2679ac
%description devel
2679ac
The libiptcdata-devel package contains the libraries and include files
2679ac
that you can use to develop libiptcdata applications.
2679ac
2679ac
%if 0%{?rhel} <= 7
2679ac
%package -n python2-libiptcdata
2679ac
%{?python_provide:%python_provide python2-libiptcdata}
2679ac
# Remove before F30
2679ac
Provides: %{name}-python = %{version}-%{release}
2679ac
Provides: %{name}-python%{?_isa} = %{version}-%{release}
2679ac
Obsoletes: %{name}-python < %{version}-%{release}
2679ac
Summary: Python bindings for libiptcdata
2679ac
Group: Development/Libraries
2679ac
Requires: %{name} = %{version}-%{release}
2679ac
BuildRequires: python-devel
2679ac
2679ac
%description -n python2-libiptcdata
2679ac
The libiptcdata-python package contains a Python module that allows Python
2679ac
applications to use the libiptcdata API for reading and writing IPTC
2679ac
metadata in images.
2679ac
%endif
2679ac
2679ac
%prep
2679ac
%setup -q
2679ac
# fix compatibility with gtk-doc 1.26
2679ac
for f in libiptcdata/*.{c,h} ; do
2679ac
  iconv -f ISO-8859-1 -t utf8 -o $f.utf8 $f && mv $f.utf8 $f
2679ac
done
2679ac
gtkdocize
2679ac
autoreconf -fiv
2679ac
2679ac
%build
2679ac
%configure --enable-gtk-doc --disable-static \
2679ac
%if 0%{?rhel} <= 7
2679ac
  --enable-python
2679ac
%else
2679ac
  --disable-python
2679ac
%endif
2679ac
make %{?_smp_mflags}
2679ac
2679ac
%install
2679ac
rm -rf $RPM_BUILD_ROOT
2679ac
make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install
2679ac
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
2679ac
%if 0%{?rhel} <= 7
2679ac
rm -f $RPM_BUILD_ROOT%{python_sitearch}/iptcdata.la
2679ac
%endif
2679ac
%find_lang %{name} --all-name
2679ac
2679ac
%clean
2679ac
rm -rf $RPM_BUILD_ROOT
2679ac
2679ac
%post -p /sbin/ldconfig
2679ac
2679ac
%postun -p /sbin/ldconfig
2679ac
2679ac
%files -f %{name}.lang
2679ac
%defattr(-,root,root)
2679ac
%doc AUTHORS COPYING ChangeLog NEWS README TODO
2679ac
%{_bindir}/*
2679ac
%{_libdir}/lib*.so.*
2679ac
2679ac
%files devel
2679ac
%defattr(-,root,root)
2679ac
%{_libdir}/lib*.so
2679ac
%{_libdir}/pkgconfig/*.pc
2679ac
%{_includedir}/libiptcdata
2679ac
%{_datadir}/gtk-doc/html/libiptcdata
2679ac
2679ac
%if 0%{?rhel} <= 7
2679ac
%files -n python2-libiptcdata
2679ac
%defattr(-,root,root)
2679ac
%doc python/README
2679ac
%doc python/examples/*
2679ac
%{python_sitearch}/*.so
2679ac
%endif
2679ac
2679ac
%changelog
2679ac
* Thu Jun 14 2018 Troy Dawson <tdawson@redhat.com> - 1.0.4-21
2679ac
- No python2 in RHEL > 7 (#1580764)
2679ac
- fix compatibility with gtk-doc 1.26 (#1580764)
2679ac
2679ac
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.4-20
2679ac
- Add Provides for the old name without %%_isa
2679ac
2679ac
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.4-19
2679ac
- Python 2 binary package renamed to python2-libiptcdata
2679ac
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
2679ac
2679ac
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-18
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2679ac
2679ac
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-17
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2679ac
2679ac
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-16
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2679ac
2679ac
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-15
2679ac
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2679ac
2679ac
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-14
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2679ac
2679ac
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-13
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2679ac
2679ac
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-12
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2679ac
2679ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2679ac
2679ac
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-10
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2679ac
2679ac
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-9
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2679ac
2679ac
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-8
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2679ac
2679ac
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-7
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2679ac
2679ac
* Sun Dec  4 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.0.4-6
2679ac
- Mark translations with %%lang.
2679ac
2679ac
* Wed Nov 16 2011 David Moore <david.moore@gmail.com> 1.0.4-5
2679ac
- Removed 'Requires: gtk-doc', updated python sitearch.
2679ac
2679ac
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-4
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2679ac
2679ac
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.4-3
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
2679ac
2679ac
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2679ac
2679ac
* Sun Jul 05 2009 David Moore <dcm@acm.org> 1.0.4-1
2679ac
- New upstream version
2679ac
2679ac
* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-3
2679ac
- Added 'BuildRequires: gtk-doc'
2679ac
2679ac
* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-2
2679ac
- Added 'Requires: gtk-doc' and 'BuildRequires: libtool' and gettext
2679ac
2679ac
* Sun Apr 12 2009 David Moore <dcm@acm.org> 1.0.3-1
2679ac
- New upstream version
2679ac
- Added translation to file list
2679ac
2679ac
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
2679ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2679ac
2679ac
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.2-4
2679ac
- Rebuild for Python 2.6
2679ac
2679ac
* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.2-3
2679ac
- fix license tag
2679ac
2679ac
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.2-2
2679ac
- Autorebuild for GCC 4.3
2679ac
2679ac
* Tue May 15 2007 David Moore <dcm@acm.org> 1.0.2-1
2679ac
- New upstream version
2679ac
2679ac
* Fri Mar 23 2007 David Moore <dcm@acm.org> 1.0.1-1
2679ac
- New upstream version
2679ac
2679ac
* Thu Mar 22 2007 David Moore <dcm@acm.org> 1.0.0-2
2679ac
- Fixed URL, removed INSTALL file, fixed python path and timestamps
2679ac
2679ac
* Wed Mar 21 2007 David Moore <dcm@acm.org> 1.0.0-1
2679ac
- Updated spec file to better match Fedora guidelines
2679ac
2679ac
* Sun Jan 28 2007 David Moore <dcm@acm.org>
2679ac
- Added libiptcdata-python package
2679ac
2679ac
* Wed Apr 12 2006 David Moore <dcm@acm.org>
2679ac
- Removed *.mo from spec file since there are no translations yet
2679ac
2679ac
* Mon Feb 28 2005 David Moore <dcm@acm.org>
2679ac
- Initial version