File libqt5pas.spec of Package libqt5pas

Name:           libQt5Pas1
%if 0%{?sle_version} >= 150600
Version:        4.2
%else
Version:        2.16
%endif
Release:        1%{?dist}
License:        LGPLv2+
#Source:         libqt5pas_3.0.orig.tar.gz
Patch0:         qt5pas.patch
Group:          System Environment/Libraries
Summary:        Qt5 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:  qt5-qtbase-devel >= 5.6.0, qt5-qtx11extras-devel >= 5.6.0, lazarus
%endif
%if 0%{?suse_version} >= 1110
BuildRequires:  libqt5-qtbase-devel >= 5.6.0, libqt5-qtx11extras-devel >= 5.6.0, lazarus
%endif

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

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

%description devel
Provides interface for Pascal applications
to the Qt5 C++ libraries.
This binding does not cover the whole Qt5 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/qt5/cbindings/* ./

%if 0%{?suse_version} > 1600 || 0%{?sle_version} == 0
%patch -P 0 -p1
%else
%patch0 -p1
%endif

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

%build
qmake-qt5

%__make %{?_smp_mflags}

%install
%__make install INSTALL_ROOT=%buildroot

%clean
 # make clean

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

%files devel
%defattr(-,root,root)
%{_libdir}/libQt5Pas.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