diff --git a/xfce-polkit-0.3.tar.gz b/xfce-polkit-0.3.tar.gz new file mode 100644 index 0000000..397d785 Binary files /dev/null and b/xfce-polkit-0.3.tar.gz differ diff --git a/xfce-polkit.spec b/xfce-polkit.spec new file mode 100644 index 0000000..671b74a --- /dev/null +++ b/xfce-polkit.spec @@ -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 - 0.3-1 +- Init package