Update to 1.0.5.

Modernize spec file.
Enable python3 package.
This commit is contained in:
Richard Shaw 2019-04-16 10:18:05 -05:00
parent c8380bc867
commit d0bbe7b5f4
3 changed files with 51 additions and 26 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
libiptcdata-1.0.4.tar.gz libiptcdata-1.0.4.tar.gz
/libiptcdata-1.0.5.tar.gz

View File

@ -1,18 +1,21 @@
Name: libiptcdata Name: libiptcdata
Version: 1.0.4 Version: 1.0.5
Release: 24%{?dist} Release: 1%{?dist}
Summary: IPTC tag library Summary: IPTC tag library
Group: Development/Libraries
License: LGPLv2+ License: LGPLv2+
URL: http://libiptcdata.sourceforge.net/ URL: https://github.com/ianw/%{name}
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source0: https://github.com/ianw/%{name}/releases/download/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake BuildRequires: autoconf
BuildRequires: gettext BuildRequires: automake
BuildRequires: gettext-devel BuildRequires: gcc
BuildRequires: libtool BuildRequires: gettext
BuildRequires: gtk-doc BuildRequires: gettext-devel
BuildRequires: libtool
BuildRequires: gtk-doc
BuildRequires: python3-devel
%description %description
libiptcdata is a library for parsing, editing, and saving IPTC data 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 libiptcdata also includes a command-line utility for modifying the
metadata. 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 %package devel
Summary: Headers and libraries for libiptcdata application development Summary: Headers and libraries for libiptcdata application development
Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name} = %{version}-%{release} Requires: pkgconfig
Requires: pkgconfig
%description devel %description devel
The libiptcdata-devel package contains the libraries and include files The libiptcdata-devel package contains the libraries and include files
that you can use to develop libiptcdata applications. that you can use to develop libiptcdata applications.
%prep %prep
%setup -q %autosetup
# fix compatibility with gtk-doc 1.26 # fix compatibility with gtk-doc 1.26
gtkdocize gtkdocize
autoreconf -fiv autoreconf -fiv
%build %build
%configure --enable-gtk-doc --disable-python --disable-static #configure --enable-gtk-doc --disable-python --disable-static
make %{?_smp_mflags} export PYTHON_VERSION=%python3_version
%configure --enable-gtk-doc --enable-python --disable-static
%make_build
%install %install
rm -rf $RPM_BUILD_ROOT %make_install
make DESTDIR=%{buildroot} INSTALL="%{__install} -c -p" install find %{buildroot} -name "*.la" -exec rm -f {} \;
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
%find_lang %{name} --all-name %find_lang %{name} --all-name
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO %doc AUTHORS ChangeLog NEWS README TODO
%license COPYING
%{_bindir}/* %{_bindir}/*
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%files -n python3-%{name}
%doc python/README
%doc python/examples/*
%{python3_sitearch}/*.so
%files devel %files devel
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
@ -64,6 +83,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
%changelog %changelog
* Tue Apr 16 2019 Richard Shaw <hobbes1069@gmail.com> - 1.0.5-1
- Update to 1.0.5.
- Modernize spec file.
- Enable python3 package.
* Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-24 * Fri Jan 04 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.4-24
- Remove the Python 2 subpackage (#1628188) - Remove the Python 2 subpackage (#1628188)

View File

@ -1 +1 @@
af886556ecb129b694f2d365d03d95a8 libiptcdata-1.0.4.tar.gz SHA512 (libiptcdata-1.0.5.tar.gz) = 64ef44b1e639890004f31d5d42844ba25ed558f0a118f1dad9bc3f4dcad2457e51b825a13df849659b0e15afc78f528f330b03be94cdf156bd95b62dc419494a