Blame packages/libh/libhandy/libhandy.spec

e36774
#
e36774
# spec file for package libhandy
e36774
#
Bernhard M. Wiedemann 514c2a
# Copyright (c) 2023 SUSE LLC
e36774
#
e36774
# All modifications and additions to the file contributed by third parties
e36774
# remain the property of their copyright owners, unless otherwise agreed
e36774
# upon. The license for this file, and modifications and additions to the
e36774
# file, is the same license as for the pristine package itself (unless the
e36774
# license for the pristine package is not an Open Source License, in which
e36774
# case the license is the MIT License). An "Open Source License" is a
e36774
# license that conforms to the Open Source Definition (Version 1.9)
e36774
# published by the Open Source Initiative.
e36774
e36774
# Please submit bugfixes or comments via https://bugs.opensuse.org/
e36774
#
e36774
e36774
e36774
%define so_major 1
e36774
%define shlib %{name}-%{so_major}-0
e36774
%define typelib typelib-1_0-Handy-%{so_major}_0
e36774
%define with_glade 1
e36774
e36774
Name:           libhandy
Bernhard M. Wiedemann 514c2a
Version:        1.8.1
e36774
Release:        0
e36774
Summary:        A GTK+ library to develop UI for mobile devices
e36774
License:        LGPL-2.1-or-later
e36774
Group:          Development/Libraries/GNOME
e36774
URL:            https://gitlab.gnome.org/GNOME/libhandy
e194da
Source0:        https://download.gnome.org/sources/libhandy/1.8/%{name}-%{version}.tar.xz
e36774
e36774
BuildRequires:  meson >= 0.49.0
e36774
BuildRequires:  pkgconfig
e36774
BuildRequires:  vala
e36774
%if 0%{?with_glade}
e36774
BuildRequires:  pkgconfig(gladeui-2.0)
e36774
%endif
6fdb76
BuildRequires:  pkgconfig(gi-docgen) >= 2021.1
e36774
BuildRequires:  pkgconfig(gnome-desktop-3.0)
e36774
BuildRequires:  pkgconfig(gobject-introspection-1.0)
e36774
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.24.1
e36774
e36774
%description
e36774
libhandy is a library to help with developing UI for mobile devices
e36774
using GTK+/GNOME.
e36774
e36774
%package -n %{shlib}
e36774
Summary:        A GTK+ library to develop UI for mobile devices
e36774
Group:          System/Libraries
e36774
Provides:       %{name} = %{version}
e36774
e36774
%description -n %{shlib}
e36774
This package provides the shared library for libhandy, a library to
e36774
help with developing mobile UI using GTK+/GNOME.
e36774
e36774
%package devel
e36774
Summary:        Source and header files for %{name}
e36774
Group:          Development/Libraries/GNOME
e36774
Requires:       %{shlib} = %{version}
e36774
Requires:       %{typelib} = %{version}
e36774
e36774
%description devel
e36774
This package provides the source and header files for writing
e36774
software using %{name}, a library to help with developing mobile UI
e36774
using GTK+/GNOME.
e36774
e36774
%package -n %{typelib}
e36774
Summary:        Introspection bindings for libhandy
e36774
Group:          System/Libraries
e36774
e36774
%description -n %{typelib}
e36774
This package provides the GObject Introspection bindings for
e36774
%{name}, a library to help with developing mobile UI using
e36774
GTK+/GNOME.
e36774
e36774
%package -n glade-catalog-libhandy
e36774
Summary:        Glade catalog for libhandy
e36774
Group:          Development/Tools/GUI Builders
e36774
Requires:       glade
e36774
Supplements:    (glade and %{name}-devel)
e36774
e36774
%description -n glade-catalog-libhandy
e36774
libhandy is a library to help with developing UI for mobile devices
e36774
using GTK+/GNOME.
e36774
e36774
This package provides a catalog for libhandy, to allow the use
e36774
libhandy widgets in Glade.
e36774
e36774
%lang_package
e36774
e36774
%prep
e36774
%autosetup -p1
e36774
e36774
%build
e36774
%meson \
6fdb76
	-D profiling=false \
6fdb76
	-D introspection=enabled \
6fdb76
	-D vapi=true \
6fdb76
	-D gtk_doc=true \
6fdb76
	-D tests=false \
6fdb76
	-D examples=false \
6fdb76
	-D glade_catalog=%{?with_glade:enabled}%{?!with_glade:disabled} \
e36774
	%{nil}
e36774
%meson_build
e36774
e36774
%install
e36774
%meson_install
e36774
%find_lang %{name}
e36774
a0c9ec
%ldconfig_scriptlets -n %{shlib}
e36774
e36774
%files -n %{shlib}
e36774
%{_libdir}/libhandy-*.so.*
e36774
e36774
%files devel
e36774
%license COPYING
e36774
%doc AUTHORS README.md
e36774
%{_includedir}/libhandy-%{so_major}/
e36774
%{_libdir}/libhandy-*.so
e36774
%{_datadir}/gir-1.0/*.gir
e36774
%{_libdir}/pkgconfig/libhandy-%{so_major}.pc
e36774
%dir %{_datadir}/vala/vapi
e36774
%{_datadir}/vala/vapi/libhandy-*
6fdb76
%{_datadir}/doc/libhandy-%{so_major}/
e36774
e36774
%files -n %{typelib}
e36774
%{_libdir}/girepository-1.0/*.typelib
e36774
e36774
%if 0%{?with_glade}
e36774
%files -n glade-catalog-libhandy
e36774
%{_libdir}/glade/modules/*.so
e36774
%{_datadir}/glade/catalogs/*.xml
e36774
%endif
e36774
e36774
%files lang -f %{name}.lang
e36774
e36774
%changelog