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