forked from pool/libqt5-qtpbfimageformat
Accepting request 1086889 from home:tumic:QtPBFImagePlugin
QtPBFImagePlugin under a "openSUSE-like" name (libqt5-qtpbfimageformat) so that it can be submited to Factory/Tumbleweed. Trying to do so now fails on the "Source and target package names must match" error. OBS-URL: https://build.opensuse.org/request/show/1086889 OBS-URL: https://build.opensuse.org/package/show/graphics/libqt5-qtpbfimageformat?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
QtPBFImagePlugin-2.4.tar.gz
Normal file
3
QtPBFImagePlugin-2.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7251c0cd4c42a8768ea451f55958e0271ca5fa850fea92d2840a3c0421c57202
|
||||
size 196525
|
66
debian.changelog
Normal file
66
debian.changelog
Normal file
@@ -0,0 +1,66 @@
|
||||
qt5-pbf-image-plugin (2.4) stable; urgency=low
|
||||
|
||||
* Fixed tile transparency issue.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Sat, 13 May 2023 08:48:44 +0200
|
||||
|
||||
qt5-pbf-image-plugin (2.3) stable; urgency=low
|
||||
|
||||
* Added support for Qt6.
|
||||
* Improved street names layout.
|
||||
* Added support for layout visibility style option.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Tue, 29 Dec 2020 10:42:53 +0100
|
||||
|
||||
qt5-pbf-image-plugin (2.2) stable; urgency=low
|
||||
|
||||
* Do not claim to support all GZIP files, just MVT (protobuf).
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Wed, 15 Apr 2020 23:10:37 +0200
|
||||
|
||||
qt5-pbf-image-plugin (2.1) stable; urgency=low
|
||||
|
||||
* Fixed broken interpolation of grayscale colors.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Sun, 26 Jan 2020 16:21:16 +0100
|
||||
|
||||
qt5-pbf-image-plugin (2.0) stable; urgency=low
|
||||
|
||||
* Now using a tile size of 512px to fit the data and styles.
|
||||
* Fixed broken downscaling.
|
||||
* Improved text layout and rendering.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Sat, 05 Oct 2019 18:57:56 +0200
|
||||
|
||||
qt5-pbf-image-plugin (1.4) stable; urgency=low
|
||||
|
||||
* Added support for text halo (outline).
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Sun, 28 Apr 2019 09:19:23 +0200
|
||||
|
||||
qt5-pbf-image-plugin (1.3) stable; urgency=low
|
||||
|
||||
* Added missing support for named (HTML) colors.
|
||||
* Use the official IANA MIME-type and extension (MVT).
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Sat, 09 Mar 2019 16:13:46 +0100
|
||||
|
||||
qt5-pbf-image-plugin (1.2) stable; urgency=low
|
||||
|
||||
* Improved text layout and rendering.
|
||||
* Improved rendering performance.
|
||||
* Minimal Qt version is now 5.4 (5.6 for HiDPI support)
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Tue, 01 Jan 2019 23:08:40 +0100
|
||||
|
||||
qt5-pbf-image-plugin (1.1) stable; urgency=low
|
||||
|
||||
* Fixed build on some Qt versions.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Wed, 05 Dec 2018 22:37:22 +0100
|
||||
|
||||
qt5-pbf-image-plugin (1.0) stable; urgency=low
|
||||
|
||||
* Initial version.
|
||||
|
||||
-- Martin Tuma <tumic@cbox.cz> Wed, 05 Dec 2018 22:09:57 +0100
|
1
debian.compat
Normal file
1
debian.compat
Normal file
@@ -0,0 +1 @@
|
||||
9
|
11
debian.control
Normal file
11
debian.control
Normal file
@@ -0,0 +1,11 @@
|
||||
Source: qt5-pbf-image-plugin
|
||||
Section: libs
|
||||
Priority: optional
|
||||
Maintainer: Martin Tuma <tumic@cbox.cz>
|
||||
Build-Depends: debhelper (>= 9), qtbase5-dev, qtbase5-dev-tools, qt5-qmake, libprotobuf-dev, protobuf-compiler, zlib1g-dev
|
||||
Homepage: https://github.com/tumic0/QtPBFImagePlugin
|
||||
|
||||
Package: qt5-pbf-image-plugin
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}
|
||||
Description: Qt image plugin for displaying Mapbox vector tiles.
|
84
debian.rules
Normal file
84
debian.rules
Normal file
@@ -0,0 +1,84 @@
|
||||
#!/usr/bin/make -f
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
export QT_SELECT := qt5
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
# Multi-arch
|
||||
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
||||
|
||||
build: build-stamp
|
||||
build-stamp:
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
qmake pbfplugin.pro
|
||||
make
|
||||
# --- end custom part for compiling
|
||||
|
||||
touch build-stamp
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
make clean || true
|
||||
# --- end custom part for cleaning up
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
|
||||
# Add here commands to install the package
|
||||
# The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/<nameOfPackage>
|
||||
mkdir -p /usr/src/packages/BUILD/debian/qt5-pbf-image-plugin/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/plugins/imageformats/
|
||||
mkdir -p /usr/src/packages/BUILD/debian/qt5-pbf-image-plugin/usr/share/mime/packages
|
||||
cp libpbf.so /usr/src/packages/BUILD/debian/qt5-pbf-image-plugin/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/plugins/imageformats/
|
||||
cp pkg/pbfplugin.xml /usr/src/packages/BUILD/debian/qt5-pbf-image-plugin/usr/share/mime/packages
|
||||
# --- end custom part for installing
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
# We have nothing to do by default.
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
# dh_installdebconf
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_installmenu
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
dh_installmime
|
||||
# dh_installinit
|
||||
dh_installcron
|
||||
dh_installman
|
||||
dh_installinfo
|
||||
# dh_undocumented
|
||||
dh_installchangelogs
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_perl
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install
|
66
libqt5-qtpbfimageformat.changes
Normal file
66
libqt5-qtpbfimageformat.changes
Normal file
@@ -0,0 +1,66 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 13 08:47:13 CEST 2023 - tumic@cbox.cz
|
||||
|
||||
- Update to version 2.4
|
||||
* Fixed tile transparency issue.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 29 10:38:04 CET 2020 - tumic@cbox.cz
|
||||
|
||||
- Update to version 2.3
|
||||
* Added support for Qt6.
|
||||
* Improved street names layout.
|
||||
* Added support for layout visibility style option.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 15 23:07:35 CEST 2020 - tumic@cbox.cz
|
||||
|
||||
- Update to version 2.2
|
||||
* Do not claim to support all GZIP files, just MVT (protobuf).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 26 16:21:02 CET 2020 - tumic@cbox.cz
|
||||
|
||||
- Update to version 2.1
|
||||
* Fixed broken interpolation of grayscale colors.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 5 18:54:25 CEST 2019 - tumic@cbox.cz
|
||||
|
||||
- Update to version 2.0
|
||||
* Now using a tile size of 512px to fit the data and styles.
|
||||
* Fixed broken downscaling.
|
||||
* Improved text layout and rendering.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 28 09:16:42 CEST 2019 - tumic@cbox.cz
|
||||
|
||||
- Update to version 1.4
|
||||
* Added support for text halo (outline).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 9 16:11:01 CET 2019 - tumic@cbox.cz
|
||||
|
||||
- Update to version 1.3
|
||||
* Added missing support for named (HTML) colors.
|
||||
* Use the official IANA MIME-type and extension (MVT).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 1 23:05:36 CET 2019 - tumic@cbox.cz
|
||||
|
||||
- Update to version 1.2
|
||||
* Improved text layout and rendering.
|
||||
* Improved rendering performance.
|
||||
* Minimal Qt version is now 5.4 (5.6 for HiDPI support)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 22:37:00 CET 2018 - tumic@cbox.cz
|
||||
|
||||
- Update to version 1.1
|
||||
* Fixed build on some Qt versions.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 22:09:22 CET 2018 - tumic@cbox.cz
|
||||
|
||||
- Update to version 1.0
|
||||
* Initial version.
|
113
libqt5-qtpbfimageformat.spec
Normal file
113
libqt5-qtpbfimageformat.spec
Normal file
@@ -0,0 +1,113 @@
|
||||
#
|
||||
# spec file for package libqt5-qtpbfimageformat
|
||||
#
|
||||
# Copyright (c) 2018 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
|
||||
|
||||
%if 0%{?fedora_version}
|
||||
Name: qt5-qtpbfimageformat
|
||||
%else
|
||||
Name: libqt5-qtpbfimageformat
|
||||
%endif
|
||||
Version: 2.4
|
||||
Release: 1
|
||||
Summary: Qt 5 PBF Image Format Plugin
|
||||
License: LGPL-3.0-only
|
||||
Group: Development/Libraries/X11
|
||||
Url: https://github.com/tumic0/QtPBFImagePlugin
|
||||
Source0: QtPBFImagePlugin-%{version}.tar.gz
|
||||
%if 0%{?centos_version} >= 800
|
||||
Patch0: protobuf.patch
|
||||
%endif
|
||||
|
||||
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-gui
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: zlib-devel
|
||||
%if 0%{?centos_version} >= 800
|
||||
BuildRequires: protobuf-devel
|
||||
BuildRequires: gdb-headless
|
||||
%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
|
||||
%setup -q -n QtPBFImagePlugin-%{version}
|
||||
%if 0%{?centos_version} >= 800
|
||||
%patch0
|
||||
%endif
|
||||
|
||||
%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
|
||||
|
||||
%post
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ -x /usr/bin/update-mime-database ]; then
|
||||
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%if 0%{?suse_version}
|
||||
%defattr(-,root,root,755)
|
||||
%dir %{_libqt5_archdatadir}
|
||||
%dir %{_libqt5_plugindir}
|
||||
%{_libqt5_plugindir}/imageformats/libpbf.so
|
||||
%else
|
||||
%{_qt5_plugindir}/imageformats/libpbf.so
|
||||
%endif
|
||||
%{_datadir}/mime/packages/*
|
||||
|
||||
%changelog
|
13
protobuf.patch
Normal file
13
protobuf.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git pbfplugin.pro pbfplugin.pro
|
||||
index 47fed67..5fedd39 100644
|
||||
--- pbfplugin.pro
|
||||
+++ pbfplugin.pro
|
||||
@@ -40,7 +40,7 @@ RESOURCES += pbfplugin.qrc
|
||||
DEFINES += QT_NO_DEPRECATED_WARNINGS
|
||||
|
||||
unix:!macx{
|
||||
- LIBS += -lprotobuf-lite \
|
||||
+ LIBS += -lprotobuf \
|
||||
-lz
|
||||
}
|
||||
win32 {
|
9
qtpbfplugin.dsc
Normal file
9
qtpbfplugin.dsc
Normal file
@@ -0,0 +1,9 @@
|
||||
Format: 1.0
|
||||
Source: qt5-pbf-image-plugin
|
||||
Version: 2.4-1
|
||||
Binary: qt5-pbf-image-plugin
|
||||
Maintainer: Martin Tuma <tumic@cbox.cz>
|
||||
Architecture: any
|
||||
Build-Depends: debhelper (>= 9), qtbase5-dev, qtbase5-dev-tools, qt5-qmake, libprotobuf-dev, protobuf-compiler, zlib1g-dev
|
||||
Files:
|
||||
00000000000000000000000000000000 0 QtPBFImagePlugin-2.4.tar.gz
|
Reference in New Issue
Block a user