a43972b
Name:    lxqt-admin
a43972b
Summary: LXQt system administration tool
f81a6a3
Version: 0.16.0
f81a6a3
Release: 1%{?dist}
a43972b
License: LGPLv2+
a43972b
URL:     http://lxqt.org/
747b39f
Source0: https://github.com/lxqt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
8fc5fce
BuildRequires: make
bc22f50
BuildRequires:  pkgconfig(lxqt)
bc22f50
BuildRequires:  desktop-file-utils
bc22f50
BuildRequires:  kf5-kwindowsystem-devel
c37f3f2
BuildRequires:  lxqt-build-tools
bc22f50
BuildRequires:  pkgconfig(Qt5Widgets)
bc22f50
BuildRequires:  qt5-linguist
747b39f
BuildRequires:  pkgconfig(polkit-qt5-1)
0523941
BuildRequires:  pkgconfig(glib-2.0)
66ab7ae
%if 0%{?el7}
66ab7ae
BuildRequires:  devtoolset-7-gcc-c++
66ab7ae
%endif
66ab7ae
bc22f50
Requires:       polkit
bc22f50
bc22f50
%description
bc22f50
This package provides tools to adjust settings of the operating system
bc22f50
LXQt is running on. Both can be launched from GUI "Configuration Center".
bc22f50
bc22f50
GUI "Time and date configuration", binary lxqt-admin-time, can be used
bc22f50
to adjust the system time of the operating system as well as the timezone.
bc22f50
fe62fed
%package l10n
0523941
BuildArch:      noarch
fe62fed
Summary:        Translations for lxqt-admin
fe62fed
Requires:       lxqt-admin
fe62fed
%description l10n
fe62fed
This package provides translations for the lxqt-admin package.
fe62fed
bc22f50
%prep
Builder b9b2ad7
%autosetup -p1 
bc22f50
bc22f50
%build
66ab7ae
%if 0%{?el7}
66ab7ae
scl enable devtoolset-7 - <<\EOF
66ab7ae
%endif
66ab7ae
bc22f50
mkdir -p %{_target_platform}
bc22f50
pushd %{_target_platform}
a43972b
   %{cmake_lxqt} -DUSE_QT5=TRUE -DPULL_TRANSLATIONS=NO ..
bc22f50
popd
a43972b
make %{?_smp_mflags} -C %{_target_platform}
bc22f50
66ab7ae
%if 0%{?el7}
66ab7ae
EOF
66ab7ae
%endif
66ab7ae
a43972b
%install
a43972b
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
a43972b
a43972b
for admfile in user time; do
a43972b
desktop-file-edit \
a43972b
    --remove-category=LXQt --add-category=X-LXQt \
a43972b
    --remove-category=Help --add-category=X-Help \
a43972b
    --remove-only-show-in=LXQt --add-only-show-in=X-LXQt \
a43972b
    %{buildroot}%{_datadir}/applications/%{name}-${admfile}.desktop
a43972b
fe62fed
%find_lang lxqt-admin-${admfile} --with-qt
fe62fed
done
d403603
4e52c29
%files 
bc22f50
%license COPYING
bc22f50
%doc AUTHORS README.md
bc22f50
%{_bindir}/%{name}*
bc22f50
%{_datadir}/applications/%{name}*.desktop
bc22f50
%{_datadir}/polkit-1/actions/*.policy
bc22f50
fe62fed
%files l10n -f lxqt-admin-user.lang -f lxqt-admin-time.lang
fe62fed
%license COPYING
fe62fed
%doc AUTHORS README.md
fe62fed
%dir %{_datadir}/lxqt/translations/lxqt-admin-user
fe62fed
%dir %{_datadir}/lxqt/translations/lxqt-admin-time
0523941
%{_datadir}/lxqt/translations/lxqt-admin-user/lxqt-admin-user_arn.qm
0523941
%{_datadir}/lxqt/translations/lxqt-admin-user/lxqt-admin-user_ast.qm
0523941
%{_datadir}/lxqt/translations/lxqt-admin-time/lxqt-admin-time_arn.qm
0523941
%{_datadir}/lxqt/translations/lxqt-admin-time/lxqt-admin-time_ast.qm
fe62fed
bc22f50
%changelog
f81a6a3
* Mon Nov 23 2020 Zamir SUN <sztsian@gmail.com> - 0.16.0-1
f81a6a3
- Update to 0.16.0
f81a6a3
daa611b
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.0-2
daa611b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
daa611b
0523941
* Sun May 03 2020 Zamir SUN <sztsian@gmail.com> - 0.15.0-1
0523941
- Update to 0.15.0
0523941
78c0927
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
78c0927
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
78c0927
0f4a26b
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-2
0f4a26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0f4a26b
cecc03d
* Mon Apr 15 2019 Zamir SUN <sztsian@gmail.com> - 0.14.1-1
cecc03d
- Update to version 0.14.1
cecc03d
66382ce
* Wed Feb 13 2019 Zamir SUN <zsun@fedoraproject.org>  - 0.14.0-1
66382ce
- Prepare for LXQt 0.14.0
66382ce
72c1430
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.0-2
72c1430
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
72c1430
747b39f
* Fri Aug 03 2018 Zamir SUN <zsun@fedoraproject.org> - 0.13.0-1
747b39f
- Update to version 0.13.0
747b39f
1892db8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-9
1892db8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1892db8
8dc4092
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-8
8dc4092
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8dc4092
701394f
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-7
701394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
701394f
9f7dca4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-6
9f7dca4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9f7dca4
9e5d4e4
* Sat Jun 10 2017 Raphael Groner <projects.rg@smart.ms> - 0.11.1-5
Builder b9b2ad7
- add upstram patch to avoid duplicates, rhbz#1459642
Builder b9b2ad7
39933ff
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-4
39933ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
39933ff
1d4333c
* Thu Jan 19 2017 Christian Dersch <lupinix@mailbox.org> - 0.11.1-3
1d4333c
- rebuilt
1d4333c
4e52c29
* Wed Jan 18 2017 Christian Dersch <lupinix@mailbox.org> - 0.11.1-2
4e52c29
- moved translations to lxqt-l10n
4e52c29
c37f3f2
* Sat Jan 07 2017 Christian Dersch <lupinix@mailbox.org> - 0.11.1-1
c37f3f2
- new version
c37f3f2
a43972b
* Sun Sep 25 2016 Helio Chissini de Castro <helio@kde.org> - 0.11.0-1
a43972b
- New upstream version 0.11.0
a43972b
bc22f50
* Sat Aug 06 2016 Raphael Groner <projects.rg@smart.ms> - 0.10.0-3.20160729git2f95601
bc22f50
- new git snapshot
bc22f50
- fix unlicensed files
bc22f50
bc22f50
* Wed Jul 06 2016 Raphael Groner <projects.rg@smart.ms> - 0.10.0-2.20160705git8acfd2a
bc22f50
- new git snapshot
bc22f50
- drop dependency to liboobs
bc22f50
- add polkit
bc22f50
- adjust license
bc22f50
bc22f50
* Tue Jun 07 2016 Raphael Groner <projects.rg@smart.ms> - 0.10.0-1.20160531git0f9ab3a
bc22f50
- initial