Init package

This commit is contained in:
misaka00251 2022-11-08 17:40:33 +08:00
parent 08efe15c6e
commit 714a53bfaa
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26
6 changed files with 109 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# signon-plugin-oauth2
#### Description
OAuth2 plugin for the Accounts framework
#### 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 @@
# signon-plugin-oauth2
#### 介绍
OAuth2 plugin for the Accounts framework
#### 软件架构
软件架构说明
#### 安装教程
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. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

Binary file not shown.

View File

@ -0,0 +1,29 @@
diff -up signon-plugin-oauth2.git/common-project-config.pri.cxxflags signon-plugin-oauth2.git/common-project-config.pri
--- signon-plugin-oauth2.git/common-project-config.pri.cxxflags 2015-04-17 01:59:01.000000000 -0500
+++ signon-plugin-oauth2.git/common-project-config.pri 2020-11-08 11:49:40.752319952 -0600
@@ -15,10 +15,10 @@ UI_DIR = ui
UI_HEADERS_DIR = ui/include
UI_SOURCES_DIR = ui/src
-QMAKE_CXXFLAGS += -fno-exceptions \
- -fno-rtti
+#QMAKE_CXXFLAGS += -fno-exceptions \
+# -fno-rtti
# we don't like warnings...
-QMAKE_CXXFLAGS += -Werror
+#QMAKE_CXXFLAGS += -Werror
TOP_SRC_DIR = $$PWD
diff -up signon-plugin-oauth2.git/tests/tests.pro.cxxflags signon-plugin-oauth2.git/tests/tests.pro
--- signon-plugin-oauth2.git/tests/tests.pro.cxxflags 2015-04-17 01:59:01.000000000 -0500
+++ signon-plugin-oauth2.git/tests/tests.pro 2020-11-08 12:25:41.647654996 -0600
@@ -6,6 +6,8 @@ QT += core \
testlib
QT -= gui
+QMAKE_CXXFLAGS += -fno-rtti
+
DEFINES -= SIGNON_TRACE
CONFIG += \
link_pkgconfig

76
signon-plugin-oauth2.spec Normal file
View File

@ -0,0 +1,76 @@
%global git_commit 2dd9ba521a0dd4277c4bf6970a7f4e3894fd85ae
Name: signon-plugin-oauth2
Version: 0.24
Release: 1
Summary: OAuth2 plugin for the Accounts framework
License: LGPLv2
URL: https://gitlab.com/accounts-sso/signon-plugin-oauth2
Source0: https://gitlab.com/accounts-sso/signon-plugin-oauth2/repository/archive.tar.gz?ref=VERSION_%{version}#/%{name}-%{version}.tar.gz
# drop -Werror -fno-rtti
Patch100: signon-plugin-oauth2-cxxflags.patch
BuildRequires: make
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtxmlpatterns-devel
BuildRequires: signon-devel
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: libproxy-devel
%description
%{summary}.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}.
%prep
%autosetup -n %{name}-VERSION_%{version}-%{git_commit} -p1
%build
export PATH=%{_qt5_bindir}:$PATH
%qmake_qt5 \
QMF_INSTALL_ROOT=%{_prefix} \
CONFIG+=release \
LIBDIR=%{?_libdir} \
signon-oauth2.pro
%make_build
%install
%make_install INSTALL_ROOT=%{buildroot}
rm -fv %{buildroot}/%{_bindir}/signon-oauth2plugin-tests
rm -rfv %{buildroot}/%{_datadir}/signon-oauth2plugin-tests
rm -fv %{buildroot}/%{_bindir}/oauthclient
rm -rvf %{buildroot}/%{_sysconfdir}
%check
%make_build check
%ldconfig_scriptlets
%files
%{_libdir}/signon/liboauth2plugin.so
%files devel
%{_includedir}/signon-plugins/*.h
%{_libdir}/pkgconfig/signon-oauth2plugin.pc
%changelog
* Tue Nov 08 2022 misaka00251 <liuxin@iscas.ac.cn> - 0.24-1
- Init package (Derived from federa project, thanks to fedora team)

View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://gitlab.com/accounts-sso/signon-plugin-oauth2.git
tag_prefix: "^VERSION_"
seperator: "."