# project name is different at github %global project_name user-admin %define _legacy_common_support 1 Name: mate-user-admin Version: 1.6.0 Release: 2%{?dist} Summary: User management tool License: GPLv3+ URL: https://github.com/zhuyaliang/%{project_name} # downloading the tarball # spectool -g mate-user-admin.spec Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: accountsservice-devel BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: gcc BuildRequires: group-service-devel BuildRequires: gtk3-devel BuildRequires: libpwquality-devel BuildRequires: mate-desktop-devel BuildRequires: meson BuildRequires: polkit-devel %description Mate User management tool %prep %autosetup -p1 -n %{project_name}-%{version} sed -i -e 's/OnlyShowIn=MATE;/OnlyShowIn=MATE;XFCE;LXDE;/g' data/mate-user-admin.desktop.in sed -i -e 's/nugroups =mail;audio;video;lightdm;/#nugroups =mail;audio;video;lightdm/g' data/mate-user-admin/nuconfig %build %meson %meson_build %install %meson_install desktop-file-install \ --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/mate-user-admin.desktop %find_lang %{name} --with-gnome --all-name %files -f %{name}.lang %doc README.md %license COPYING %{_bindir}/mate-user-admin %dir %{_sysconfdir}/mate-user-admin %config %{_sysconfdir}/mate-user-admin/nuconfig %{_datadir}/applications/mate-user-admin.desktop %{_datadir}/metainfo/mate-user-admin.appdata.xml %{_datadir}/mate-user-admin/ %{_datadir}/icons/hicolor/*/apps/user-admin.png %{_datadir}/polkit-1/actions/org.mate.user.admin.policy %changelog * Sun Jul 10 2022 Wolfgang Ulbrich - 1.26.0-2 - initial build for epel8 * Thu Apr 01 2021 Wolfgang Ulbrich - 1.6.0-1 - update to 1.6.0 * Tue Jan 26 2021 Fedora Release Engineering - 1.5.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sun Feb 02 2020 Wolfgang Ulbrich - 1.5.1-3 - fix building for f32 * Wed Jan 29 2020 Fedora Release Engineering - 1.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Oct 13 2019 Wolfgang Ulbrich - 1.5.1-1 - update to 1.15.1 * Sun Jul 28 2019 Wolfgang Ulbrich - 1.4.2-1 - update to 1.14.2 - add LXFCE and XFCE to desktop file * Thu Jul 25 2019 Fedora Release Engineering - 1.4.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Apr 16 2019 Adam Williamson - 1.4.1-2 - Rebuild with Meson fix for #1699099 * Mon Mar 25 2019 Wolfgang Ulbrich - 1.4.1-1 - update to 1.4.1 * Fri Feb 01 2019 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jan 24 2019 Wolfgang Ulbrich - 1.3.1-1 - update to 1.2.1 * Thu Dec 13 2018 Wolfgang Ulbrich - 1.2.1-1 - update to 1.2.1 * Tue Sep 11 2018 Wolfgang Ulbrich - 1.1.1-1 - update to 1.1.1 * Mon Sep 03 2018 Wolfgang Ulbrich - 1.0.0-1 - initial package build