!1 Init package

From: @misaka00251 
Reviewed-by: @panchenbo 
Signed-off-by: @panchenbo
This commit is contained in:
openeuler-ci-bot 2022-11-01 03:32:55 +00:00 committed by Gitee
commit 62ea9006d8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 76 additions and 73 deletions

View File

@ -1,36 +0,0 @@
# polkit-kde
#### Description
Daemon providing a Polkit authentication UI for Plasma
#### 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 @@
# polkit-kde
#### 介绍
Daemon providing a Polkit authentication UI for Plasma
#### 软件架构
软件架构说明
#### 安装教程
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.

72
polkit-kde.spec Normal file
View File

@ -0,0 +1,72 @@
%global base_name polkit-kde-agent-1
Name: polkit-kde
Summary: PolicyKit integration for KDE Desktop
Version: 5.25.5
Release: 1
License: GPLv2+
URL: https://invent.kde.org/plasma/%{base_name}
%global revision %(echo %{version} | cut -d. -f3)
Source0: http://download.kde.org/stable/plasma/%{version}/%{base_name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: systemd
BuildRequires: qt5-qtbase-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: kf5-kdbusaddons-devel
BuildRequires: kf5-kwidgetsaddons-devel
BuildRequires: kf5-kcoreaddons-devel
BuildRequires: kf5-kcrash-devel
BuildRequires: kf5-kconfig-devel
BuildRequires: kf5-kiconthemes-devel
BuildRequires: kf5-knotifications-devel
BuildRequires: kf5-kdeclarative-devel
BuildRequires: polkit-qt5-1-devel
Provides: PolicyKit-authentication-agent = %{version}-%{release}
Provides: polkit-kde-1 = %{version}-%{release}
Provides: polkit-kde-agent-1 = %{version}-%{release}
Obsoletes: PolicyKit-kde < 4.5
Requires: polkit
%description
Provides Policy Kit Authentication Agent that nicely fits to KDE.
%prep
%autosetup -n %{base_name}-%{version} -p1
%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
-DKDE_INSTALL_LIBEXECDIR:PATH=%{_kf5_libexecdir}
popd
%make_build -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang polkit-kde-authentication-agent-1
%files -f polkit-kde-authentication-agent-1.lang
%license LICENSES
%{_kf5_libexecdir}/polkit-kde-authentication-agent-1
%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
%{_kf5_datadir}/knotifications5/policykit1-kde.notifyrc
%{_kf5_datadir}/applications/org.kde.polkit-kde-authentication-agent-1.desktop
%{_userunitdir}/plasma-polkit-agent.service
%changelog
* Tue Nov 01 2022 misaka00251 <liuxin@iscas.ac.cn> - 5.25.5-1
- Init package (Derived from federa project, thanks to fedora team)

4
polkit-kde.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: https://github.com/KDE/polkit-kde-agent-1.git
tag_prefix: "v"
separator: "."