Group :: System/Libraries
RPM: libgepub
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%def_disable snapshot
%define ver_major 0.7
%define api_ver %ver_major
%def_enable introspection
%def_disable gtk_doc
Name: libgepub
Version: %ver_major.1
Release: alt1
Summary: Simple library to read epub files using glib
Group: System/Libraries
License: LGPLv2+
Url: https://git.gnome.org/browse/libgepub
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
%define webkit_api_ver_major 4.1
BuildRequires(pre): rpm-macros-meson
BuildRequires: meson gcc-c++ gtk-doc
BuildRequires: pkgconfig(webkit2gtk-%webkit_api_ver_major) libarchive-devel libxml2-devel
%{?_enable_introspection:BuildRequires: gobject-introspection-devel gir(WebKit2) = %webkit_api_ver_major}
%description
%name is a GObject based library for handling and rendering epub
documents.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package gir
Summary: GObject introspection data for the %name library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the %name library
%package gir-devel
Summary: GObject introspection devel data for the %name library
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %version-%release
Requires: %name-devel = %version-%release
%description gir-devel
GObject introspection devel data for the %name library
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
BuildArch: noarch
Conflicts: %name < %version-%release
%description devel-doc
This package contains development documentation for %name
%prep
%setup
%build
%meson %{?_disable_introspection:-Dintrospection=false}
%meson_build
%install
%meson_install
%check
%__meson_test
%files
%_libdir/%name-%api_ver.so.*
%doc AUTHORS NEWS README TODO
%files devel
%_includedir/%name-%api_ver/
%_libdir/%name-%api_ver.so
%_pkgconfigdir/%name-%api_ver.pc
%if_enabled introspection
%files gir
%_typelibdir/Gepub-%api_ver.typelib
%files gir-devel
%_girdir/Gepub-%api_ver.gir
%endif
%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%name/
%endif
%changelog
…
Full changelog you can see here
%define ver_major 0.7
%define api_ver %ver_major
%def_enable introspection
%def_disable gtk_doc
Name: libgepub
Version: %ver_major.1
Release: alt1
Summary: Simple library to read epub files using glib
Group: System/Libraries
License: LGPLv2+
Url: https://git.gnome.org/browse/libgepub
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
%define webkit_api_ver_major 4.1
BuildRequires(pre): rpm-macros-meson
BuildRequires: meson gcc-c++ gtk-doc
BuildRequires: pkgconfig(webkit2gtk-%webkit_api_ver_major) libarchive-devel libxml2-devel
%{?_enable_introspection:BuildRequires: gobject-introspection-devel gir(WebKit2) = %webkit_api_ver_major}
%description
%name is a GObject based library for handling and rendering epub
documents.
%package devel
Summary: Development files for %name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%package gir
Summary: GObject introspection data for the %name library
Group: System/Libraries
Requires: %name = %version-%release
%description gir
GObject introspection data for the %name library
%package gir-devel
Summary: GObject introspection devel data for the %name library
Group: Development/Other
BuildArch: noarch
Requires: %name-gir = %version-%release
Requires: %name-devel = %version-%release
%description gir-devel
GObject introspection devel data for the %name library
%package devel-doc
Summary: Development documentation for %name
Group: Development/C
BuildArch: noarch
Conflicts: %name < %version-%release
%description devel-doc
This package contains development documentation for %name
%prep
%setup
%build
%meson %{?_disable_introspection:-Dintrospection=false}
%meson_build
%install
%meson_install
%check
%__meson_test
%files
%_libdir/%name-%api_ver.so.*
%doc AUTHORS NEWS README TODO
%files devel
%_includedir/%name-%api_ver/
%_libdir/%name-%api_ver.so
%_pkgconfigdir/%name-%api_ver.pc
%if_enabled introspection
%files gir
%_typelibdir/Gepub-%api_ver.typelib
%files gir-devel
%_girdir/Gepub-%api_ver.gir
%endif
%if_enabled gtk_doc
%files devel-doc
%_datadir/gtk-doc/html/%name/
%endif
%changelog
…
Full changelog you can see here