[lxqt-about] import
Rex Dieter
rdieter at fedoraproject.org
Thu Nov 20 13:18:24 UTC 2014
commit 059df0a25b3ce569298df33614152ed35a61862e
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Thu Nov 20 07:18:13 2014 -0600
import
.gitignore | 1 +
lxqt-about-0.8.0-qt5-datadir.patch | 28 ++++++++++++++++
lxqt-about.spec | 63 ++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 93 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1c37703 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lxqt-about-0.8.0.tar.xz
diff --git a/lxqt-about-0.8.0-qt5-datadir.patch b/lxqt-about-0.8.0-qt5-datadir.patch
new file mode 100644
index 0000000..d9e8ce9
--- /dev/null
+++ b/lxqt-about-0.8.0-qt5-datadir.patch
@@ -0,0 +1,28 @@
+diff -r -u lxqt-about-0.8.0.orig/CMakeLists.txt lxqt-about-0.8.0/CMakeLists.txt
+--- lxqt-about-0.8.0.orig/CMakeLists.txt 2014-06-01 01:56:02.000000000 -0300
++++ lxqt-about-0.8.0/CMakeLists.txt 2014-11-10 15:52:24.227149225 -0200
+@@ -50,6 +50,7 @@
+ qt5_add_resources(QRC_SOURCES ${QRC_FILES})
+
+ set(QTX_LIBRARIES ${Qt5Widgets_LIBRARIES} ${Qt5DBus_LIBRARIES} ${Qt5X11Extras_LIBRARIES})
++ set(LXQT_DATA_DIR "share/lxqt-qt5")
+ else()
+ find_package(Qt4 REQUIRED QtCore QtGui QUIET)
+ find_package(LXQT REQUIRED QUIET)
+@@ -60,6 +61,7 @@
+ qt4_add_resources(QRC_SOURCES ${QRC_FILES})
+
+ set(QTX_LIBRARIES ${QT_LIBRARIES})
++ set(LXQT_DATA_DIR "share/lxqt")
+ endif()
+
+
+@@ -74,7 +76,7 @@
+ set( CMAKE_BUILD_TYPE Release )
+ endif (NOT CMAKE_BUILD_TYPE)
+
+-set(APP_SHARE_DIR share/lxqt/${PROJECT_NAME})
++set(APP_SHARE_DIR ${LXQT_DATA_DIR}/${PROJECT_NAME})
+
+ #************************************************
+
diff --git a/lxqt-about.spec b/lxqt-about.spec
new file mode 100644
index 0000000..58546de
--- /dev/null
+++ b/lxqt-about.spec
@@ -0,0 +1,63 @@
+%if 0%{?rhel} == 6
+%define cmake_pkg cmake28
+%else
+%define cmake_pkg cmake
+%endif
+
+Name: lxqt-about
+Summary: About application for LXQt desktop suite
+Version: 0.8.0
+Release: 3%{?dist}
+License: LGPLv2+
+URL: http://lxqt.org/
+Source0: http://lxqt.org/downloads/lxqt/0.8.0/%{name}-%{version}.tar.xz
+Patch0: lxqt-about-0.8.0-qt5-datadir.patch
+
+BuildRequires: %{cmake_pkg} >= 2.9.8
+BuildRequires: pkgconfig(lxqt-qt5)
+BuildRequires: pkgconfig(Qt5Xdg)
+BuildRequires: pkgconfig(Qt5Help)
+BuildRequires: desktop-file-utils
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .datadir
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{?cmake28}%{!?cmake28:%{?cmake}} -DUSE_QT5=TRUE ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+desktop-file-edit \
+ --remove-category=LXQt --add-category=X-LXQt \
+ --remove-category=Help --add-category=X-Help \
+ --remove-only-show-in=LXQt --add-only-show-in=X-LXQt \
+ %{buildroot}%{_datadir}/applications/lxqt-about.desktop
+
+%files
+%doc COPYING
+%{_bindir}/lxqt-about
+%{_datadir}/lxqt-qt5/lxqt-about
+%{_datadir}/applications/lxqt-about.desktop
+
+
+%changelog
+* Mon Nov 10 2014 Helio Chissini de Castro <hcastro at redhat.com> - 0.8.0-3
+- Updates on review https://bugzilla.redhat.com/show_bug.cgi?id=1159819
+
+* Mon Nov 03 2014 Helio Chissini de Castro <hcastro at redhat.com> - 0.8.0-2
+- Update to send to review
+
+* Mon Oct 27 2014 Helio Chissini de Castro <hcastro at redhat.com> - 0.8.0-1
+- First release to LxQt new base
diff --git a/sources b/sources
index e69de29..4274849 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6c5eed82fffc58a508dcd35531e65376 lxqt-about-0.8.0.tar.xz
More information about the scm-commits
mailing list