|
|
b4bb49 |
%global gtk3_version %(pkg-config --modversion gtk+-3.0 2>/dev/null || echo bad)
|
|
|
b4bb49 |
%global gtk4_version %(pkg-config --modversion gtk4 2>/dev/null || echo bad)
|
|
|
b4bb49 |
%global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
|
|
|
b4bb49 |
%global nm_version 1:1.8.0
|
|
|
b4bb49 |
%global mbp_version 0.20090602
|
|
|
b4bb49 |
%global old_libnma_version 1.8.27
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%global rpm_version 1.8.30
|
|
|
b4bb49 |
%global real_version 1.8.30
|
|
|
b4bb49 |
%global release_version 1
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%bcond_with libnma_gtk4
|
|
|
b4bb49 |
|
|
|
b4bb49 |
Name: libnma
|
|
|
b4bb49 |
Summary: NetworkManager GUI library
|
|
|
b4bb49 |
Version: %{rpm_version}
|
|
|
b4bb49 |
Release: %{release_version}%{?dist}
|
|
|
b4bb49 |
# The entire source code is GPLv2+ except some files in shared/ which are LGPLv2+
|
|
|
b4bb49 |
License: GPLv2+ and LGPLv2+
|
|
|
b4bb49 |
URL: https://gitlab.gnome.org/GNOME/libnma/
|
|
|
b4bb49 |
Source0: https://download.gnome.org/sources/libnma/%{real_version_major}/%{name}-%{real_version}.tar.xz
|
|
|
b4bb49 |
|
|
|
b4bb49 |
Patch1: 0001-nm-applet-no-notifications.patch
|
|
|
b4bb49 |
|
|
|
b4bb49 |
Requires: mobile-broadband-provider-info >= %{mbp_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
Conflicts: libnma < %{old_libnma_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
BuildRequires: gcc
|
|
|
b4bb49 |
BuildRequires: NetworkManager-libnm-devel >= %{nm_version}
|
|
|
b4bb49 |
BuildRequires: ModemManager-glib-devel >= 1.0
|
|
|
b4bb49 |
BuildRequires: glib2-devel >= 2.32
|
|
|
b4bb49 |
BuildRequires: gtk3-devel >= 3.10
|
|
|
b4bb49 |
%if %{with libnma_gtk4}
|
|
|
b4bb49 |
BuildRequires: gtk4-devel >= 3.96
|
|
|
b4bb49 |
%endif
|
|
|
b4bb49 |
BuildRequires: gobject-introspection-devel >= 0.10.3
|
|
|
b4bb49 |
BuildRequires: gettext-devel
|
|
|
b4bb49 |
BuildRequires: pkgconfig
|
|
|
b4bb49 |
BuildRequires: meson
|
|
|
b4bb49 |
BuildRequires: gtk-doc
|
|
|
b4bb49 |
BuildRequires: iso-codes-devel
|
|
|
b4bb49 |
BuildRequires: gcr-devel
|
|
|
b4bb49 |
BuildRequires: mobile-broadband-provider-info-devel >= %{mbp_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%description
|
|
|
b4bb49 |
This package contains the library used for integrating GUI tools with
|
|
|
b4bb49 |
NetworkManager.
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%package devel
|
|
|
b4bb49 |
Summary: Header files for NetworkManager GUI library
|
|
|
b4bb49 |
Requires: NetworkManager-libnm-devel >= %{nm_version}
|
|
|
b4bb49 |
Obsoletes: NetworkManager-gtk-devel < 1:0.9.7
|
|
|
b4bb49 |
Requires: libnma%{?_isa} = %{version}-%{release}
|
|
|
b4bb49 |
Requires: gtk3-devel%{?_isa}
|
|
|
b4bb49 |
Requires: pkgconfig
|
|
|
b4bb49 |
Conflicts: libnma < %{old_libnma_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%description devel
|
|
|
b4bb49 |
This package contains header and pkg-config files to be used for integrating
|
|
|
b4bb49 |
GUI tools with NetworkManager.
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%package gtk4
|
|
|
b4bb49 |
Summary: Experimental GTK 4 version of NetworkManager GUI library
|
|
|
b4bb49 |
Requires: gtk4%{?_isa} >= %{gtk4_version}
|
|
|
b4bb49 |
Requires: mobile-broadband-provider-info >= %{mbp_version}
|
|
|
b4bb49 |
Conflicts: libnma < %{old_libnma_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%description gtk4
|
|
|
b4bb49 |
This package contains the experimental GTK4 version of library used for
|
|
|
b4bb49 |
integrating GUI tools with NetworkManager.
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%package gtk4-devel
|
|
|
b4bb49 |
Summary: Header files for experimental GTK4 version of NetworkManager GUI library
|
|
|
b4bb49 |
Requires: NetworkManager-libnm-devel >= %{nm_version}
|
|
|
b4bb49 |
Requires: libnma-gtk4%{?_isa} = %{version}-%{release}
|
|
|
b4bb49 |
Requires: gtk4-devel%{?_isa}
|
|
|
b4bb49 |
Requires: pkgconfig
|
|
|
b4bb49 |
Conflicts: libnma < %{old_libnma_version}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%description gtk4-devel
|
|
|
b4bb49 |
This package contains the experimental GTK4 version of header and pkg-config
|
|
|
b4bb49 |
files to be used for integrating GUI tools with NetworkManager.
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%prep
|
|
|
b4bb49 |
%autosetup -p1 -n "%{name}-%{real_version}"
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%build
|
|
|
b4bb49 |
%meson \
|
|
|
b4bb49 |
-Dgcr=true \
|
|
|
b4bb49 |
-Ddisable-static=true \
|
|
|
b4bb49 |
-Dvapi=false \
|
|
|
b4bb49 |
%if %{with libnma_gtk4}
|
|
|
b4bb49 |
-Dlibnma_gtk4=true
|
|
|
b4bb49 |
%else
|
|
|
b4bb49 |
-Dlibnma_gtk4=false
|
|
|
b4bb49 |
%endif
|
|
|
b4bb49 |
%meson_build
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%install
|
|
|
b4bb49 |
%meson_install
|
|
|
b4bb49 |
%find_lang %{name}
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%check
|
|
|
b4bb49 |
%meson_test
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%files -f %{name}.lang
|
|
|
b4bb49 |
%{_libdir}/libnma.so.*
|
|
|
b4bb49 |
%{_libdir}/girepository-1.0/NMA-1.0.typelib
|
|
|
b4bb49 |
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
|
|
|
b4bb49 |
%doc NEWS CONTRIBUTING
|
|
|
b4bb49 |
%license COPYING
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%files devel
|
|
|
b4bb49 |
%{_includedir}/libnma
|
|
|
b4bb49 |
%{_libdir}/pkgconfig/libnma.pc
|
|
|
b4bb49 |
%{_libdir}/libnma.so
|
|
|
b4bb49 |
%{_datadir}/gir-1.0/NMA-1.0.gir
|
|
|
b4bb49 |
%{_datadir}/gtk-doc
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%if %{with libnma_gtk4}
|
|
|
b4bb49 |
%files gtk4
|
|
|
b4bb49 |
%{_libdir}/libnma-gtk4.so.*
|
|
|
b4bb49 |
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
|
|
|
b4bb49 |
%license COPYING
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%files gtk4-devel
|
|
|
b4bb49 |
%{_includedir}/libnma
|
|
|
b4bb49 |
%{_libdir}/pkgconfig/libnma-gtk4.pc
|
|
|
b4bb49 |
%{_libdir}/libnma-gtk4.so
|
|
|
b4bb49 |
%{_datadir}/gir-1.0/NMA4-1.0.gir
|
|
|
b4bb49 |
%endif
|
|
|
b4bb49 |
|
|
|
b4bb49 |
|
|
|
b4bb49 |
%changelog
|
|
|
b4bb49 |
* Tue Jun 23 2020 Beniamino Galvani <bgalvani@redhat.com> - 1.8.30-1
|
|
|
b4bb49 |
- Update to 1.8.30 release
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Tue May 26 2020 Beniamino Galvani <bgalvani@redhat.com> - 1.8.28-2
|
|
|
b4bb49 |
- Rebuilt after adding gating
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Fri Mar 6 2020 Thomas Haller <thaller@redhat.com> - 1.8.28-1
|
|
|
b4bb49 |
- Update to 1.8.28 release
|
|
|
b4bb49 |
- move org.gnome.nm-applet.gschema.xml from network-manager-applet to here.
|
|
|
b4bb49 |
- introduce wireless security dialogs
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.26-4
|
|
|
b4bb49 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Thu Nov 14 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-3
|
|
|
b4bb49 |
- Clarify licensing
|
|
|
b4bb49 |
- Add a missing mobile-broadband-provider-info provide
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Fri Nov 08 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-2
|
|
|
b4bb49 |
- Fixes suggested in review by Matthew Krupcale (#1763285):
|
|
|
b4bb49 |
- Add gcc BR
|
|
|
b4bb49 |
- Fixed the libnma-gtk4 conditional
|
|
|
b4bb49 |
- Made dependencies arch-specific where relevant
|
|
|
b4bb49 |
- Dropped obsolete macros
|
|
|
b4bb49 |
- Install license file with libnma-gtk4
|
|
|
b4bb49 |
|
|
|
b4bb49 |
* Fri Oct 18 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-1
|
|
|
b4bb49 |
- Initial package split from nm-connection-editor
|