!4 add libnma

Merge pull request !4 from 吴超超/master
This commit is contained in:
openeuler-ci-bot 2020-08-03 20:24:47 +08:00 committed by Gitee
commit f5b24dc3a1
4 changed files with 80 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# libnma
#### Description
This package contains private libraries to be used only by nm-applet,nm-connection editor, and the GNOME Control Center.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,37 +0,0 @@
# libnma
#### 介绍
This package contains private libraries to be used only by nm-applet,nm-connection editor, and the GNOME Control Center.
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
libnma-1.8.28.tar.xz Normal file

Binary file not shown.

80
libnma.spec Normal file
View 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