Blob Blame Raw
# project name is different at github
%global project_name user-admin

Name:          mate-user-admin
Version:       1.1.1
Release:       1%{?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}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires: gcc
BuildRequires: gtk3-devel
BuildRequires: libpwquality-devel
BuildRequires: accountsservice-devel
BuildRequires: mate-desktop-devel
# for libcrypt and meson
%if 0%{?fedora} && 0%{?fedora} >= 28
BuildRequires: libxcrypt-devel
%else
BuildRequires: glibc-devel
BuildRequires: gettext-devel
%endif
BuildRequires: meson
BuildRequires: desktop-file-utils

%description
Mate User management tool


%prep
%autosetup -p1 -n %{project_name}-%{version}

%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
%{_datadir}/applications/mate-user-admin.desktop
%{_datadir}/mate-user-admin/
%{_datadir}/icons/hicolor/*/apps/user-admin.png


%changelog
* Tue Sep 11 2018 Wolfgang Ulbrich <fedora@raveit.de> - 1.1.1-1
- update to 1.1.1

* Mon Sep 03 2018 Wolfgang Ulbrich <fedora@raveit.de> - 1.0.0-1
- initial package build