summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/qt-designer.desktop5
-rw-r--r--packaging/qt5-qttools.spec6
2 files changed, 11 insertions, 0 deletions
diff --git a/packaging/qt-designer.desktop b/packaging/qt-designer.desktop
new file mode 100644
index 00000000..0fe60318
--- /dev/null
+++ b/packaging/qt-designer.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=Qt Designer
+Type=Application
+Exec=/usr/bin/designer
+
diff --git a/packaging/qt5-qttools.spec b/packaging/qt5-qttools.spec
index 9f7e231a..fb603c46 100644
--- a/packaging/qt5-qttools.spec
+++ b/packaging/qt5-qttools.spec
@@ -32,6 +32,7 @@ Group: Base/Libraries
License: LGPL-2.1+ or GPL-3.0
URL: http://qt.digia.com
Source: %{name}-%{version}.tar.bz2
+Source1001: qt-designer.desktop
BuildRequires: qt5-qtgui-devel
BuildRequires: qt5-qtnetwork-devel
BuildRequires: qt5-qtcore-devel
@@ -170,6 +171,7 @@ applications that use QtDesigner
%prep
%setup -q -n %{name}-%{version}/qttools
+cp %{SOURCE1001} .
%build
export QTDIR=/usr/share/qt5
@@ -181,6 +183,9 @@ make %{?_smp_mflags}
rm -rf %{buildroot}
%qmake5_install
+install -d "%{buildroot}%{_datadir}/applications/"
+install qt-designer.desktop "%{buildroot}%{_datadir}/applications/"
+
%fdupes %{buildroot}%{_libdir}
%fdupes %{buildroot}%{_includedir}
%fdupes %{buildroot}%{_datadir}
@@ -286,6 +291,7 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%{_qt5_bindir}/designer
%{_libdir}/libQt5Designer*.so.*
+%{_datadir}/applications/qt-designer.desktop
%files qtdesigner-devel
%defattr(-,root,root,-)