packages: qtsingleapplication/qtsingleapplication-build.diff (NEW), qtsingl...
glen
glen at pld-linux.org
Thu Apr 22 21:49:08 CEST 2010
Author: glen Date: Thu Apr 22 19:49:07 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new, from https://bugzilla.redhat.com/show_bug.cgi?id=581220
---- Files affected:
packages/qtsingleapplication:
qtsingleapplication-build.diff (NONE -> 1.1) (NEW), qtsingleapplication.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/qtsingleapplication/qtsingleapplication-build.diff
diff -u /dev/null packages/qtsingleapplication/qtsingleapplication-build.diff:1.1
--- /dev/null Thu Apr 22 21:49:08 2010
+++ packages/qtsingleapplication/qtsingleapplication-build.diff Thu Apr 22 21:49:02 2010
@@ -0,0 +1,27 @@
+diff -urN qtsingleapplication-2.6-opensource-orig/qtsingleapplication.pro qtsingleapplication-2.6-opensource/qtsingleapplication.pro
+--- qtsingleapplication-2.6-opensource-orig/qtsingleapplication.pro 2009-04-21 13:30:29.000000000 +0300
++++ qtsingleapplication-2.6-opensource/qtsingleapplication.pro 2009-12-03 16:28:20.000000000 +0200
+@@ -2,4 +2,3 @@
+ CONFIG += ordered
+ include(common.pri)
+ qtsingleapplication-uselib:SUBDIRS=buildlib
+-SUBDIRS+=examples
+diff -urN qtsingleapplication-2.6-opensource-orig/src/qtsingleapplication.pri qtsingleapplication-2.6-opensource/src/qtsingleapplication.pri
+--- qtsingleapplication-2.6-opensource-orig/src/qtsingleapplication.pri 2009-04-21 13:30:29.000000000 +0300
++++ qtsingleapplication-2.6-opensource/src/qtsingleapplication.pri 2009-12-03 16:28:13.000000000 +0200
+@@ -6,8 +6,8 @@
+ qtsingleapplication-uselib:!qtsingleapplication-buildlib {
+ LIBS += -L$$QTSINGLEAPPLICATION_LIBDIR -l$$QTSINGLEAPPLICATION_LIBNAME
+ } else {
+- SOURCES += $$PWD/qtsingleapplication.cpp $$PWD/qtlocalpeer.cpp
+- HEADERS += $$PWD/qtsingleapplication.h $$PWD/qtlocalpeer.h
++ SOURCES += $$PWD/qtsingleapplication.cpp $$PWD/qtsinglecoreapplication.cpp $$PWD/qtlocalpeer.cpp
++ HEADERS += $$PWD/qtsingleapplication.h $$PWD/qtsinglecoreapplication.h $$PWD/qtlocalpeer.h
+ }
+
+ win32 {
+diff -urN qtsingleapplication-2.6-opensource-orig/src/QtSingleCoreApplication qtsingleapplication-2.6-opensource/src/QtSingleCoreApplication
+--- qtsingleapplication-2.6-opensource-orig/src/QtSingleCoreApplication 1970-01-01 02:00:00.000000000 +0200
++++ qtsingleapplication-2.6-opensource/src/QtSingleCoreApplication 2009-12-03 16:28:13.000000000 +0200
+@@ -0,0 +1 @@
++#include "qtsinglecoreapplication.h"
================================================================
Index: packages/qtsingleapplication/qtsingleapplication.spec
diff -u /dev/null packages/qtsingleapplication/qtsingleapplication.spec:1.1
--- /dev/null Thu Apr 22 21:49:08 2010
+++ packages/qtsingleapplication/qtsingleapplication.spec Thu Apr 22 21:49:02 2010
@@ -0,0 +1,93 @@
+# $Revision$, $Date$
+# TODO
+# - rename as QtSingleApplication ?
+# - subpackage for non-gui once any package appears needing so (QtSingleCoreApplication)
+Summary: Qt library to start applications only once per user
+Name: qtsingleapplication
+Version: 2.6
+Release: 1
+License: GPL v3 or LGPL v2 with exceptions
+Group: Libraries
+URL: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsingleapplication
+Source0: http://get.qt.nokia.com/qt/solutions/lgpl/%{name}-%{version}_1-opensource.tar.gz
+# Source0-md5: 902795eb13ecedbdc112f00d7ec22949
+Patch0: %{name}-build.diff
+BuildRequires: qt4-build
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+For some applications it is useful or even critical that they are
+started only once by any user. Future attempts to start the
+application should activate any already running instance, and possibly
+perform requested actions, e.g. loading a file, in that instance.
+
+The QtSingleApplication class provides an interface to detect a
+running instance, and to send command strings to that instance.
+
+For console (non-GUI) applications, the QtSingleCoreApplication
+variant is provided, which avoids dependency on QtGui.
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: qt4-build
+
+%description devel
+This package contains libraries and header files for developing
+applications that use QtSingleCoreApplication.
+
+%prep
+%setup -q -n %{name}-%{version}_1-opensource
+%patch0 -p1
+
+%build
+touch .licenseAccepted
+# Does not use GNU configure
+./configure -library
+qmake-qt4
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# libraries
+install -d $RPM_BUILD_ROOT%{_libdir}
+cp -a lib/* $RPM_BUILD_ROOT%{_libdir}
+rm $RPM_BUILD_ROOT%{_libdir}/lib*.so.1.0
+
+# headers
+install -d $RPM_BUILD_ROOT%{_includedir}/QtSolutions
+cp -a \
+ src/qtsingleapplication.h \
+ src/QtSingleApplication \
+ src/qtsinglecoreapplication.h \
+ src/QtSingleCoreApplication \
+ $RPM_BUILD_ROOT%{_includedir}/QtSolutions
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LGPL_EXCEPTION.txt LICENSE.* README.TXT
+%attr(755,root,root) %{_libdir}/libQtSolutions_SingleApplication-%{version}.so.1
+%attr(755,root,root) %{_libdir}/libQtSolutions_SingleApplication-%{version}.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc examples
+%{_libdir}/libQtSolutions_SingleApplication-%{version}.so
+%{_includedir}/QtSolutions
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/04/22 19:49:02 glen
+- new, from https://bugzilla.redhat.com/show_bug.cgi?id=581220
================================================================
More information about the pld-cvs-commit
mailing list