%global realname qlementine %global gitdate 20260414 %global gitrev aea6ea2 %global gitrel %{gitdate}git%{gitrev} Name: qt6-%{realname} Version: 1.4.2.0 Release: 2%{?dist}%{?gitrel:.%{gitrel}} Summary: A modern QStyle for desktop Qt6 applications, released under the MIT license. License: MIT URL: https://oclero.github.io/qlementine/ Source0: %{realname}-%{version}%{?gitrel:-%{gitrel}}.tar.xz BuildRequires: pkgconfig(Qt6), pkgconfig(Qt6Core), pkgconfig(Qt6Widgets), pkgconfig(Qt6Svg) Requires(post,postun): /sbin/ldconfig %description %{summary} %package devel Summary: Development files for %{realname} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %{?gitrel:-n %{realname}} sed -i 's/STATIC/SHARED/' lib/CMakeLists.txt %build %cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release . %cmake_build %install %cmake_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %{?ldconfig_scriptlets} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE %doc CHANGELOG.md README.md docs/* %{_libdir}/*.so.* %files devel %{_includedir}/oclero %{_libdir}/*.so %{_libdir}/cmake/%{realname} %changelog * Wed Aug 12 2026 Andrea Santilli - 1.4.2.0-1.20260414gitaea6ea2 - Minor updates to the specfile. * Tue Aug 11 2026 Andrea Santilli - 1.4.2.0-1.20260414gitaea6ea2 - Initial RPM release. - Force build for shared library instead of static.