libiptcdata/libiptcdata.spec

87 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:56:45 -04:00
Name: libiptcdata
2020-02-27 18:43:03 +08:00
Version: 1.0.5
Release: 3
2019-09-30 10:56:45 -04:00
Summary: A library for manipulating the IPTC
License: LGPLv2+
2020-02-27 18:43:03 +08:00
URL: https://github.com/ianw/%{name}
Source0: https://github.com/ianw/%{name}/releases/download/release_1_0_5/%{name}-%{version}.tar.gz
2020-02-27 18:43:03 +08:00
BuildRequires: autoconf automake gcc gettext gettext-devel
BuildRequires: libtool gtk-doc python3-devel
2019-09-30 10:56:45 -04:00
%description
Libiptcdata is written in C for operating the IPEC metadata which is stored
within multimedia files. Those metadata is usually uesd by photo applications,
which is include keywords and captions. This library provides routines include
parsing, modifying, viewing, and saving the metadata. This package also contain
a iptc command-line utility for editing data in JPEG files and Python bindings.
%package devel
Summary: This package contains libraries and headers
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
2020-02-27 18:43:03 +08:00
%description devel
2019-09-30 10:56:45 -04:00
The libraries and files used to develop applications are included in the devel package.
2020-02-27 18:43:03 +08:00
%package -n python3-%{name}
2019-09-30 10:56:45 -04:00
Summary: Python bindings for libiptcdata
Requires: %{name} = %{version}-%{release}
2020-02-27 18:43:03 +08:00
BuildRequires: python3-devel
2019-09-30 10:56:45 -04:00
2020-02-27 18:43:03 +08:00
%description -n python3-%{name}
This python3-libiptcdata package includes a Python module which can used for Python
2019-09-30 10:56:45 -04:00
applications reading and writing IPTC metadata in images.
%prep
%autosetup -p1
2020-02-27 18:43:03 +08:00
# fix compatibility with gtk-doc 1.26
gtkdocize
autoreconf -fiv
2019-09-30 10:56:45 -04:00
%build
2020-02-27 18:43:03 +08:00
export PYTHON_VERSION=%python3_version
%configure --enable-gtk-doc --enable-python
2019-09-30 10:56:45 -04:00
%make_build
%install
2020-02-27 18:43:03 +08:00
%make_install
%delete_la_and_a
2019-09-30 10:56:45 -04:00
%find_lang %{name} --all-name
%files -f %{name}.lang
%defattr(-,root,root)
2020-02-27 18:43:03 +08:00
%doc AUTHORS ChangeLog NEWS README TODO
%license COPYING
2019-09-30 10:56:45 -04:00
%{_bindir}/*
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_datadir}/gtk-doc/html/libiptcdata
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so
%{_includedir}/libiptcdata
2020-02-27 18:43:03 +08:00
%files -n python3-%{name}
2019-09-30 10:56:45 -04:00
%defattr(-,root,root)
%doc python/README python/examples/*
2020-02-27 18:43:03 +08:00
%{python3_sitearch}/*.so
2019-09-30 10:56:45 -04:00
%changelog
* Thu Nov 10 2022 yaoxin <yaoxin30@h-partners.com> - 1.0.5-3
- Change Source
2020-09-27 17:37:33 +08:00
* Sun Sep 27 2020 hanhui <hanhui15@huawei.com> - 1.0.5-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source url
2020-02-27 18:43:03 +08:00
* Thu Feb 27 2020 hexiujun <hexiujun1@huawei.com> - 1.0.5-1
- Update to 1.0.5
2019-09-30 10:56:45 -04:00
* Wed Sep 11 2019 Yiru Wang <wangyiru1@huawei.com> - 1.0.4-21
- Pakcage init