Compare commits
10 Commits
ac08e7e6e1
...
cb79018e5c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb79018e5c | ||
|
|
b52c1b354c | ||
|
|
18e71c551a | ||
|
|
a679201ecc | ||
|
|
410344eaaf | ||
|
|
91ad377be6 | ||
|
|
f112af2e1f | ||
|
|
666de63d46 | ||
|
|
fdbfbe299a | ||
|
|
e38c8d4280 |
File diff suppressed because it is too large
Load Diff
@ -1,56 +0,0 @@
|
||||
From 40b591aaa0fcbc2bf37f89909477d59a102a5fa4 Mon Sep 17 00:00:00 2001
|
||||
From: Adam Williamson <awilliam@redhat.com>
|
||||
Date: Fri, 18 Mar 2022 15:56:12 -0700
|
||||
Subject: [PATCH] meson: build separate UI sources for GTK3 and GTK4 libraries
|
||||
|
||||
We can't just do one or the other, each build of the library
|
||||
needs the correct respective UI resources.
|
||||
|
||||
Signed-off-by: Adam Williamson <awilliam@redhat.com>
|
||||
---
|
||||
src/meson.build | 2 +-
|
||||
src/ui/meson.build | 18 ++++++++++--------
|
||||
2 files changed, 11 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index 6e1a15e4..efe3fb03 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -103,7 +103,7 @@ libnma_dep = declare_dependency(
|
||||
if enable_libnma_gtk4
|
||||
libnma_gtk4 = shared_library(
|
||||
'nma-gtk4',
|
||||
- sources: gir_sources + ui_sources,
|
||||
+ sources: gir_sources + ui_sources4,
|
||||
version: libversion,
|
||||
include_directories: incs,
|
||||
dependencies: [ deps, gtk4_dep ],
|
||||
diff --git a/src/ui/meson.build b/src/ui/meson.build
|
||||
index 2f8eec99..60dbaeef 100644
|
||||
--- a/src/ui/meson.build
|
||||
+++ b/src/ui/meson.build
|
||||
@@ -1,11 +1,13 @@
|
||||
-if enable_libnma_gtk4
|
||||
- ui_dir = 'gtk4'
|
||||
-else
|
||||
- ui_dir = 'gtk3'
|
||||
-endif
|
||||
-
|
||||
ui_sources = gnome.compile_resources(
|
||||
'nma-resources',
|
||||
- join_paths(ui_dir, 'nma.gresource.xml'),
|
||||
- source_dir: ui_dir
|
||||
+ join_paths('gtk3', 'nma.gresource.xml'),
|
||||
+ source_dir: 'gtk3'
|
||||
)
|
||||
+
|
||||
+if enable_libnma_gtk4
|
||||
+ ui_sources4 = gnome.compile_resources(
|
||||
+ 'nma-resources4',
|
||||
+ join_paths('gtk4', 'nma.gresource.xml'),
|
||||
+ source_dir: 'gtk4'
|
||||
+ )
|
||||
+endif
|
||||
--
|
||||
2.35.1
|
||||
|
||||
BIN
libnma-1.10.6.tar.xz
Normal file
BIN
libnma-1.10.6.tar.xz
Normal file
Binary file not shown.
Binary file not shown.
41
libnma.spec
41
libnma.spec
@ -3,25 +3,18 @@
|
||||
%global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
|
||||
%global nm_version 1:1.8.0
|
||||
%global mbp_version 0.20090602
|
||||
%global old_libnma_version 1.8.27
|
||||
|
||||
%global rpm_version 1.8.34
|
||||
%global real_version 1.8.34
|
||||
%global release_version 2
|
||||
|
||||
%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')
|
||||
%global old_libnma_version 1.10.4
|
||||
|
||||
Name: libnma
|
||||
Summary: NetworkManager GUI library
|
||||
Version: %{rpm_version}
|
||||
Release: %{release_version}
|
||||
Version: 1.10.6
|
||||
Release: 1
|
||||
License: GPLv2+ and LGPLv2+
|
||||
URL: https://gitlab.gnome.org/GNOME/libnma/
|
||||
Source0: https://download.gnome.org/sources/libnma/%{real_version_major}/%{name}-%{real_version}.tar.xz
|
||||
Source0: https://download.gnome.org/sources/libnma/1.10/%{name}-%{version}.tar.xz
|
||||
|
||||
Patch1: 0001-nm-applet-no-notifications.patch
|
||||
Patch2: 0001-Ship-and-compile-both-GTK3-and-GTK4-UI-files.patch
|
||||
Patch3: 0001-meson-build-separate-UI-sources-for-GTK3-and-GTK4-li.patch
|
||||
Patch9000: remove-sensitive-info.patch
|
||||
|
||||
Requires: mobile-broadband-provider-info >= %{mbp_version}
|
||||
Conflicts: libnma < %{old_libnma_version}
|
||||
@ -37,7 +30,6 @@ BuildRequires: gtk4-devel >= 4.0
|
||||
This package contains the library used for integrating GUI tools with
|
||||
NetworkManager.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Header files for NetworkManager GUI library
|
||||
Requires: NetworkManager-libnm-devel >= %{nm_version}
|
||||
@ -55,14 +47,13 @@ This package contains header and pkg-config files to be used for integrating
|
||||
GUI tools with NetworkManager.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n "%{name}-%{real_version}"
|
||||
%autosetup -p1 -n "%{name}-%{version}"
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-Dgcr=true \
|
||||
-Dvapi=false \
|
||||
-Dlibnma_gtk4=true \
|
||||
-Dmobile_broadband_provider_info=false
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
@ -81,6 +72,7 @@ GUI tools with NetworkManager.
|
||||
%{_libdir}/girepository-1.0/NMA-1.0.typelib
|
||||
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.eap.gschema.xml
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
@ -94,13 +86,28 @@ GUI tools with NetworkManager.
|
||||
%{_datadir}/gtk-doc
|
||||
|
||||
%changelog
|
||||
* Tue Jul 11 2023 liyanan <thistleslyn@163.com> - 1.10.6-1
|
||||
- update to 1.10.6
|
||||
|
||||
* Mon Jun 12 2023 zhangpan <zhangpan103@h-partners.com> - 1.10.4-3
|
||||
- remove sensitive info
|
||||
|
||||
* Thu Mar 9 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 1.10.4-2
|
||||
- fix network configuration parameters invalid
|
||||
|
||||
* Mon Jan 2 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 1.10.4-1
|
||||
- Update to 1.10.4
|
||||
|
||||
* Mon Jun 13 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.8.38-1
|
||||
- Update to 1.8.38
|
||||
|
||||
* Fri Jun 17 liyanan <liyanan32@h-partners.com> - 1.8.34-2
|
||||
- Drop disable-static from meson command line
|
||||
|
||||
* Wed Apr 20 2022 dillon chen <dillon.chen@gmail.com> - 1.8.34-1
|
||||
- fix UI files in GTK4
|
||||
- fix UI files in GTK4
|
||||
- Enable gtk4 subpackage
|
||||
- Update to 1.8.34
|
||||
- Update to 1.8.34
|
||||
|
||||
* Thu Dec 30 2021 yanan <yanan@huawei.com> - 1.8.32-1
|
||||
- upgrade to libnma-1.8.32
|
||||
|
||||
4
libnma.yaml
Normal file
4
libnma.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: gitlab.gnome
|
||||
src_repo: libnma
|
||||
tag_prefix: ^
|
||||
separator: .
|
||||
24
remove-sensitive-info.patch
Normal file
24
remove-sensitive-info.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From d0fa74e1de2545e1678cdada73aad08ffcca099d Mon Sep 17 00:00:00 2001
|
||||
From: zhouwenpei <zhouwenpei1@h-partners.com>
|
||||
Date: Tue, 31 Jan 2023 22:52:08 +0800
|
||||
Subject: [PATCH] remove sensitive info
|
||||
|
||||
---
|
||||
src/nma-mobile-providers.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/nma-mobile-providers.c b/src/nma-mobile-providers.c
|
||||
index 95f352f..b1a67d0 100644
|
||||
--- a/src/nma-mobile-providers.c
|
||||
+++ b/src/nma-mobile-providers.c
|
||||
@@ -1044,7 +1044,6 @@ static void
|
||||
dump_generic (NMAMobileAccessMethod *method)
|
||||
{
|
||||
g_print (" username: %s\n", method->username ? method->username : "");
|
||||
- g_print (" password: %s\n", method->password ? method->password : "");
|
||||
|
||||
if (method->dns) {
|
||||
guint i;
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user