Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37526710
en ru br
ALT Linux repos
S:1.23.0-alt1

Group :: Development/Tools
RPM: qbs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define so_version 1

Name: qbs
Version: 1.23.0
Release: alt1

Summary: Qt Build Suite
License: LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later) AND (LGPL-2.1-only OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1) AND GPL-3.0-only WITH Qt-GPL-exception-1.0
Group: Development/Tools

Url: https://qt-project.org/wiki/Qbs
Packager: Nazarov Denis <nenderus at altlinux.org>

# https://download.qt.io/official_releases/%name/%version/%name-src-%version.tar.gz

Source: %name-src-%version.tar

BuildRequires: libstdc++-devel-static
BuildRequires: qt5-script-devel
BuildRequires: rpm-build-python3

Conflicts: qt-creator-core

%add_python3_path %_datadir/%name/python/biplist
%add_python3_path %_datadir/%name/python/ds_store
%add_python3_path %_datadir/%name/python/mac_alias

%description
The Qt Build Suite (Qbs) is a tool that helps simplify the build process for
developing projects across multiple platforms. Qbs can be used for any software
project, whether it is written in Qt or not.

Qbs is an all-in-one tool that generates a build graph from a high-level
project description (like qmake or cmake) and additionally undertakes the task
of executing the commands in the low-level build graph (like make).

%package common
Summary: Common files for %name
Group: Development/Tools
BuildArch: noarch

%description common
Provides common files for %name

%package -n lib%{name}core%so_version
Summary: Shared library for %name
Group: System/Libraries
Requires: %name-common = %EVR

%description -n lib%{name}core%so_version
Provides shared library for %name

%package -n lib%{name}core-devel
Summary: Development files for %name
Group: Development/Tools
Provides: %name-devel = %EVR
Obsoletes: %name-devel <= 1.20.1-alt1

%description -n lib%{name}core-devel
This package is required to build native/C++ extensions for %name

%package examples
Summary: Examples for the usage of %name
Group: Development/Tools
BuildArch: noarch

%description examples
Provides examples for using the %name

%prep
%setup -n %name-src-%version

%build
export LD_LIBRARY_PATH=`pwd`/lib
%qmake_qt5 -r %name.pro \
QBS_INSTALL_PREFIX=%_prefix \
QBS_LIB_INSTALL_DIR=%_libdir \
QBS_LIBEXEC_INSTALL_DIR=%_libexecdir/%name \
QBS_PLUGINS_INSTALL_DIR=%_libdir \
QBS_RELATIVE_LIBEXEC_PATH=../lib/%name \
QBS_LIBEXEC_DESTDIR=../../../lib/%name \
CONFIG+=disable_rpath \
CONFIG+=nostrip \
QMAKE_LFLAGS="-Wl,--as-needed"

%make_build

%install
%install_qt5_base
%__rm %buildroot%_libexecdir/%name/dmgbuild

%files
%doc README.md
%_bindir/%name
%_bindir/%name-config
%_bindir/%name-config-ui
%_bindir/%name-create-project
%_bindir/%name-setup-android
%_bindir/%name-setup-qt
%_bindir/%name-setup-toolchains
%_libdir/%name
%_libexecdir/%name
%_man1dir/%name.1*

%files common
%dir %_datadir/%name
%_datadir/%name
%exclude %_datadir/%name/examples

%files -n lib%{name}core%so_version
%_libdir/lib%{name}core.so.*

%files -n lib%{name}core-devel
%_includedir/%name
%_libdir/lib%{name}core.prl
%_libdir/lib%{name}core.so

%files examples
%_datadir/%name/examples

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin