Some paths contain the full version, so use the macro to allow for
smooth updates to new upstream releases. Note that there are still
places where the major version is used explicitly - this is intentional
to avoid accidental soname bumps (which should happen only between major
versions).
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Now the only thing needed to get a successful build on EPEL8 is to turn
off Qt4 and Qt6 subpackages there by default.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Provide conditionals for building for only a subset of Qt versions. This
will be useful for implementing EPEL8 support.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Build and run the provided tests in %check. The locale needs to be
overriden to C.UTF-8 to make the Qt4 tests pass due to an issue with
Japanese character handling.
It is possible to disable the tests by building with `--without test`
(for example `fedpkg mockbuild --without test`).
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Due to a years-old stupid limitation of rpm [1], it is not possible to
upgrade between directory and symlink without ugly hacks, so instead of
symlinking the include directory, only symlink the individual include
files inside it.
Without this fix, upgrading quazip-devel or quazip-qt5-devel will fail.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=447156
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
It turns out that version 1.1 supports building a Qt6 version as well
and Fedora already has Qt6 devel packages, so start building also the
Qt6 version for fun and profit.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Current upstream version has changed the name of the library, include
paths, and CMake module names. To allow other packages to still build
using the old paths, add compat symlinks and the old CMake modules to
the -devel subpackages. These compat hacks can be removed once all
dependent packages have switched to use the new pkgconfig or CMake
files.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>