Package init
This commit is contained in:
commit
c19541220c
BIN
libiptcdata-1.0.4.tar.gz
Normal file
BIN
libiptcdata-1.0.4.tar.gz
Normal file
Binary file not shown.
79
libiptcdata.spec
Normal file
79
libiptcdata.spec
Normal file
@ -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 <wangyiru1@huawei.com> - 1.0.4-21
|
||||
- Pakcage init
|
||||
Loading…
x
Reference in New Issue
Block a user