Added qt5pas subpackage

Since 1.8 Lazarus contains qt5pas sources, instead of having a separate package,
we can add it to Lazarus as a subpackage.
f39
Vasiliy Glazov 7 years ago committed by Artur Iwicki
parent f13d8c5f0e
commit cf9b2b7da9

@ -14,6 +14,8 @@ patch2: disable_pascalscript_powerpc64.diff
BuildRequires: fpc, binutils, glibc-devel, desktop-file-utils, fpc-src, gtk2-devel
BuildRequires: perl-generators
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
Requires: fpc-src, fpc, binutils, glibc-devel, gdb, gtk2-devel
ExclusiveArch: %{fpc_arches}
@ -22,6 +24,20 @@ ExclusiveArch: %{fpc_arches}
A free and open-source RAD tool for Free Pascal using the Lazarus
Component Library - LCL, which is also included in this package.
%package -n qt5pas
Summary: Qt 5 bindings for pascal
%description -n qt5pas
Qt 5 bindings for pascal from Lazarus.
%package -n qt5pas-devel
Summary: Development files for qt5pas
Requires: qt5pas%{?_isa} = %{version}-%{release}
%description -n qt5pas-devel
The qt5pas-devel package contains libraries and header files for
developing applications that use qt5pas.
%prep
%setup -c -q
%patch0 -p0
@ -44,6 +60,11 @@ cd ..
make bigide OPT='-gl -gw'
make tools OPT='-gl -gw'
pushd lcl/interfaces/qt5/cbindings/
%{qmake_qt5}
%make_build
popd
%install
rm -rf %{buildroot}
@ -60,6 +81,10 @@ sed 's#__LAZARUSDIR__#%{_libdir}/%{name}#;s#__FPCSRCDIR__#%{_datadir}/fpcsrc#' \
chmod 755 %{buildroot}%{_libdir}/%{name}/components/lazreport/tools/localize.sh
pushd lcl/interfaces/qt5/cbindings/
%make_install INSTALL_ROOT=%{buildroot}
popd
%post
/usr/bin/update-desktop-database -q &> /dev/null || :
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
@ -91,6 +116,14 @@ fi
%config(noreplace) %{_sysconfdir}/lazarus/environmentoptions.xml
%{_mandir}/*/*
%files -n qt5pas
%license lcl/interfaces/qt5/cbindings/COPYING.TXT
%doc lcl/interfaces/qt5/cbindings/README.TXT
%{_libdir}/libQt5Pas.so.*
%files -n qt5pas-devel
%{_libdir}/libQt5Pas.so
%changelog
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

Loading…
Cancel
Save