File qconf.spec of Package qconf

# spec file for package qconf
# Copyright (c) 2016 SUSE LINUX 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

%if 0%{?suse_version} >= 1310
%define with_qt5 1

%define version_unconverted 20171222.61ec953300

Name:           qconf
Version:        20171222.61ec953300
Release:        0
Summary:        Configuration tool for qmake
License:        GPL-2.0
Group:          Development/Tools/Other
Source:         %{name}-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
%if 0%{?with_qt5}
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  libqt4-devel
%if 0%{?suse_version} < 1310
BuildRequires:  xz

QConf allows you to have a nice configure script for your qmake-based project.
It is intended for developers who don’t need (or want) to use the more complex
GNU autotools. With qconf/qmake, it is easy to maintain a cross-platform project
that uses a familiar configuration interface on unix.

%setup -q

export QMAKE_CXXFLAGS="%{optflags}"
./configure --prefix=%{_prefix}
make %{?jobs:-j%jobs}

make INSTALL_ROOT=%{buildroot} STRIP=true install