update to 1.0.5

This commit is contained in:
h00465007 2020-02-27 18:43:03 +08:00
parent c19541220c
commit fc4ce3a8fb
3 changed files with 26 additions and 28 deletions

Binary file not shown.

BIN
libiptcdata-1.0.5.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,14 @@
Name: libiptcdata Name: libiptcdata
Version: 1.0.4 Version: 1.0.5
Release: 21 Release: 1
Summary: A library for manipulating the IPTC Summary: A library for manipulating the IPTC
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: libtool gettext gtk-doc
BuildRequires: autoconf automake gcc gettext gettext-devel
BuildRequires: libtool gtk-doc python3-devel
%description %description
Libiptcdata is written in C for operating the IPEC metadata which is stored Libiptcdata is written in C for operating the IPEC metadata which is stored
@ -23,44 +25,37 @@ Requires: pkgconfig
%description devel %description devel
The libraries and files used to develop applications are included in the devel package. The libraries and files used to develop applications are included in the devel package.
%package -n python2-libiptcdata %package -n python3-%{name}
%{?python_provide:%python_provide python2-libiptcdata}
Summary: Python bindings for libiptcdata Summary: Python bindings for libiptcdata
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release} BuildRequires: python3-devel
Obsoletes: %{name}-python < %{version}-%{release}
BuildRequires: python-devel
%description -n python2-libiptcdata %description -n python3-%{name}
This python2-libiptcdata package includes a Python module which can used for Python This python3-libiptcdata package includes a Python module which can used for Python
applications reading and writing IPTC metadata in images. applications reading and writing IPTC metadata in images.
%prep %prep
%autosetup -p1 %autosetup -p1
# fix compatibility with gtk-doc 1.26
gtkdocize
autoreconf -fiv
%build %build
%configure --enable-python export PYTHON_VERSION=%python3_version
%configure --enable-gtk-doc --enable-python
%make_build %make_build
%install %install
%make_install INSTALL="%{__install} -c -p" %make_install
%delete_la_and_a
%find_lang %{name} --all-name %find_lang %{name} --all-name
%clean
rm -rf $RPM_BUILD_ROOT
make clean
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO %doc AUTHORS ChangeLog NEWS README TODO
%license COPYING
%{_bindir}/* %{_bindir}/*
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%exclude %{_libdir}/%{name}.la
%exclude %{python_sitearch}/iptcdata.la
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -69,11 +64,14 @@ make clean
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_includedir}/libiptcdata %{_includedir}/libiptcdata
%files -n python2-libiptcdata %files -n python3-%{name}
%defattr(-,root,root) %defattr(-,root,root)
%doc python/README python/examples/* %doc python/README python/examples/*
%{python_sitearch}/*.so %{python3_sitearch}/*.so
%changelog %changelog
* Thu Feb 27 2020 hexiujun <hexiujun1@huawei.com> - 1.0.5-1
- Update to 1.0.5
* Wed Sep 11 2019 Yiru Wang <wangyiru1@huawei.com> - 1.0.4-21 * Wed Sep 11 2019 Yiru Wang <wangyiru1@huawei.com> - 1.0.4-21
- Pakcage init - Pakcage init