2023-07-15 12:15:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package libqt5-qtpbfimageformat
|
|
|
|
#
|
2024-02-22 08:23:09 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-07-15 12:15:25 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-02-22 08:23:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2023-07-15 12:15:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
|
|
|
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
Name: qt5-qtpbfimageformat
|
|
|
|
%else
|
|
|
|
Name: libqt5-qtpbfimageformat
|
|
|
|
%endif
|
2023-12-10 21:26:41 +00:00
|
|
|
Version: 3.0
|
2024-02-22 08:23:09 +00:00
|
|
|
Release: 0
|
2023-07-15 12:15:25 +00:00
|
|
|
Summary: Qt 5 PBF Image Format Plugin
|
|
|
|
License: LGPL-3.0-only
|
|
|
|
Group: Development/Libraries/X11
|
2024-02-22 08:23:09 +00:00
|
|
|
URL: https://github.com/tumic0/QtPBFImagePlugin
|
2023-07-26 19:04:34 +00:00
|
|
|
Source0: https://github.com/tumic0/QtPBFImagePlugin/archive/%{version}/QtPBFImagePlugin-%{version}.tar.gz
|
2023-07-26 08:59:53 +00:00
|
|
|
Patch0: pkgconfig.patch
|
2023-07-15 12:15:25 +00:00
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: make
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: libQt5Core-devel
|
|
|
|
BuildRequires: libQt5Gui-devel
|
|
|
|
BuildRequires: protobuf-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
%else
|
|
|
|
%if 0%{?fedora_version} || 0%{?centos_version} >= 800
|
|
|
|
BuildRequires: qt5-qtbase
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
2024-02-22 08:23:09 +00:00
|
|
|
BuildRequires: qt5-qtbase-gui
|
2023-07-15 12:15:25 +00:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
%if 0%{?centos_version} >= 800
|
|
|
|
BuildRequires: gdb-headless
|
2024-02-22 08:23:09 +00:00
|
|
|
BuildRequires: protobuf-devel
|
2023-07-15 12:15:25 +00:00
|
|
|
%else
|
|
|
|
BuildRequires: protobuf-lite-devel
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
# Mageia
|
|
|
|
BuildRequires: libqt5core-devel
|
|
|
|
BuildRequires: libqt5gui-devel
|
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: lib64protobuf-devel
|
|
|
|
BuildRequires: lib64zlib-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libprotobuf-devel
|
|
|
|
BuildRequires: libzlib-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Qt image plugin for displaying Mapbox vector tiles.
|
|
|
|
|
|
|
|
%prep
|
2024-02-22 08:23:09 +00:00
|
|
|
%autosetup -p0 -n QtPBFImagePlugin-%{version}
|
2023-07-15 12:15:25 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%{qmake5} pbfplugin.pro
|
|
|
|
%else
|
|
|
|
%{qmake_qt5} pbfplugin.pro
|
|
|
|
%endif
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
|
|
install -d 755 %{buildroot}/%{_datadir}/mime/packages
|
|
|
|
install -m 644 pkg/pbfplugin.xml %{buildroot}/%{_datadir}/mime/packages/%{name}.xml
|
|
|
|
|
|
|
|
%files
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%dir %{_libqt5_plugindir}
|
|
|
|
%{_libqt5_plugindir}/imageformats/libpbf.so
|
|
|
|
%else
|
|
|
|
%{_qt5_plugindir}/imageformats/libpbf.so
|
|
|
|
%endif
|
|
|
|
%{_datadir}/mime/packages/*
|
|
|
|
|
|
|
|
%changelog
|