File libqt6pas.spec of Package libqt6pas

Name:           libQt6Pas
Version:        6.2.10
Release:        1%{?dist}
License:        LGPLv2+
Group:          System Environment/Libraries
Summary:        Qt6 interface bindings for Pascal

BuildRequires:  libxml2-devel, gcc-c++
%if 0%{?fedora_version} >= 21
BuildRequires:  alef-fonts
%endif
%if 0%{?fedora_version} >= 11 || 0%{?centos_version} >= 8
BuildRequires:  qt6-qtbase-devel >= 6.2.3, lazarus-lcl-qt6
%endif
%if 0%{?suse_version} >= 1110
BuildRequires:  qt6-base-devel >= 6.2.3, lazarus >= 4.2
%endif

%description
Provides interface for Pascal applications
to the Qt6 C++ libraries.
This binding does not cover the whole Qt6 framework, it
just contains all classes needed to use Qt as a widgetset.

%package devel
Summary:        Qt6 interface bindings - development files
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description devel
Provides interface for Pascal applications
to the Qt6 C++ libraries.
This binding does not cover the whole Qt6 framework, it
just contains all classes needed to use Qt as a widgetset.

This package contains the development files.

%prep
cp -rp %{_libdir}/lazarus/lcl/interfaces/qt6/cbindings/* ./

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%build
#qmake-qt6
qmake6

%__make %{?_smp_mflags}

%install
%__make install INSTALL_ROOT=%buildroot

%clean
 # make clean

%files
%defattr(-,root,root)
%{_libdir}/libQt6Pas.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libQt6Pas.so

%changelog
* Sat Oct 01 2011 Alexander Koblov <alexx2000@mail.ru>
 - Update to version 2.4

* Mon Jan 24 2011 Alexander Koblov <alexx2000@mail.ru>
 - Fix building under Fedora >= 14

* Thu Apr 08 2010 Matthias Klumpp <matthias@nlinux.org>
 - Initial release (V.2.1)
openSUSE Build Service is sponsored by