[packages/NetworkManager-applet] switch to meson; rel 2
atler
atler at pld-linux.org
Fri Jun 28 22:39:01 CEST 2019
commit bc5e5483c5d972fdb4673dcdbe7f1cf5467756e4
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jun 28 22:37:57 2019 +0200
switch to meson; rel 2
fixes translation domain name mismatch
NetworkManager-applet-gtkdoc.patch | 12 ++++++++++++
NetworkManager-applet.spec | 36 +++++++++++++-----------------------
2 files changed, 25 insertions(+), 23 deletions(-)
---
diff --git a/NetworkManager-applet.spec b/NetworkManager-applet.spec
index fb5a1fa..56e315c 100644
--- a/NetworkManager-applet.spec
+++ b/NetworkManager-applet.spec
@@ -7,19 +7,19 @@ Summary: Network Manager for GNOME
Summary(pl.UTF-8): Zarządca sieci dla GNOME
Name: NetworkManager-applet
Version: 1.8.22
-Release: 1
+Release: 2
License: GPL v2
Group: X11/Applications
Source0: http://ftp.gnome.org/pub/GNOME/sources/network-manager-applet/1.8/network-manager-applet-%{version}.tar.xz
# Source0-md5: e0373f4c0d0637716e6e385799a9080f
+Patch0: %{name}-gtkdoc.patch
URL: https://wiki.gnome.org/Projects/NetworkManager
BuildRequires: ModemManager-devel >= 1.0.0
BuildRequires: NetworkManager-devel >= %{nmversion}
-BuildRequires: autoconf >= 2.63
-BuildRequires: automake >= 1:1.11
BuildRequires: dbus-devel >= 1.2.6
BuildRequires: dbus-glib-devel >= 0.74
BuildRequires: gcr-devel >= 3.14
+BuildRequires: gcr-ui-devel >= 3.14
BuildRequires: gettext-tools >= 0.19.8
BuildRequires: glib2-devel >= 1:2.38
BuildRequires: gobject-introspection-devel >= 0.9.6
@@ -32,10 +32,11 @@ BuildRequires: jansson-devel >= 2.7
BuildRequires: libnotify-devel >= 0.7.0
BuildRequires: libsecret-devel >= 0.18
BuildRequires: libselinux-devel
-BuildRequires: libtool >= 2:2.2.6
+BuildRequires: meson >= 0.46.0
BuildRequires: mobile-broadband-provider-info-devel
+BuildRequires: ninja
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.592
+BuildRequires: rpmbuild(macros) >= 1.736
BuildRequires: tar >= 1:1.22
BuildRequires: udev-glib-devel >= 1:147
BuildRequires: xz
@@ -108,31 +109,20 @@ Dokumentacja API biblioteki NMA (NetworkManager Applet).
%prep
%setup -q -n network-manager-applet-%{version}
+%patch0 -p1
%build
-%{__gettextize}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- --disable-silent-rules \
- --disable-static \
- --enable-more-warnings=yes \
- %{?with_appindicator:--with-appindicator} \
- --with-libnm-gtk \
- --with-html-dir=%{_gtkdocdir}
-%{__make}
+%meson build \
+ -Dappindicator=%{?with_appindicator:yes}%{!?with_appindicator:no} \
+ -Dgtk_doc=true \
+ -Dlibnm_gtk=true
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/gnome-vpn-properties
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
-
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/{libnm-gtk,libnma}.la
+%ninja_install -C build
%find_lang %{name} --with-gnome --all-name
diff --git a/NetworkManager-applet-gtkdoc.patch b/NetworkManager-applet-gtkdoc.patch
new file mode 100644
index 0000000..4e0de4f
--- /dev/null
+++ b/NetworkManager-applet-gtkdoc.patch
@@ -0,0 +1,12 @@
+diff -urN network-manager-applet-1.8.22.orig/meson.build network-manager-applet-1.8.22/meson.build
+--- network-manager-applet-1.8.22.orig/meson.build 2019-06-28 22:36:03.509611322 +0200
++++ network-manager-applet-1.8.22/meson.build 2019-06-28 22:36:16.499610928 +0200
+@@ -477,7 +477,7 @@
+ configuration: ent_conf
+ )
+
+- doc_path = join_paths(nma_datadir, 'gtk-doc', 'html', mod_name)
++ doc_path = join_paths(nma_datadir, 'doc', 'gtk-doc', 'html', mod_name)
+
+ gnome.gtkdoc(
+ mod_name,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/NetworkManager-applet.git/commitdiff/bc5e5483c5d972fdb4673dcdbe7f1cf5467756e4
More information about the pld-cvs-commit
mailing list