Group :: Sistema/Bibliotecas
RPM: libiptcdata
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable python
%def_disable python3
%def_disable static
Name: libiptcdata
Version: 1.0.5
Release: alt1
Summary: IPTC tag library
License: LGPLv2+
Group: System/Libraries
URL: https://github.com/ianw/%name
Source: https://github.com/ianw/%name/releases/download/%name-%version.tar.gz
BuildRequires: gtk-doc
%{?_enable_python:BuildRequires: python-devel}
%{?_enable_python3:BuildRequires: python3-devel}
%description
libiptcdata is a library for parsing, editing, and saving IPTC data stored
inside images. IPTC is a standard for encoding metadata such as captions,
titles, locations, etc. in the headers of an image file. libiptcdata also
includes a command-line utility for modifying the metadata.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The libiptcdata-devel package contains the libraries and include files
that you can use to develop libiptcdata applications.
%package -n python-module-%name
Summary: Python bindings for libiptcdata
Group: Development/Python
Requires: %name = %version-%release
%description -n python-module-%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 -n python3-module-%name
Summary: Python bindings for libiptcdata
Group: Development/Python3
Requires: %name = %version-%release
%description -n python3-module-%name
The libiptcdata-python package contains a Python3 module that allows Python3
applications to use the libiptcdata API for reading and writing IPTC
metadata in images.
%package devel-static
Summary: Static library build of %name
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
The static build of libiptcdata.
%prep
%setup
%build
%autoreconf
%configure --disable-rpath %{subst_enable static}
%make_build
%install
%makeinstall_std
%find_lang %name
%find_lang --append --output=%name.lang iptc
%files -f %name.lang
%_bindir/*
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*
%_datadir/gtk-doc/html/libiptcdata
%if_enabled python
%files -n python-module-%name
%doc python/README python/examples
%python_sitelibdir/*.so
%exclude %python_sitelibdir/*.la
%endif
%if_enabled python3
%files -n python3-module-%name
%doc python/README python/examples
%python_sitelibdir/*.so
%exclude %python3_sitelibdir/*.la
%endif
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_disable python3
%def_disable static
Name: libiptcdata
Version: 1.0.5
Release: alt1
Summary: IPTC tag library
License: LGPLv2+
Group: System/Libraries
URL: https://github.com/ianw/%name
Source: https://github.com/ianw/%name/releases/download/%name-%version.tar.gz
BuildRequires: gtk-doc
%{?_enable_python:BuildRequires: python-devel}
%{?_enable_python3:BuildRequires: python3-devel}
%description
libiptcdata is a library for parsing, editing, and saving IPTC data stored
inside images. IPTC is a standard for encoding metadata such as captions,
titles, locations, etc. in the headers of an image file. libiptcdata also
includes a command-line utility for modifying the metadata.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The libiptcdata-devel package contains the libraries and include files
that you can use to develop libiptcdata applications.
%package -n python-module-%name
Summary: Python bindings for libiptcdata
Group: Development/Python
Requires: %name = %version-%release
%description -n python-module-%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 -n python3-module-%name
Summary: Python bindings for libiptcdata
Group: Development/Python3
Requires: %name = %version-%release
%description -n python3-module-%name
The libiptcdata-python package contains a Python3 module that allows Python3
applications to use the libiptcdata API for reading and writing IPTC
metadata in images.
%package devel-static
Summary: Static library build of %name
Group: Development/C
Requires: %name-devel = %version-%release
%description devel-static
The static build of libiptcdata.
%prep
%setup
%build
%autoreconf
%configure --disable-rpath %{subst_enable static}
%make_build
%install
%makeinstall_std
%find_lang %name
%find_lang --append --output=%name.lang iptc
%files -f %name.lang
%_bindir/*
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_includedir/*
%_libdir/pkgconfig/*
%_datadir/gtk-doc/html/libiptcdata
%if_enabled python
%files -n python-module-%name
%doc python/README python/examples
%python_sitelibdir/*.so
%exclude %python_sitelibdir/*.la
%endif
%if_enabled python3
%files -n python3-module-%name
%doc python/README python/examples
%python_sitelibdir/*.so
%exclude %python3_sitelibdir/*.la
%endif
%if_enabled static
%files devel-static
%_libdir/*.a
%endif
%changelog
…
Todas as alterações você pod ver aqui