Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Education
qtsingleapplication
_service:set_version:qtsingleapplication.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:qtsingleapplication.spec of Package qtsingleapplication
# # spec file for package qtsingleapplication # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # # qtsingleapplication.spec # # Copyright (C) 2009-2010 Nand Ltd. # # norootforbuild Name: qtsingleapplication Version: 2.4.1git.1366034362 Release: 0 Url: http://qt.digia.com/Product/Qt-Add-Ons/Qt-Solutions-Archive/ Group: Development/Libraries/C and C++ License: BSD-3-Clause Summary: Provides support for applications that can be only started once per user Source0: %{name}-%{version}.tar.xz Source1: %{name}.prf Source2: qtsinglecoreapplication.prf Source10: %{name}-rpmlintrc # Don't build examples, Include qtsinglecoreapplication library in the build: Patch0: %{name}-build.diff # Patch1-2: fix_qtlocalpeer_include.patch # The library includes a duplicate of qtlockedfile. We link to it dynamically instead: Patch1: %{name}-dont-bundle-external-libs.patch Patch2: %{name}-qtlocalpeer_include_qtlock.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libqt4-devel BuildRequires: qtlockedfile-devel # BuildRequires: fdupes %if 0%{?suse_version} <= 1210 # Only needed for openSUSE <= 12.1; later it is pulled in by rpm-build. BuildRequires: xz %endif %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 Group: Development/Libraries/C and C++ Summary: Provides support for applications that can be only started once per user Requires: %{name} = %{version} Requires: libqt4-devel %description devel This package contains libraries and header files for developing applications that use QtSingleApplication or QtSingleCoreApplication. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build ./configure -library qmake QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags" %{__make} %{?_smp_mflags} VERBOSE=1 %install # libraries mkdir -p $RPM_BUILD_ROOT%{_libdir} cp -a lib/* $RPM_BUILD_ROOT%{_libdir} # headers mkdir -p $RPM_BUILD_ROOT%{_includedir}/QtSolutions cp -a \ src/qtsingleapplication.h \ src/QtSingleApplication \ src/qtsinglecoreapplication.h \ src/QtSingleCoreApplication \ $RPM_BUILD_ROOT%{_includedir}/QtSolutions # features mkdir -p $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features cp -a %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/qt4/mkspecs/features %__ln_s -f ../../images/qt-logo.png doc/html/images/ %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc README.TXT %{_libdir}/lib*.so.* %files devel %defattr(-,root,root) %doc doc examples %{_libdir}/lib*.so %{_includedir}/QtSolutions %{_datadir}/qt4/mkspecs/features/*.prf %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor