2019-10-24 13:07:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package libnma
|
|
|
|
#
|
2022-01-21 15:48:22 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2019-10-24 13:07:09 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2019-12-09 10:10:20 +01:00
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%define sover 0
|
|
|
|
%define base_ver 1.8
|
|
|
|
|
|
|
|
Name: libnma
|
2022-03-25 14:20:19 +01:00
|
|
|
Version: 1.8.36
|
2019-10-24 13:07:09 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Shared library for NetworkManager-applet
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
URL: https://gitlab.gnome.org/GNOME/libnma
|
|
|
|
Source0: https://download.gnome.org/sources/%{name}/%{base_ver}/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(gck-1) >= 3.14
|
|
|
|
BuildRequires: pkgconfig(gcr-3) >= 3.14
|
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.38
|
|
|
|
BuildRequires: pkgconfig(gmodule-export-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.6
|
2022-01-21 15:48:22 +01:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12
|
|
|
|
BuildRequires: pkgconfig(gtk4) >= 4.0
|
2019-10-24 13:07:09 +02:00
|
|
|
BuildRequires: pkgconfig(iso-codes)
|
|
|
|
BuildRequires: pkgconfig(libnm) >= 1.7
|
|
|
|
BuildRequires: pkgconfig(mobile-broadband-provider-info)
|
2020-03-09 14:05:07 +01:00
|
|
|
BuildRequires: pkgconfig(vapigen)
|
2019-10-24 13:07:09 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Shared library for NetworkManager-applet.
|
|
|
|
|
|
|
|
%package -n %{name}%{sover}
|
|
|
|
Summary: Shared library for NetworkManager-applet
|
2019-10-30 14:29:51 +01:00
|
|
|
# Make lang package installable.
|
|
|
|
Provides: %{name}
|
2020-03-09 14:05:07 +01:00
|
|
|
# Since version 1.8.28
|
|
|
|
Obsoletes: nma-data < %{version}
|
2020-03-09 20:40:36 +01:00
|
|
|
Provides: nma-data = %{version}
|
|
|
|
Obsoletes: libnma-data < %{version}
|
|
|
|
Provides: libnma-data = %{version}
|
2020-06-04 13:47:30 +02:00
|
|
|
Requires: mobile-broadband-provider-info
|
2019-10-24 13:07:09 +02:00
|
|
|
|
|
|
|
%description -n %{name}%{sover}
|
|
|
|
Shared library for NetworkManager-applet.
|
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%package -n %{name}-gtk4-%{sover}
|
|
|
|
Summary: Shared library for NetworkManager-applet. Gtk4 version
|
|
|
|
Requires: mobile-broadband-provider-info
|
|
|
|
|
|
|
|
%description -n %{name}-gtk4-%{sover}
|
|
|
|
Shared library for NetworkManager-applet. Gtk4 version.
|
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%package -n typelib-1_0-NMA-1_0
|
|
|
|
Summary: Introspection bindings for %{name}
|
|
|
|
|
|
|
|
%description -n typelib-1_0-NMA-1_0
|
|
|
|
Introspection bindings for %{name}.
|
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%package -n typelib-1_0-NMA4-1_0
|
|
|
|
Summary: Introspection bindings for %{name}
|
|
|
|
|
|
|
|
%description -n typelib-1_0-NMA4-1_0
|
|
|
|
Introspection bindings for %{name}.
|
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development Files for %{name}
|
|
|
|
Requires: %{name}%{sover} = %{version}
|
|
|
|
Requires: typelib-1_0-NMA-1_0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development Files for %{name}.
|
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%package gtk4-devel
|
|
|
|
Summary: Development Files for %{name}-gtk4
|
|
|
|
# Depend on main devel package for the shared header files.
|
|
|
|
Requires: %{name}-devel = %{version}
|
|
|
|
Requires: %{name}-gtk4-%{sover} = %{version}
|
|
|
|
Requires: typelib-1_0-NMA4-1_0 = %{version}
|
|
|
|
|
|
|
|
%description gtk4-devel
|
|
|
|
Development Files for %{name}-gtk4.
|
|
|
|
|
|
|
|
%package docs
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
|
|
|
|
%description docs
|
|
|
|
Documentation files for %{name}.
|
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%lang_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
%meson \
|
2022-01-21 15:48:22 +01:00
|
|
|
-D libnma_gtk4=true \
|
2019-10-24 13:07:09 +02:00
|
|
|
%{nil}
|
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%ldconfig_scriptlets -n %{name}%{sover}
|
|
|
|
%ldconfig_scriptlets -n %{name}-gtk4-%{sover}
|
2019-10-24 13:07:09 +02:00
|
|
|
|
|
|
|
%files -n %{name}%{sover}
|
|
|
|
%license COPYING
|
|
|
|
%doc NEWS
|
|
|
|
%{_libdir}/%{name}.so.*
|
2020-03-09 14:05:07 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
|
2019-10-24 13:07:09 +02:00
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%files -n %{name}-gtk4-%{sover}
|
|
|
|
%{_libdir}/%{name}-gtk4.so.*
|
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%files -n typelib-1_0-NMA-1_0
|
|
|
|
%{_libdir}/girepository-1.0/NMA-1.0.typelib
|
|
|
|
|
2022-01-21 15:48:22 +01:00
|
|
|
%files -n typelib-1_0-NMA4-1_0
|
|
|
|
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
|
|
|
|
|
2019-10-24 13:07:09 +02:00
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}/*.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_datadir}/gir-1.0/NMA-1.0.gir
|
2022-01-21 15:48:22 +01:00
|
|
|
%{_datadir}/vala/vapi/%{name}.deps
|
|
|
|
%{_datadir}/vala/vapi/%{name}.vapi
|
|
|
|
|
|
|
|
%files gtk4-devel
|
|
|
|
%{_libdir}/%{name}-gtk4.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-gtk4.pc
|
|
|
|
%{_datadir}/gir-1.0/NMA4-1.0.gir
|
|
|
|
%{_datadir}/vala/vapi/%{name}-gtk4.deps
|
|
|
|
%{_datadir}/vala/vapi/%{name}-gtk4.vapi
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%doc %{_datadir}/gtk-doc/html/%{name}/
|
2019-10-24 13:07:09 +02:00
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|