Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:pascom
qtcreator-plugin-dev
qtcreator-plugin-dev.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qtcreator-plugin-dev.spec of Package qtcreator-plugin-dev
# # spec file for package qtcreator-plugin-dev # # Copyright (c) 2017-2020 COMBES Pascal <pascom@orange.fr> # # 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/ # Name: qtcreator-plugin-dev Version: 0.0.16 Release: 0 Summary: Developper plugin for Qt Creator a plugin-based C++ IDE License: GPL-3.0 Group: Development/Tools/IDE Url: https://github.com/pasccom/QtcDevPlugin Source0: QtcDevPlugin-%{version}.tar.gz #Source999: qtcreator-plugin-dev-rpmlintrc %define qtc_version 4.14.0 BuildRequires: qtcreator-lib-utils-devel >= %{qtc_version} BuildRequires: qtcreator-lib-extensionsystem-devel >= %{qtc_version} BuildRequires: qtcreator-plugin-core-devel >= %{qtc_version} BuildRequires: qtcreator-plugin-projectexplorer-devel >= %{qtc_version} BuildRequires: qtcreator-plugin-qmakeprojectmanager-devel >= %{qtc_version} # Test if distribution is openSUSE Tumbleweed or Leap >= 15.2 %if ((0%{?sle_version} == 0) || (0%{?sle_version} >= 150200)) BuildRequires: syntax-highlighting-devel >= 5.58.0 %{echo:Using system syntax-highlighting} %bcond_without system_syntax_highlighting %else %{echo:Using embedded syntax-highlighting} %bcond_with system_syntax_highlighting %endif %description This package contains a plugin to efficiently develop plugins for Qt Creator. The plugin defines new run configurations specifically tailored to run or test Qt Creator with the current version of the plugin, all older versions having been shadowed during the run. For more information, see https://github.com/pasccom/QtcDevPlugin %prep # Library output path: %define ide_library_basename lib %if "%{_lib}"=="lib64" %define ide_library_basename lib64 %endif %setup -n QtcDevPlugin-%{version} mv QtcDevPlugin_dependencies.pri QtcDevPlugin-%{version}_dependencies.pri cat > QtCreator.local.pri <<EOF QTCREATOR_SOURCES=/usr/include/qtcreator IDE_BUILD_TREE=/usr IDE_LIBRARY_BASENAME=%{ide_library_basename} EOF cat > QtcDevPlugin.local.pri <<EOF USE_USER_DESTDIR= EOF %build # Get newest compiler available: %define qmake_cc %(gcc-5 -v && echo "gcc-5" || echo "gcc") %define qmake_cxx %(g++-5 -v && echo "gcc-5" || echo "gcc") # Use system syntax-highlighting if possible: %if %{with system_syntax_highlighting} export KSYNTAXHIGHLIGHTING_LIB_DIR=%{_libdir} export KSYNTAXHIGHLIGHTING_INCLUDE_DIR=%{_includedir}/KF5/KSyntaxHighlighting %endif qmake-qt5 -r QtcDevPlugin.pro \ CONFIG+=debug \ QMAKE_CC="%{qmake_cc}" \ QMAKE_CXX="%{qmake_cxx}" \ QMAKE_CFLAGS+="%optflags" \ QMAKE_CXXFLAGS+="%optflags" make %{?_smp_mflags} %install make install INSTALL_ROOT=%{buildroot}/ # Install translations manually (I don't know why they are not installed automatically) mkdir -p %{buildroot}%{_datadir}/qtcreator/translations/ install -m 644 -p bin/qtcdevplugin_*.qm %{buildroot}%{_datadir}/qtcreator/translations/ %files %defattr(-, root, root) # The plugin %dir %{_libdir}/qtcreator %dir %{_libdir}/qtcreator/plugins %{_libdir}/qtcreator/plugins/libQtcDevPlugin.so # The translation files %dir %{_datadir}/qtcreator %dir %{_datadir}/qtcreator/translations %{_datadir}/qtcreator/translations/qtcdevplugin_en.qm %{_datadir}/qtcreator/translations/qtcdevplugin_fr.qm %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