File libqt5pas.spec of Package libqt5pas
Name: libQt5Pas1
Version: 2.15
Release: 1%{?dist}
License: LGPLv2+
Source: libqt5pas_3.6.orig.tar.xz
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
%endif
%if 0%{?suse_version} >= 1110
BuildRequires: libqt5-qtbase-devel >= 5.6.0, libqt5-qtx11extras-devel >= 5.6.0
%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
%setup -n libqt5pas
%patch0 -p1
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%build
qmake-qt5
%__make %{?_smp_mflags}
%install
%__make install INSTALL_ROOT=%buildroot
mkdir -p %buildroot/usr/share/pascal/qt5
cp qt5.pas %buildroot/usr/share/pascal/qt5
%clean
# make clean
%files
%defattr(-,root,root)
%{_libdir}/libQt5Pas.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libQt5Pas.so
/usr/share/pascal/
/usr/share/pascal/qt5/
%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)