Blame lxqt-common.spec

Rex Dieter e8c15b5
%if 0%{?rhel} == 6
Rex Dieter e8c15b5
%define cmake_pkg cmake28
Rex Dieter e8c15b5
%else
Rex Dieter e8c15b5
%define cmake_pkg cmake
Rex Dieter e8c15b5
%endif
Rex Dieter e8c15b5
Rex Dieter e8c15b5
Name:    lxqt-common
Rex Dieter e8c15b5
Summary: Common resources for LXQt desktop suite
Rex Dieter e8c15b5
Version: 0.8.0
5719f23
Release: 10%{?dist}
Rex Dieter e8c15b5
License: LGPLv2+
Rex Dieter e8c15b5
URL:     http://lxqt.org/
Rex Dieter e8c15b5
Source0: http://lxqt.org/downloads/lxqt/0.8.0/%{name}-%{version}.tar.xz
4110ff2
Patch0:  lxqt-common-0.8.0-desktop-launch.patch
Rex Dieter e8c15b5
# From https://github.com/lxde/lxqt-common/pull/7.patch
4110ff2
Patch1:  lxqt-common-xdg_data_dir.patch
Rex Dieter 3b20ced
# fedora's polkit agent patched to be in libexec instead of bin/
4110ff2
Patch2: lxqt-common-0.8.0-polkit_libexec.patch
4110ff2
Patch3: lxqt-common-0.8.0-unify.patch
Rex Dieter e8c15b5
BuildArch: noarch
Rex Dieter e8c15b5
Rex Dieter e8c15b5
Requires: oxygen-icon-theme
Rex Dieter e8c15b5
Rex Dieter e8c15b5
BuildRequires: %{cmake_pkg} >= 2.8.9
Rex Dieter e8c15b5
BuildRequires: pkgconfig(Qt5Xdg)
Rex Dieter e8c15b5
BuildRequires: pkgconfig(Qt5Help)
4110ff2
BuildRequires: pkgconfig(lxqt)
Rex Dieter e8c15b5
BuildRequires: desktop-file-utils
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%description
Rex Dieter e8c15b5
%{summary}.
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%prep
Rex Dieter e8c15b5
%setup -q
Rex Dieter e8c15b5
4110ff2
%patch0 -p1 -b .desktop-launch
4110ff2
%patch1 -p1 -b .xdg-data
4110ff2
%patch2 -p1 -b .libexec
4110ff2
%patch3 -p1 -b .unify
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%build
Rex Dieter e8c15b5
mkdir -p %{_target_platform}
Rex Dieter e8c15b5
pushd %{_target_platform}
Rex Dieter e8c15b5
%{?cmake28}%{!?cmake28:%{?cmake}} -DUSE_QT5=ON ..
Rex Dieter e8c15b5
popd
Rex Dieter e8c15b5
Rex Dieter e8c15b5
make %{?_smp_mflags} -C %{_target_platform}
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%install
Rex Dieter e8c15b5
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
Rex Dieter e8c15b5
Rex Dieter e8c15b5
desktop-file-validate %{buildroot}/%{_datadir}/xsessions/lxqt.desktop
Rex Dieter e8c15b5
Rex Dieter e8c15b5
for desktop in %{buildroot}%{_sysconfdir}/xdg/autostart/*.desktop; do
Rex Dieter e8c15b5
	desktop-file-edit --remove-only-show-in=LXQt --add-only-show-in=X-LXQt ${desktop}
Rex Dieter e8c15b5
done
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%files
Rex Dieter e8c15b5
%{_bindir}/startlxqt	
Rex Dieter e8c15b5
%dir %{_sysconfdir}/xdg/lxqt
Rex Dieter 3b20ced
%{_sysconfdir}/xdg/autostart/lxqt-*
Rex Dieter e8c15b5
%config(noreplace) %{_sysconfdir}/xdg/lxqt/*
Rex Dieter e8c15b5
%{_datadir}/xsessions/lxqt.desktop
Rex Dieter e8c15b5
%dir %{_sysconfdir}/xdg/pcmanfm-qt
Rex Dieter e8c15b5
%config(noreplace) %{_sysconfdir}/xdg/pcmanfm-qt/lxqt/settings.conf
4110ff2
%{_datadir}/lxqt/themes
4110ff2
%{_datadir}/lxqt/graphics
4110ff2
%{_datadir}/lxqt/openbox
Rex Dieter e8c15b5
%exclude %{_datadir}/apps/kdm/sessions/lxqt.desktop
Rex Dieter e8c15b5
Rex Dieter e8c15b5
%changelog
5719f23
* Mon Dec 29 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-10
5719f23
- Rebuild against new Qt 5.4.0
5719f23
bdb6c23
* Mon Dec 22 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-9
bdb6c23
- Validate XDG desktop entry. Reenable regular sessions
bdb6c23
4110ff2
* Fri Dec 19 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-8
4110ff2
- Unify naming as discussed on Fedora IRC
4110ff2
Rex Dieter 3b20ced
* Fri Dec 19 2014 Rex Dieter <rdieter@fedoraproject.org> - 0.8.0-7
Rex Dieter 3b20ced
- fix lxqt-policykit autostart (moved to libexec)
Rex Dieter 3b20ced
- don't mark autostart as %%config
Rex Dieter 3b20ced
Rex Dieter e8c15b5
* Mon Nov 10 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-6
Rex Dieter e8c15b5
- For some reason Xdg went away on buildreqs.
Rex Dieter e8c15b5
Rex Dieter e8c15b5
* Mon Nov 10 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-5
Rex Dieter e8c15b5
- Validate desktop files adding X- since is not a valif group on freedesktop yet
Rex Dieter e8c15b5
- Owns xdg/lxqt directory
Rex Dieter e8c15b5
Rex Dieter e8c15b5
* Mon Nov 10 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-4
Rex Dieter e8c15b5
- Fix review issues on https://bugzilla.redhat.com/show_bug.cgi?id=1158632
Rex Dieter e8c15b5
- Moved fedora theme package away as agreed nee to be in a separate package
Rex Dieter e8c15b5
Rex Dieter e8c15b5
* Thu Oct 30 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-3
Rex Dieter e8c15b5
- Borrowed an upstream patch for XDG. Thanks to Florian Hubbold from Mageia
Rex Dieter e8c15b5
Rex Dieter e8c15b5
* Wed Oct 29 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-2
Rex Dieter e8c15b5
- Small modification to submit package for review
Rex Dieter e8c15b5
Rex Dieter e8c15b5
* Mon Oct 27 2014 Helio Chissini de Castro <hcastro@redhat.com> - 0.8.0-1
Rex Dieter e8c15b5
- First release to LxQt new base