File libqt5-qtimageformats.spec of Package libqt5-qtimageformats

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

%define qt5_snapshot 0

Name:           libqt5-qtimageformats
Version:        5.10.1
Release:        0
Summary:        Qt 5 Image Format Plugins
License:        LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group:          Development/Libraries/X11
%define base_name libqt5
%define real_version 5.10.1
%define so_version 5.10.1
%define tar_version qtimageformats-everywhere-src-5.10.1
Source1:        baselibs.conf
# PATCH-FIX-OPENSUSE jas_version.patch
Patch0:         jas_version.patch
BuildRequires:  libjasper-devel
BuildRequires:  libmng-devel
BuildRequires:  libtiff-devel
BuildRequires:  pkgconfig(Qt5Gui) >= %{version}
BuildRequires:  pkgconfig(libwebp)
%if %qt5_snapshot
#to create the forwarding headers
BuildRequires:  perl
BuildRequires:  xz
%requires_ge libQt5Gui5

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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:       libjasper-devel
Requires:       libmng-devel
Requires:       libtiff-devel
Requires:       pkgconfig(Qt5Gui) >= %{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.

%setup -q -n %{tar_version}
%patch0 -p1

%if %qt5_snapshot
#force the configure script to generate the forwarding headers (it checks whether .git directory exists)
mkdir .git


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

%files devel
%doc LICENSE.*