diff --git a/lxqt-sudo.spec b/lxqt-sudo.spec index 6b37cbe..2ed6689 100644 --- a/lxqt-sudo.spec +++ b/lxqt-sudo.spec @@ -1,6 +1,6 @@ Name: lxqt-sudo Version: 0.10.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: GUI frontend for sudo/su # GNU Lesser General Public License 2.1 or later @@ -8,36 +8,44 @@ License: LGPLv2+ URL: https://github.com/lxde/%{name} Source0: %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # russian translation updates -Patch1: %{url}/commit/2b8047c5c99803fdead09e4ca5e6fb09ad83d06e.patch -Patch2: https://github.com/f2404/%{name}/commit/84a5377b7619490ee4a137b7b5af5be2c866bd1d.patch -# italian translation update -#Patch3: https://github.com/smart2128/%{name}/commit/af22cf7cb66ec85c618779d34ee9c3c80ad4cd9b.patch +Patch0: %{url}/commit/2b8047c5c99803fdead09e4ca5e6fb09ad83d06e.patch +Patch1: https://github.com/f2404/%{name}/commit/84a5377b7619490ee4a137b7b5af5be2c866bd1d.patch # hr -Patch4: https://github.com/zvacet/%{name}/commit/581081397e7732d6ad6bb99ff2c484e89e123ade.patch +Patch3: https://github.com/zvacet/%{name}/commit/581081397e7732d6ad6bb99ff2c484e89e123ade.patch BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(lxqt) BuildRequires: kf5-kwindowsystem-devel BuildRequires: qt5-linguist -BuildRequires: cmake - # runtime Requires: sudo %description %{summary}. - %prep -%autosetup +%setup +%patch0 -p1 -b .tr_rus +%patch1 -p1 -b .tr_rus +%patch3 -p1 -b .tr_hr %build -%cmake -%make_build +mkdir -p %{_target_platform} +pushd %{_target_platform} + %{cmake_lxqt} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} %install -%make_install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +#for desktop in %{buildroot}/%{_datadir}/lxqt/lxqt-panel/*.desktop; do + # Exclude category as been Service +# desktop-file-edit --remove-category=LXQt --remove-only-show-in=LXQt --add-only-show-in=X-LXQt ${desktop} +#done + %find_lang %{name} --with-qt @@ -50,8 +58,10 @@ Requires: sudo # although %%{_datadir}/lxqt/translations is owned in liblxqt %dir %{_datadir}/lxqt/translations/%{name} - %changelog +* Thu Jan 14 2016 Helio Chissini de Castro - 0.10.0-4 +- Adapt for the new lxqt build that allows usage on epel as well (cmake3) + * Thu Jan 14 2016 Raphael Groner - 0.10.0-3 - add BR: cmake, needed explicitly for epel7