File libqt5-qtimageformats.spec of Package libqt5-qtimageformats

# spec file for package libqt5-qtimageformats
# Copyright (c) 2020 SUSE LLC
# 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

%define qt5_snapshot 1
%define base_name libqt5
%define real_version 5.15.14
%define so_version 5.15.14
%define tar_version qtimageformats-everywhere-src-%{version}
Name:           libqt5-qtimageformats
Version:        5.15.14+kde7
Release:        0
Summary:        Qt 5 Image Format Plugins
License:        LGPL-3.0-only OR (GPL-2.0-only OR GPL-3.0-or-later)
Group:          Development/Libraries/X11
Source:         %{tar_version}.tar.xz
Source1:        baselibs.conf
BuildRequires:  libmng-devel
BuildRequires:  libtiff-devel
%if %{qt5_snapshot}
#to create the forwarding headers
BuildRequires:  perl
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(Qt5Gui) >= %{real_version}
BuildRequires:  pkgconfig(libwebp)
%requires_ge    libQt5Gui5

Qt is a set of libraries for developing applications.

This package contains base tools, like string, xml, and network

%package devel
Summary:        Qt Development Kit
Group:          Development/Libraries/X11
Requires:       %{name} = %{version}
Requires:       libmng-devel
Requires:       libtiff-devel
Requires:       pkgconfig(Qt5Gui) >= %{real_version}
Requires:       pkgconfig(libwebp)

%description devel
Qt is a set of libraries for developing applications.

This package contains qtimageformats.

You need this package, if you want to compile programs with qtimageformats.

%autosetup -p1 -n %{tar_version}

%if %{qt5_snapshot}
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
mkdir .git
%qmake5 -- -system-tiff -system-webp -mng


%license LICENSE.*
%dir %{_libqt5_archdatadir}
%dir %{_libqt5_plugindir}

%files devel
%license LICENSE.*

openSUSE Build Service is sponsored by