diff --git a/download b/download new file mode 100644 index 0000000000000000000000000000000000000000..c8dde7a208267ac04f9d8e24b7f90fc0940c3d57 --- /dev/null +++ b/download @@ -0,0 +1 @@ +c04bc1375c280d41c0106255d1df711a libiptcdata-1.0.5.tar.gz diff --git a/libiptcdata-1.0.4.tar.gz b/libiptcdata-1.0.4.tar.gz deleted file mode 100644 index 51242b6e2c104ee5fcbf5756d5f915428c39c8e9..0000000000000000000000000000000000000000 Binary files a/libiptcdata-1.0.4.tar.gz and /dev/null differ diff --git a/libiptcdata.spec b/libiptcdata.spec index 310d50173d47c46e316c83ab02e7d074699de7cf..9e9021bcf6173efea90a33cee49fe6e4db58f353 100644 --- a/libiptcdata.spec +++ b/libiptcdata.spec @@ -1,25 +1,21 @@ -%define anolis_release .0.1 - -%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%{anolis_release}%{?dist} +Version: 1.0.5 +Release: 9%{?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 +URL: https://github.com/ianw/%{name} +Source0: https://github.com/ianw/%{name}/releases/download/%{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc +BuildRequires: gettext +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: gtk-doc +BuildRequires: python3-devel + %description libiptcdata is a library for parsing, editing, and saving IPTC data @@ -28,107 +24,108 @@ 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. +%package -n python3-%{name} +Summary: Python bindings for libiptcdata +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: make -%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 +%description -n python3-%{name} 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 -%package doc -Summary: Documents for %{name} -BuildArch: noarch -Requires: %{name} = %{version}-%{release} +%package devel +Summary: Headers and libraries for libiptcdata application development +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The libiptcdata-devel package contains the libraries and include files +that you can use to develop libiptcdata applications. -%description doc -Doc pages for %{name}. %prep -%setup -q +%autosetup # 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} +#configure --enable-gtk-doc --disable-python --disable-static +export PYTHON_VERSION=%python3_version +%configure --enable-gtk-doc --enable-python --disable-static +%make_build + %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 +%make_install +find %{buildroot} -name "*.la" -exec rm -f {} \; %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 COPYING +%doc AUTHORS ChangeLog NEWS README TODO +%license COPYING %{_bindir}/* %{_libdir}/lib*.so.* +%files -n python3-%{name} +%doc python/README +%doc python/examples/* +%{python3_sitearch}/*.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 - -%files doc -%doc AUTHORS ChangeLog NEWS README TODO %changelog -* Mon Jul 18 2022 Zhao Hang - 1.0.4-21.0.1 -- Add doc sub package +* Mon Aug 09 2021 Mohan Boddu - 1.0.5-9 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1.0.5-8 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.0.5-5 +- Rebuilt for Python 3.9 + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 19 2019 Miro Hrončok - 1.0.5-3 +- Rebuilt for Python 3.8 + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Apr 16 2019 Richard Shaw - 1.0.5-1 +- Update to 1.0.5. +- Modernize spec file. +- Enable python3 package. + +* Fri Jan 04 2019 Miro Hrončok - 1.0.4-24 +- Remove the Python 2 subpackage (#1628188) + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0.4-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Mar 26 2018 Iryna Shcherbina - 1.0.4-22 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) -* Thu Jun 14 2018 Troy Dawson - 1.0.4-21 -- No python2 in RHEL > 7 (#1580764) -- fix compatibility with gtk-doc 1.26 (#1580764) +* Wed Feb 07 2018 Fedora Release Engineering - 1.0.4-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 1.0.4-20 - Add Provides for the old name without %%_isa