add libnma
This commit is contained in:
parent
f531840f98
commit
6508971c77
BIN
libnma-1.8.28.tar.xz
Normal file
BIN
libnma-1.8.28.tar.xz
Normal file
Binary file not shown.
80
libnma.spec
Normal file
80
libnma.spec
Normal file
@ -0,0 +1,80 @@
|
||||
%global gtk3_version %(pkg-config --modversion gtk+-3.0 2>/dev/null || echo bad)
|
||||
%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.26
|
||||
%global rpm_version 1.8.28
|
||||
%global real_version 1.8.28
|
||||
%global release_version 1
|
||||
%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')
|
||||
|
||||
Name: libnma
|
||||
Summary: NetworkManager GUI library
|
||||
Version: %{rpm_version}
|
||||
Release: %{release_version}
|
||||
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
|
||||
|
||||
Requires: mobile-broadband-provider-info >= %{mbp_version}
|
||||
|
||||
Obsoletes: libnma < %{old_libnma_version}
|
||||
|
||||
BuildRequires: gcc gettext-devel pkgconfig meson gtk-doc iso-codes-devel gcr-devel
|
||||
BuildRequires: NetworkManager-libnm-devel >= %{nm_version} gtk3-devel >= 3.10
|
||||
BuildRequires: ModemManager-glib-devel >= 1.0 glib2-devel >= 2.32
|
||||
BuildRequires: gobject-introspection-devel >= 0.10.3
|
||||
BuildRequires: mobile-broadband-provider-info-devel >= %{mbp_version}
|
||||
|
||||
%description
|
||||
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}
|
||||
Obsoletes: NetworkManager-gtk-devel < 1:0.9.7
|
||||
Requires: libnma = %{version}-%{release} pkgconfig gtk3-devel
|
||||
Obsoletes: libnma < %{old_libnma_version}
|
||||
|
||||
%description devel
|
||||
This package contains header and pkg-config files to be used for integrating
|
||||
GUI tools with NetworkManager.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n "%{name}-%{real_version}"
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-Dgcr=true \
|
||||
-Ddisable-static=true \
|
||||
-Dvapi=false \
|
||||
-Dlibnma_gtk4=false
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
%find_lang %{name}
|
||||
|
||||
%check
|
||||
%meson_test
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
%doc NEWS CONTRIBUTING
|
||||
%license COPYING
|
||||
%{_libdir}/libnma.so.*
|
||||
%{_libdir}/girepository-1.0/NMA-1.0.typelib
|
||||
%exclude %{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/libnma
|
||||
%{_libdir}/pkgconfig/libnma.pc
|
||||
%{_libdir}/libnma.so
|
||||
%{_datadir}/gir-1.0/NMA-1.0.gir
|
||||
%{_datadir}/gtk-doc
|
||||
|
||||
%changelog
|
||||
* Fri Jul 31 2020 wuchaochao <wuchaochao4@huawei.com> - 1.8.28-1
|
||||
- Update to 1.8.28 release
|
||||
Loading…
x
Reference in New Issue
Block a user