Blame SPECS/libnma.spec

37c054
%global gtk3_version          %(pkg-config --modversion gtk+-3.0 2>/dev/null || echo bad)
37c054
%global gtk4_version          %(pkg-config --modversion gtk4 2>/dev/null || echo bad)
37c054
%global glib2_version         %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
37c054
%global nm_version            1:1.8.0
37c054
%global mbp_version           0.20090602
37c054
%global old_libnma_version    1.8.27
37c054
0e0717
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 10
0e0717
%bcond_without libnma_gtk4
0e0717
%else
37c054
%bcond_with libnma_gtk4
0e0717
%endif
37c054
37c054
Name:           libnma
37c054
Summary:        NetworkManager GUI library
0e0717
Version:        1.8.38
0e0717
Release:        1%{?dist}
37c054
# The entire source code is GPLv2+ except some files in shared/ which are LGPLv2+
37c054
License:        GPLv2+ and LGPLv2+
37c054
URL:            https://gitlab.gnome.org/GNOME/libnma/
0e0717
Source0:        https://download.gnome.org/sources/libnma/1.8/%{name}-%{version}.tar.xz
37c054
37c054
Patch1:         0001-nm-applet-no-notifications.patch
37c054
37c054
Requires:       mobile-broadband-provider-info >= %{mbp_version}
37c054
37c054
Conflicts:      libnma < %{old_libnma_version}
37c054
37c054
BuildRequires:  gcc
37c054
BuildRequires:  NetworkManager-libnm-devel >= %{nm_version}
37c054
BuildRequires:  ModemManager-glib-devel >= 1.0
0e0717
BuildRequires:  glib2-devel >= 2.38
0e0717
BuildRequires:  gtk3-devel >= 3.12
37c054
%if %{with libnma_gtk4}
0e0717
BuildRequires:  gtk4-devel >= 4.0
37c054
%endif
37c054
BuildRequires:  gobject-introspection-devel >= 0.10.3
37c054
BuildRequires:  gettext-devel
37c054
BuildRequires:  pkgconfig
37c054
BuildRequires:  meson
37c054
BuildRequires:  gtk-doc
37c054
BuildRequires:  iso-codes-devel
37c054
BuildRequires:  gcr-devel
37c054
BuildRequires:  mobile-broadband-provider-info-devel >= %{mbp_version}
37c054
37c054
%description
37c054
This package contains the library used for integrating GUI tools with
37c054
NetworkManager.
37c054
37c054
37c054
%package devel
37c054
Summary:        Header files for NetworkManager GUI library
37c054
Requires:       NetworkManager-libnm-devel >= %{nm_version}
37c054
Obsoletes:      NetworkManager-gtk-devel < 1:0.9.7
37c054
Requires:       libnma%{?_isa} = %{version}-%{release}
37c054
Requires:       gtk3-devel%{?_isa}
37c054
Requires:       pkgconfig
37c054
Conflicts:      libnma < %{old_libnma_version}
37c054
37c054
%description devel
37c054
This package contains header and pkg-config files to be used for integrating
37c054
GUI tools with NetworkManager.
37c054
37c054
37c054
%package gtk4
37c054
Summary:        Experimental GTK 4 version of NetworkManager GUI library
37c054
Requires:       gtk4%{?_isa} >= %{gtk4_version}
37c054
Requires:       mobile-broadband-provider-info >= %{mbp_version}
37c054
Conflicts:      libnma < %{old_libnma_version}
37c054
37c054
%description gtk4
37c054
This package contains the experimental GTK4 version of library used for
37c054
integrating GUI tools with NetworkManager.
37c054
37c054
37c054
%package gtk4-devel
37c054
Summary:        Header files for experimental GTK4 version of NetworkManager GUI library
37c054
Requires:       NetworkManager-libnm-devel >= %{nm_version}
37c054
Requires:       libnma-gtk4%{?_isa} = %{version}-%{release}
37c054
Requires:       gtk4-devel%{?_isa}
37c054
Requires:       pkgconfig
37c054
Conflicts:      libnma < %{old_libnma_version}
37c054
37c054
%description gtk4-devel
37c054
This package contains the experimental GTK4 version of header and pkg-config
37c054
files to be used for integrating GUI tools with NetworkManager.
37c054
37c054
37c054
%prep
0e0717
%autosetup -p1
37c054
37c054
37c054
%build
37c054
%meson \
37c054
        -Dgcr=true \
37c054
        -Dvapi=false \
37c054
%if %{with libnma_gtk4}
37c054
        -Dlibnma_gtk4=true
37c054
%else
37c054
        -Dlibnma_gtk4=false
37c054
%endif
37c054
%meson_build
37c054
37c054
37c054
%install
37c054
%meson_install
37c054
%find_lang %{name}
37c054
37c054
37c054
%check
37c054
%meson_test
37c054
37c054
37c054
%files -f %{name}.lang
37c054
%{_libdir}/libnma.so.*
37c054
%{_libdir}/girepository-1.0/NMA-1.0.typelib
37c054
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
37c054
%doc NEWS CONTRIBUTING
37c054
%license COPYING
37c054
37c054
37c054
%files devel
37c054
%{_includedir}/libnma
37c054
%{_libdir}/pkgconfig/libnma.pc
37c054
%{_libdir}/libnma.so
37c054
%{_datadir}/gir-1.0/NMA-1.0.gir
37c054
%{_datadir}/gtk-doc
37c054
37c054
37c054
%if %{with libnma_gtk4}
37c054
%files gtk4
37c054
%{_libdir}/libnma-gtk4.so.*
37c054
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
37c054
%license COPYING
37c054
37c054
37c054
%files gtk4-devel
37c054
%{_includedir}/libnma
37c054
%{_libdir}/pkgconfig/libnma-gtk4.pc
37c054
%{_libdir}/libnma-gtk4.so
37c054
%{_datadir}/gir-1.0/NMA4-1.0.gir
37c054
%endif
37c054
37c054
37c054
%changelog
0e0717
* Fri Apr 8 2022 Ana Cabral <acabral@redhat.com> - 1.8.38-1
0e0717
- Rebase to 1.8.38
0e0717
0e0717
* Fri Mar 25 2022 Ana Cabral <acabral@redhat.com> - 1.8.36-2
0e0717
- Rebuilt
0e0717
0e0717
* Fri Mar 25 2022 Ana Cabral <acabral@redhat.com> - 1.8.36-1
0e0717
- Update to 1.8.36 release (rh #2062686)
0e0717
- Include OWE wireless security (rh #2060327)
0e0717
- Fix OWE wireless security entry in Hidden Networks dialog (rh #2057514)
0e0717
fed361
* Fri Aug 20 2021 Thomas Haller <thaller@redhat.com> - 1.8.32-1
fed361
- Update to 1.8.32 release (rh #1996011)
fed361
e66a71
* Tue Jan 26 2021 Beniamino Galvani <bgalvani@redhat.com> - 1.8.30-2
e66a71
- Rebuild with new gtk-doc to fix multilib issues (rh #1853152)
e66a71
37c054
* Tue Jun 23 2020 Beniamino Galvani <bgalvani@redhat.com> - 1.8.30-1
37c054
- Update to 1.8.30 release
37c054
37c054
* Tue May 26 2020 Beniamino Galvani <bgalvani@redhat.com> - 1.8.28-2
37c054
- Rebuilt after adding gating
37c054
37c054
* Fri Mar  6 2020 Thomas Haller <thaller@redhat.com> - 1.8.28-1
37c054
- Update to 1.8.28 release
37c054
- move org.gnome.nm-applet.gschema.xml from network-manager-applet to here.
37c054
- introduce wireless security dialogs
37c054
37c054
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.26-4
37c054
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
37c054
37c054
* Thu Nov 14 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-3
37c054
- Clarify licensing
37c054
- Add a missing mobile-broadband-provider-info provide
37c054
37c054
* Fri Nov 08 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-2
37c054
- Fixes suggested in review by Matthew Krupcale (#1763285):
37c054
- Add gcc BR
37c054
- Fixed the libnma-gtk4 conditional
37c054
- Made dependencies arch-specific where relevant
37c054
- Dropped obsolete macros
37c054
- Install license file with libnma-gtk4
37c054
37c054
* Fri Oct 18 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-1
37c054
- Initial package split from nm-connection-editor