Init package

This commit is contained in:
dillon chen 2020-07-26 17:30:05 +08:00
parent 6ce3bde586
commit 3d800b5928
2 changed files with 44 additions and 0 deletions

BIN
xfce-polkit-0.3.tar.gz Normal file

Binary file not shown.

44
xfce-polkit.spec Normal file
View File

@ -0,0 +1,44 @@
Name: xfce-polkit
Version: 0.3
Release: 1
Summary: Simple PolicyKit authentication agent for Xfce
License: GPLv2+
#Group: Development/Libraries
URL: https://github.com/ncopa/%{name}
Source0: https://github.com/ncopa/xfce-polkit/releases/download/v0.3/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildArch: noarch
BuildRequires: gcc
BuildRequires: automake
BuildRequires: desktop-file-utils
BuildRequires: libxfce4ui-devel polkit-devel
Provides: PolicyKit-authentication-agent
Requires: polkit >= 0.97
%description
A simple PolicyKit authentication agent for XFCE
%prep
%autosetup
autoreconf -fi
%build
%configure
%make_build
%install
%make_install
desktop-file-edit --remove-key=NotShowIn --add-only-show-in=XFCE \
%{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop
%files
%license LICENSE
%doc AUTHORS README.md
# do not distribute empty documentation files
#doc ChangeLog NEWS
%{_sysconfdir}/xdg/autostart/xfce-polkit.desktop
%{_libexecdir}/%{name}
%changelog
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.3-1
- Init package