[12446] | 1 | %bcond_with libnma_gtk4 |
---|
| 2 | |
---|
| 3 | %global gtk3_version %(pkg-config --modversion gtk+-3.0 2>/dev/null || echo bad) |
---|
| 4 | %global gtk4_version %(pkg-config --modversion gtk4 2>/dev/null || echo bad) |
---|
| 5 | %global glib2_version %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad) |
---|
| 6 | %global nm_version 1.10.0 |
---|
| 7 | %global mbp_version 0.20190618 |
---|
| 8 | %global old_libnma_version 1.8.27 |
---|
| 9 | |
---|
| 10 | Name: libnma |
---|
| 11 | Summary: NetworkManager GUI library |
---|
| 12 | Version: 1.8.30 |
---|
| 13 | Release: 2%{?_dist_release} |
---|
| 14 | Vendor: Project Vine |
---|
| 15 | Distribution: Vine Linux |
---|
| 16 | |
---|
| 17 | # The entire source code is GPLv2+ except some files in shared/ which are LGPLv2+ |
---|
| 18 | License: GPLv2+ and LGPLv2+ |
---|
| 19 | URL: https://gitlab.gnome.org/GNOME/libnma/ |
---|
| 20 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
| 21 | Source0: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
| 22 | |
---|
| 23 | Patch1: 0001-nm-applet-no-notifications.patch |
---|
| 24 | |
---|
| 25 | Requires: mobile-broadband-provider-info >= %{mbp_version} |
---|
| 26 | |
---|
| 27 | Conflicts: libnma < %{old_libnma_version} |
---|
| 28 | |
---|
| 29 | BuildRequires: gcc |
---|
| 30 | BuildRequires: NetworkManager-libnm-devel >= %{nm_version} |
---|
| 31 | BuildRequires: ModemManager-glib-devel >= 1.0 |
---|
| 32 | BuildRequires: glib2-devel >= 2.32 |
---|
| 33 | BuildRequires: gtk3-devel >= 3.10 |
---|
| 34 | %if %{with libnma_gtk4} |
---|
| 35 | BuildRequires: gtk4-devel >= 3.96 |
---|
| 36 | %endif |
---|
| 37 | BuildRequires: gobject-introspection-devel >= 0.10.3 |
---|
| 38 | BuildRequires: gettext-devel |
---|
| 39 | BuildRequires: pkgconfig |
---|
| 40 | BuildRequires: meson |
---|
| 41 | BuildRequires: gtk-doc |
---|
| 42 | BuildRequires: iso-codes |
---|
| 43 | BuildRequires: gcr-devel |
---|
| 44 | BuildRequires: mobile-broadband-provider-info-devel >= %{mbp_version} |
---|
| 45 | |
---|
| 46 | %description |
---|
| 47 | This package contains the library used for integrating GUI tools with |
---|
| 48 | NetworkManager. |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | %package devel |
---|
| 52 | Summary: Header files for NetworkManager GUI library |
---|
| 53 | Requires: NetworkManager-libnm-devel >= %{nm_version} |
---|
| 54 | Obsoletes: NetworkManager-gtk-devel < 1.8.22 |
---|
| 55 | Requires: libnma%{?_isa} = %{version}-%{release} |
---|
| 56 | Requires: gtk3-devel%{?_isa} |
---|
| 57 | Requires: pkgconfig |
---|
| 58 | Conflicts: libnma < %{old_libnma_version} |
---|
| 59 | |
---|
| 60 | %description devel |
---|
| 61 | This package contains header and pkg-config files to be used for integrating |
---|
| 62 | GUI tools with NetworkManager. |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | %if %{with libnma_gtk4} |
---|
| 66 | %package gtk4 |
---|
| 67 | Summary: Experimental GTK 4 version of NetworkManager GUI library |
---|
| 68 | Requires: gtk4%{?_isa} >= %{gtk4_version} |
---|
| 69 | Requires: mobile-broadband-provider-info >= %{mbp_version} |
---|
| 70 | Conflicts: libnma < %{old_libnma_version} |
---|
| 71 | |
---|
| 72 | %description gtk4 |
---|
| 73 | This package contains the experimental GTK4 version of library used for |
---|
| 74 | integrating GUI tools with NetworkManager. |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %package gtk4-devel |
---|
| 78 | Summary: Header files for experimental GTK4 version of NetworkManager GUI library |
---|
| 79 | Requires: NetworkManager-libnm-devel >= %{nm_version} |
---|
| 80 | Requires: libnma-gtk4%{?_isa} = %{version}-%{release} |
---|
| 81 | Requires: gtk4-devel%{?_isa} |
---|
| 82 | Requires: pkgconfig |
---|
| 83 | Conflicts: libnma < %{old_libnma_version} |
---|
| 84 | |
---|
| 85 | %description gtk4-devel |
---|
| 86 | This package contains the experimental GTK4 version of header and pkg-config |
---|
| 87 | files to be used for integrating GUI tools with NetworkManager. |
---|
| 88 | %endif |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %prep |
---|
| 92 | %autosetup -p1 -n "%{name}-%{version}" |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %build |
---|
| 96 | %meson \ |
---|
| 97 | -Dgcr=true \ |
---|
| 98 | -Ddisable-static=true \ |
---|
| 99 | -Dvapi=false \ |
---|
| 100 | %if %{with libnma_gtk4} |
---|
| 101 | -Dlibnma_gtk4=true |
---|
| 102 | %else |
---|
| 103 | -Dlibnma_gtk4=false |
---|
| 104 | %endif |
---|
| 105 | %meson_build |
---|
| 106 | |
---|
| 107 | |
---|
| 108 | %install |
---|
| 109 | %meson_install |
---|
| 110 | %find_lang %{name} |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | %check |
---|
| 114 | %meson_test |
---|
| 115 | |
---|
| 116 | |
---|
| 117 | %files -f %{name}.lang |
---|
| 118 | %{_libdir}/libnma.so.* |
---|
| 119 | %{_libdir}/girepository-1.0/NMA-1.0.typelib |
---|
| 120 | %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml |
---|
| 121 | %doc NEWS CONTRIBUTING |
---|
| 122 | %license COPYING |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | %files devel |
---|
| 126 | %{_includedir}/libnma |
---|
| 127 | %{_libdir}/pkgconfig/libnma.pc |
---|
| 128 | %{_libdir}/libnma.so |
---|
| 129 | %{_datadir}/gir-1.0/NMA-1.0.gir |
---|
| 130 | %{_datadir}/gtk-doc |
---|
| 131 | |
---|
| 132 | |
---|
| 133 | %if %{with libnma_gtk4} |
---|
| 134 | %files gtk4 |
---|
| 135 | %{_libdir}/libnma-gtk4.so.* |
---|
| 136 | %{_libdir}/girepository-1.0/NMA4-1.0.typelib |
---|
| 137 | %license COPYING |
---|
| 138 | |
---|
| 139 | |
---|
| 140 | %files gtk4-devel |
---|
| 141 | %{_includedir}/libnma |
---|
| 142 | %{_libdir}/pkgconfig/libnma-gtk4.pc |
---|
| 143 | %{_libdir}/libnma-gtk4.so |
---|
| 144 | %{_datadir}/gir-1.0/NMA4-1.0.gir |
---|
| 145 | %endif |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %changelog |
---|
| 149 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.8.30-2 |
---|
| 150 | - initial build for Vine Linux. |
---|
| 151 | |
---|
| 152 | * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.30-1.2 |
---|
| 153 | - Second attempt - Rebuilt for |
---|
| 154 | https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
---|
| 155 | |
---|
| 156 | * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.30-1.1 |
---|
| 157 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
---|
| 158 | |
---|
| 159 | * Thu Jul 9 2020 Jérôme Parmentier <jerome@prmntr.me> - 1.8.30-1 |
---|
| 160 | - Update to 1.8.30 release |
---|
| 161 | |
---|
| 162 | * Fri Mar 6 2020 Thomas Haller <thaller@redhat.com> - 1.8.28-1 |
---|
| 163 | - Update to 1.8.28 release |
---|
| 164 | - move org.gnome.nm-applet.gschema.xml from network-manager-applet to here. |
---|
| 165 | - introduce wireless security dialogs |
---|
| 166 | |
---|
| 167 | * Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.26-4 |
---|
| 168 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
---|
| 169 | |
---|
| 170 | * Thu Nov 14 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-3 |
---|
| 171 | - Clarify licensing |
---|
| 172 | - Add a missing mobile-broadband-provider-info provide |
---|
| 173 | |
---|
| 174 | * Fri Nov 08 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-2 |
---|
| 175 | - Fixes suggested in review by Matthew Krupcale (#1763285): |
---|
| 176 | - Add gcc BR |
---|
| 177 | - Fixed the libnma-gtk4 conditional |
---|
| 178 | - Made dependencies arch-specific where relevant |
---|
| 179 | - Dropped obsolete macros |
---|
| 180 | - Install license file with libnma-gtk4 |
---|
| 181 | |
---|
| 182 | * Fri Oct 18 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-1 |
---|
| 183 | - Initial package split from nm-connection-editor |
---|