commit c19541220cf60e34a724ff692d9705534f37bb08 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:45 2019 -0400 Package init diff --git a/libiptcdata-1.0.4.tar.gz b/libiptcdata-1.0.4.tar.gz new file mode 100644 index 0000000..51242b6 Binary files /dev/null and b/libiptcdata-1.0.4.tar.gz differ diff --git a/libiptcdata.spec b/libiptcdata.spec new file mode 100644 index 0000000..39fc1c0 --- /dev/null +++ b/libiptcdata.spec @@ -0,0 +1,79 @@ +Name: libiptcdata +Version: 1.0.4 +Release: 21 +Summary: A library for manipulating the IPTC + +License: LGPLv2+ +URL: http://libiptcdata.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRequires: libtool gettext gtk-doc + +%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 + +%description devel +The libraries and files used to develop applications are included in the devel package. + +%package -n python2-libiptcdata +%{?python_provide:%python_provide python2-libiptcdata} +Summary: Python bindings for libiptcdata +Requires: %{name} = %{version}-%{release} +Provides: %{name}-python = %{version}-%{release} +Obsoletes: %{name}-python < %{version}-%{release} +BuildRequires: python-devel + +%description -n python2-libiptcdata +This python2-libiptcdata package includes a Python module which can used for Python +applications reading and writing IPTC metadata in images. + +%prep +%autosetup -p1 + +%build +%configure --enable-python +%make_build + +%install +%make_install INSTALL="%{__install} -c -p" +%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 +%defattr(-,root,root) +%doc AUTHORS COPYING ChangeLog NEWS README TODO +%{_bindir}/* +%{_libdir}/lib*.so.* +%exclude %{_libdir}/%{name}.la +%exclude %{python_sitearch}/iptcdata.la + +%files devel +%defattr(-,root,root) +%{_datadir}/gtk-doc/html/libiptcdata +%{_libdir}/pkgconfig/*.pc +%{_libdir}/lib*.so +%{_includedir}/libiptcdata + +%files -n python2-libiptcdata +%defattr(-,root,root) +%doc python/README python/examples/* +%{python_sitearch}/*.so + +%changelog +* Wed Sep 11 2019 Yiru Wang - 1.0.4-21 +- Pakcage init