diff --git a/.gitignore b/.gitignore index 151a4ac..e283a6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ libiptcdata-1.0.4.tar.gz +/libiptcdata-1.0.5.tar.gz diff --git a/libiptcdata.spec b/libiptcdata.spec index 3e581ad..38bcb1d 100644 --- a/libiptcdata.spec +++ b/libiptcdata.spec @@ -1,18 +1,21 @@ Name: libiptcdata -Version: 1.0.4 -Release: 24%{?dist} +Version: 1.0.5 +Release: 1%{?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 -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 @@ -21,41 +24,57 @@ as captions, titles, locations, etc. in the headers of an image file. libiptcdata also includes a command-line utility for modifying the metadata. +%package -n python3-%{name} +Summary: Python bindings for libiptcdata +Requires: %{name}%{?_isa} = %{version}-%{release} +BuildRequires: python3-devel + +%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. + %package devel -Summary: Headers and libraries for libiptcdata application development -Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Requires: pkgconfig +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. + %prep -%setup -q +%autosetup # fix compatibility with gtk-doc 1.26 gtkdocize autoreconf -fiv + %build -%configure --enable-gtk-doc --disable-python --disable-static -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 +%make_install +find %{buildroot} -name "*.la" -exec rm -f {} \; %find_lang %{name} --all-name -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig %files -f %{name}.lang -%doc AUTHORS COPYING ChangeLog NEWS README TODO +%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 %{_libdir}/lib*.so %{_libdir}/pkgconfig/*.pc @@ -64,6 +83,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la %changelog +* 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) diff --git a/sources b/sources index 4ac8259..c360145 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -af886556ecb129b694f2d365d03d95a8 libiptcdata-1.0.4.tar.gz +SHA512 (libiptcdata-1.0.5.tar.gz) = 64ef44b1e639890004f31d5d42844ba25ed558f0a118f1dad9bc3f4dcad2457e51b825a13df849659b0e15afc78f528f330b03be94cdf156bd95b62dc419494a