Группа :: Система/Библиотеки
Пакет: libgexiv2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _name gexiv2
%define ver_major 0.14
%define api_ver 0.10
%def_enable gtk_doc
%def_enable vala
%def_enable python3
%def_enable check
Name: lib%_name
Version: %ver_major.1
Release: alt1
Summary: GObject-based Exiv2 wrapper
Group: System/Libraries
License: GPL-2.0-or-later
Url: https://wiki.gnome.org/Projects/gexiv2
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
BuildRequires(pre): rpm-macros-meson rpm-build-python3
BuildRequires: meson gcc-c++ libexiv2-devel libgio-devel gobject-introspection-devel
%{?_enable_python3:BuildRequires: python3-module-pygobject3-devel}
%{?_enable_gtk_doc:BuildRequires: gtk-doc}
%{?_enable_vala:BuildRequires: vala-tools}
%description
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
%package devel
Group: Development/C
Requires: %name = %version-%release
Summary: GObject-based Exiv2 wrapper - development files
%description devel
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package provides headers and libraries needed to develop
applications using gexiv2 library.
%package devel-doc
Summary: Development documentation for gexiv2
Group: Development/Documentation
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package contains development documentation for gexiv2 library.
%package gir
Summary: GObject introspection data for the gexiv2 library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the gexiv2 library.
%package gir-devel
Summary: GObject introspection devel data for the gexiv2 library
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %version-%release
%description gir-devel
GObject introspection devel data for the gexiv2 library.
%package -n python3-module-%_name
Summary: Python3 bindings for at-spi
Group: Development/Python3
BuildArch: noarch
%description -n python3-module-%_name
This package provides Python3 bindings for the gexiv2 library.
%prep
%setup -n %_name-%version
%build
%meson \
-Dintrospection=true \
%{?_enable_vala:-Dvapi=true} \
%{?_enable_gtk_doc:-Dgtk_doc=true} \
%{?_disable_python3:-Dpython3=false}
%nil
%meson_build
%install
%meson_install
%check
%__meson_test
%files
%_libdir/%name.so.*
%doc AUTHORS README THANKS NEWS
%files devel
%_includedir/%_name/
%_libdir/%name.so
%_pkgconfigdir/%_name.pc
%{?_enable_vala:%_vapidir/%_name.*}
%files gir
%_typelibdir/GExiv2-%api_ver.typelib
%files gir-devel
%_girdir/GExiv2-%api_ver.gir
%{?_enable_python3:
%files -n python3-module-%_name
%python3_sitelibdir_noarch/gi/overrides/GExiv2.py*
%python3_sitelibdir_noarch/gi/overrides/__pycache__/GExiv2.cpython-*.pyc}
%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%_name/
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define ver_major 0.14
%define api_ver 0.10
%def_enable gtk_doc
%def_enable vala
%def_enable python3
%def_enable check
Name: lib%_name
Version: %ver_major.1
Release: alt1
Summary: GObject-based Exiv2 wrapper
Group: System/Libraries
License: GPL-2.0-or-later
Url: https://wiki.gnome.org/Projects/gexiv2
Source: ftp://ftp.gnome.org/pub/gnome/sources/%_name/%ver_major/%_name-%version.tar.xz
BuildRequires(pre): rpm-macros-meson rpm-build-python3
BuildRequires: meson gcc-c++ libexiv2-devel libgio-devel gobject-introspection-devel
%{?_enable_python3:BuildRequires: python3-module-pygobject3-devel}
%{?_enable_gtk_doc:BuildRequires: gtk-doc}
%{?_enable_vala:BuildRequires: vala-tools}
%description
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
%package devel
Group: Development/C
Requires: %name = %version-%release
Summary: GObject-based Exiv2 wrapper - development files
%description devel
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package provides headers and libraries needed to develop
applications using gexiv2 library.
%package devel-doc
Summary: Development documentation for gexiv2
Group: Development/Documentation
Conflicts: %name < %version-%release
BuildArch: noarch
%description devel-doc
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes the
basic features of Exiv2 available to GNOME applications.
This package contains development documentation for gexiv2 library.
%package gir
Summary: GObject introspection data for the gexiv2 library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the gexiv2 library.
%package gir-devel
Summary: GObject introspection devel data for the gexiv2 library
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %version-%release
%description gir-devel
GObject introspection devel data for the gexiv2 library.
%package -n python3-module-%_name
Summary: Python3 bindings for at-spi
Group: Development/Python3
BuildArch: noarch
%description -n python3-module-%_name
This package provides Python3 bindings for the gexiv2 library.
%prep
%setup -n %_name-%version
%build
%meson \
-Dintrospection=true \
%{?_enable_vala:-Dvapi=true} \
%{?_enable_gtk_doc:-Dgtk_doc=true} \
%{?_disable_python3:-Dpython3=false}
%nil
%meson_build
%install
%meson_install
%check
%__meson_test
%files
%_libdir/%name.so.*
%doc AUTHORS README THANKS NEWS
%files devel
%_includedir/%_name/
%_libdir/%name.so
%_pkgconfigdir/%_name.pc
%{?_enable_vala:%_vapidir/%_name.*}
%files gir
%_typelibdir/GExiv2-%api_ver.typelib
%files gir-devel
%_girdir/GExiv2-%api_ver.gir
%{?_enable_python3:
%files -n python3-module-%_name
%python3_sitelibdir_noarch/gi/overrides/GExiv2.py*
%python3_sitelibdir_noarch/gi/overrides/__pycache__/GExiv2.cpython-*.pyc}
%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%_name/
%endif
%changelog
…
Полный changelog можно просмотреть здесь