File qt5pas.spec of Package qt5pas
#
# spec file for package qt5pas
#
# Copyright (c) 2012 Asterios Dramis <asterios.dramis@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define min_qt_rel 5.1.1
%define so_ver 1
Name: qt5pas
Version: 2.6
Release: 0
Summary: Free Pascal Qt5 Bindings
License: LGPL-3.0
Group: System/Libraries
Url: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
Source0: http://users.telenet.be/Jan.Van.hijfte/qtforfpc/V%{version}/splitbuild-%{name}-V%{version}Alpha_Qt%{min_qt_rel}.tar.gz
Patch0: %{name}-PrintSupport.patch
BuildRequires: libqt5-qtbase-devel >= %{min_qt_rel}
BuildRequires: libqt5-qtx11extras-devel >= %{min_qt_rel}
BuildRequires: libQt5WebKit5-devel >= %{min_qt_rel}
BuildRequires: libQt5WebKitWidgets-devel >= %{min_qt_rel}
BuildRequires: libQt5PrintSupport-devel >= %{min_qt_rel}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Free Pascal Qt5 bindings allows Free Pascal to interface with the C++
Library Qt.
This bindings does not cover the whole Qt5 framework but only the classes
needed by the Cross Platform Lazarus IDE to use Qt as a Widget set.
%package devel
Summary: Development Files for qt5pas
Group: Development/Libraries/C and C++
Requires: libQt5Pas%{so_ver} = %{version}
%description devel
This package contain files needed for development with qt5pas.
%package -n libQt5Pas%{so_ver}
Summary: Free Pascal Qt5 Bindings
Group: System/Libraries
%description -n libQt5Pas%{so_ver}
The Free Pascal Qt5 bindings allows Free Pascal to interface with the C++
Library Qt.
This bindings does not cover the whole Qt5 framework but only the classes
needed by the Cross Platform Lazarus IDE to use Qt as a Widget set.
%prep
%setup -q -n splitbuild-%{name}-V%{version}Alpha_Qt%{min_qt_rel}
%patch0 -p1
%build
qmake-qt5 QMAKE_CFLAGS+="%{optflags}" QMAKE_CXXFLAGS+="%{optflags}" -config release Qt5Pas.pro
make %{?_smp_mflags}
%install
%make_install INSTALL_ROOT=%{buildroot}
install -Dpm 0644 qt5.pas %{buildroot}%{_datadir}/fpcsrc/packages/qt5/qt5.pas
%post -n libQt5Pas%{so_ver} -p /sbin/ldconfig
%postun -n libQt5Pas%{so_ver} -p /sbin/ldconfig
%files devel
%defattr(-,root,root,-)
%doc COPYING.TXT
%dir %{_datadir}/fpcsrc
%dir %{_datadir}/fpcsrc/packages
%dir %{_datadir}/fpcsrc/packages/qt5
%{_datadir}/fpcsrc/packages/qt5/qt5.pas
%{_libdir}/libQt5Pas.so
%files -n libQt5Pas%{so_ver}
%defattr(-,root,root,-)
%{_libdir}/libQt5Pas.so.%{so_ver}*
%changelog