Blame SPECS/libnma.spec

d0e057
%global gtk3_version          %(pkg-config --modversion gtk+-3.0 2>/dev/null || echo bad)
d0e057
%global gtk4_version          %(pkg-config --modversion gtk4 2>/dev/null || echo bad)
d0e057
%global glib2_version         %(pkg-config --modversion glib-2.0 2>/dev/null || echo bad)
d0e057
%global nm_version            1:1.8.0
d0e057
%global mbp_version           0.20090602
d0e057
%global old_libnma_version    1.8.27
d0e057
a424f7
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 10
a424f7
%bcond_without libnma_gtk4
a424f7
%else
d0e057
%bcond_with libnma_gtk4
a424f7
%endif
d0e057
d0e057
Name:           libnma
d0e057
Summary:        NetworkManager GUI library
a424f7
Version:        1.8.40
a424f7
Release:        1%{?dist}
d0e057
# The entire source code is GPLv2+ except some files in shared/ which are LGPLv2+
d0e057
License:        GPLv2+ and LGPLv2+
d0e057
URL:            https://gitlab.gnome.org/GNOME/libnma/
a424f7
Source0:        https://download.gnome.org/sources/libnma/1.8/%{name}-%{version}.tar.xz
d0e057
d0e057
Patch1:         0001-nm-applet-no-notifications.patch
d0e057
d0e057
Requires:       mobile-broadband-provider-info >= %{mbp_version}
d0e057
d0e057
Conflicts:      libnma < %{old_libnma_version}
d0e057
d0e057
BuildRequires:  gcc
d0e057
BuildRequires:  NetworkManager-libnm-devel >= %{nm_version}
d0e057
BuildRequires:  ModemManager-glib-devel >= 1.0
a424f7
BuildRequires:  glib2-devel >= 2.38
a424f7
BuildRequires:  gtk3-devel >= 3.12
d0e057
%if %{with libnma_gtk4}
a424f7
BuildRequires:  gtk4-devel >= 4.0
d0e057
%endif
d0e057
BuildRequires:  gobject-introspection-devel >= 0.10.3
d0e057
BuildRequires:  gettext-devel
d0e057
BuildRequires:  pkgconfig
d0e057
BuildRequires:  meson
d0e057
BuildRequires:  gtk-doc
d0e057
BuildRequires:  iso-codes-devel
d0e057
BuildRequires:  gcr-devel
d0e057
BuildRequires:  mobile-broadband-provider-info-devel >= %{mbp_version}
d0e057
d0e057
%description
d0e057
This package contains the library used for integrating GUI tools with
d0e057
NetworkManager.
d0e057
d0e057
d0e057
%package devel
d0e057
Summary:        Header files for NetworkManager GUI library
d0e057
Requires:       NetworkManager-libnm-devel >= %{nm_version}
d0e057
Obsoletes:      NetworkManager-gtk-devel < 1:0.9.7
d0e057
Requires:       libnma%{?_isa} = %{version}-%{release}
d0e057
Requires:       gtk3-devel%{?_isa}
d0e057
Requires:       pkgconfig
d0e057
Conflicts:      libnma < %{old_libnma_version}
d0e057
d0e057
%description devel
d0e057
This package contains header and pkg-config files to be used for integrating
d0e057
GUI tools with NetworkManager.
d0e057
d0e057
d0e057
%package gtk4
d0e057
Summary:        Experimental GTK 4 version of NetworkManager GUI library
d0e057
Requires:       gtk4%{?_isa} >= %{gtk4_version}
d0e057
Requires:       mobile-broadband-provider-info >= %{mbp_version}
d0e057
Conflicts:      libnma < %{old_libnma_version}
d0e057
d0e057
%description gtk4
d0e057
This package contains the experimental GTK4 version of library used for
d0e057
integrating GUI tools with NetworkManager.
d0e057
d0e057
d0e057
%package gtk4-devel
d0e057
Summary:        Header files for experimental GTK4 version of NetworkManager GUI library
d0e057
Requires:       NetworkManager-libnm-devel >= %{nm_version}
d0e057
Requires:       libnma-gtk4%{?_isa} = %{version}-%{release}
d0e057
Requires:       gtk4-devel%{?_isa}
d0e057
Requires:       pkgconfig
d0e057
Conflicts:      libnma < %{old_libnma_version}
d0e057
d0e057
%description gtk4-devel
d0e057
This package contains the experimental GTK4 version of header and pkg-config
d0e057
files to be used for integrating GUI tools with NetworkManager.
d0e057
d0e057
d0e057
%prep
a424f7
%autosetup -p1
d0e057
d0e057
d0e057
%build
d0e057
%meson \
d0e057
        -Dgcr=true \
d0e057
        -Dvapi=false \
d0e057
%if %{with libnma_gtk4}
d0e057
        -Dlibnma_gtk4=true
d0e057
%else
d0e057
        -Dlibnma_gtk4=false
d0e057
%endif
d0e057
%meson_build
d0e057
d0e057
d0e057
%install
d0e057
%meson_install
d0e057
%find_lang %{name}
d0e057
d0e057
d0e057
%check
d0e057
%meson_test
d0e057
d0e057
d0e057
%files -f %{name}.lang
d0e057
%{_libdir}/libnma.so.*
d0e057
%{_libdir}/girepository-1.0/NMA-1.0.typelib
d0e057
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
d0e057
%doc NEWS CONTRIBUTING
d0e057
%license COPYING
d0e057
d0e057
d0e057
%files devel
d0e057
%{_includedir}/libnma
d0e057
%{_libdir}/pkgconfig/libnma.pc
d0e057
%{_libdir}/libnma.so
d0e057
%{_datadir}/gir-1.0/NMA-1.0.gir
d0e057
%{_datadir}/gtk-doc
d0e057
d0e057
d0e057
%if %{with libnma_gtk4}
d0e057
%files gtk4
d0e057
%{_libdir}/libnma-gtk4.so.*
d0e057
%{_libdir}/girepository-1.0/NMA4-1.0.typelib
d0e057
%license COPYING
d0e057
d0e057
d0e057
%files gtk4-devel
d0e057
%{_includedir}/libnma
d0e057
%{_libdir}/pkgconfig/libnma-gtk4.pc
d0e057
%{_libdir}/libnma-gtk4.so
d0e057
%{_datadir}/gir-1.0/NMA4-1.0.gir
d0e057
%endif
d0e057
d0e057
d0e057
%changelog
a424f7
* Wed Jun 15 2022 Lubomir Rintel <lkundrak@v3.sk> - 1.8.40-1
a424f7
- Update to 1.8.40 release
a424f7
- Demote WEP (rh #2030997)
a424f7
a424f7
* Fri Apr 8 2022 Ana Cabral <acabral@redhat.com> - 1.8.38-1
a424f7
- Update to 1.8.38 release
a424f7
a424f7
* Fri Mar 25 2022 Ana Cabral <acabral@redhat.com> - 1.8.36-2
a424f7
- Rebuilt (outage)
a424f7
a424f7
* Fri Mar 25 2022 Ana Cabral <acabral@redhat.com> - 1.8.36-1
a424f7
- Update to 1.8.36 release  (rh #2066742)
a424f7
- Include OWE wireless security (rh #2066737)
a424f7
- Fix OWE wireless security entry in Hidden Networks dialog (rh #2057512)
a424f7
d0e057
* Fri Aug 20 2021 Wen Liang <wenliang@redhat.com> - 1.8.32-1
d0e057
- Update to 1.8.32 release
d0e057
d0e057
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.30-1.5
d0e057
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
d0e057
  Related: rhbz#1991688
d0e057
d0e057
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.8.30-1.4
d0e057
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
d0e057
d0e057
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.30-1.3
d0e057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d0e057
d0e057
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.30-1.2
d0e057
- Second attempt - Rebuilt for
d0e057
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d0e057
d0e057
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.30-1.1
d0e057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d0e057
d0e057
* Thu Jul  9 2020 Jérôme Parmentier <jerome@prmntr.me> - 1.8.30-1
d0e057
- Update to 1.8.30 release
d0e057
d0e057
* Fri Mar  6 2020 Thomas Haller <thaller@redhat.com> - 1.8.28-1
d0e057
- Update to 1.8.28 release
d0e057
- move org.gnome.nm-applet.gschema.xml from network-manager-applet to here.
d0e057
- introduce wireless security dialogs
d0e057
d0e057
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.26-4
d0e057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d0e057
d0e057
* Thu Nov 14 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-3
d0e057
- Clarify licensing
d0e057
- Add a missing mobile-broadband-provider-info provide
d0e057
d0e057
* Fri Nov 08 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-2
d0e057
- Fixes suggested in review by Matthew Krupcale (#1763285):
d0e057
- Add gcc BR
d0e057
- Fixed the libnma-gtk4 conditional
d0e057
- Made dependencies arch-specific where relevant
d0e057
- Dropped obsolete macros
d0e057
- Install license file with libnma-gtk4
d0e057
d0e057
* Fri Oct 18 2019 Lubomir Rintel <lkundrak@v3.sk> - 1.8.26-1
d0e057
- Initial package split from nm-connection-editor