Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b2e2598f3429e290a0cc6b0101b0d925 > files > 2

qtgamepad5-5.12.6-1.mga7.src.rpm

%ifarch %{arm}
%define build_docs     0
%else
%define build_docs     1
%endif

%define qtmajor 5
%define qtminor 12
%define qtsubminor 6

%define rel 1

%define qtversion      %{qtmajor}.%{qtminor}.%{qtsubminor}

%define libqtgamepad   %mklibname qt5gamepad %{qtmajor}
%define libqtgamepad_d %mklibname qt5gamepad -d

%define qttarballdir   qtgamepad-everywhere-src-%{qtversion}

Name:           qtgamepad5
Version:        %{qtversion}
Release:        %mkrel %{rel}
Summary:        Qt%{qtmajor} Gamepad component
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License:        LGPLv2 with exceptions or GPLv3 with exceptions
Group:          Development/KDE and Qt
Url:            https://www.qt.io/
Source0:        http://download.qt.io/official_releases/qt/%{qtmajor}.%{qtminor}/%{version}/submodules/%{qttarballdir}.tar.xz

BuildRequires:  pkgconfig(Qt5Core) >= %{version}
BuildRequires:  pkgconfig(Qt5Gui) >= %{version}
BuildRequires:  pkgconfig(Qt5Qml) >= %{version}
BuildRequires:  pkgconfig(Qt5Quick) >= %{version}
BuildRequires:  pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:  pkgconfig(xrender)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  %{_lib}qt5devicediscoverysupport-static-devel

%description
Qt%{qtmajor} Gamepad provides a way to display web content in a QML application
without necessarily including a full web browser stack by using native APIs
where it makes sense.

%files
%license LICENSE.GPL LICENSE.LGPLv3
%{_qt5_qml}/QtGamepad/
%{_qt5_plugindir}/gamepads/

#------------------------------------------------------------------------------

%if %{build_docs}
%package        doc
Summary:        QtGamepad%{qtmajor} APIs and tools docs
Group:          Documentation
BuildArch:      noarch
BuildRequires:  qttools5
# This one is required to build QCH-format documentation
# for APIs and tools in this package set
BuildRequires:  qttools5-assistant
Recommends:     qttools5-assistant

%description doc
Documentation for APIs and tools in QtGamepad%{qtmajor} package for
use with Qt Assistant.

%files doc
%{_qt5_docdir}/qtgamepad.qch
%{_qt5_docdir}/qtgamepad/
%endif

#------------------------------------------------------------------------------

%package -n     %{libqtgamepad}
Summary:        Qt%{qtmajor} Gamepad Component Library
Group:          System/Libraries
Requires:       %{name} = %{version}

%description -n %{libqtgamepad}
Qt%{qtmajor} Gamepad Component Library.

%files -n %{libqtgamepad}
%{_qt5_libdir}/libQt5Gamepad.so.%{qtmajor}{,.*}

#------------------------------------------------------------------------------

%package -n     %{libqtgamepad_d}
Summary:        Devel files needed to build apps based on QtGamepad
Group:          Development/KDE and Qt
Requires:       %{libqtgamepad} = %{version}
Provides:       libqtgamepad5-devel = %{version}
Provides:       libqt5gamepad-devel = %{version}
Provides:       qtgamepad5-devel = %{version}
Provides:       qt5gamepad-devel = %{version}

%description -n %{libqtgamepad_d}
Devel files needed to build apps based on Qt Gamepad.

%files -n %{libqtgamepad_d}
%{_qt5_includedir}/QtGamepad/
%{_qt5_libdir}/libQt5Gamepad.so
%{_qt5_libdir}/pkgconfig/Qt5Gamepad.pc
%{_qt5_libdir}/cmake/Qt5Gamepad/
%{_qt5_libdir}/*.prl
%{_qt5_prefix}/mkspecs/modules/*.pri
%{_qt5_examplesdir}/gamepad/

#------------------------------------------------------------------------------

%prep
%setup -q -n qtgamepad-everywhere-src-%{qtversion}

%build
%qmake_qt5

%make_build

%if %{build_docs}
%__make docs
%endif

%install
%make_install INSTALL_ROOT=%{buildroot}

%if %{build_docs}
%make_install install_docs INSTALL_ROOT=%{buildroot}
%endif

# .la files, die, die, die.
find %{buildroot} -name '*.la' -delete


%changelog
* Mon Nov 18 2019 daviddavid <daviddavid> 5.12.6-1.mga7
+ Revision: 1461707
- New version 5.12.6

* Mon Apr 01 2019 umeabot <umeabot> 5.12.2-2.mga7
+ Revision: 1384395
- Qt5 Rebuild

* Mon Mar 18 2019 neoclust <neoclust> 5.12.2-1.mga7
+ Revision: 1378533
- New version 5.12.2

* Fri Feb 01 2019 neoclust <neoclust> 5.12.1-1.mga7
+ Revision: 1362278
- New version 5.12.1

* Sun Dec 09 2018 neoclust <neoclust> 5.12.0-1.mga7
+ Revision: 1339133
- New version 5.12.0

* Tue Oct 09 2018 neoclust <neoclust> 5.11.2-1.mga7
+ Revision: 1319022
- New version 5.11.2

* Sun Sep 23 2018 umeabot <umeabot> 5.11.1-2.mga7
+ Revision: 1300704
- Mageia 7 Mass Rebuild

* Sun Jul 29 2018 neoclust <neoclust> 5.11.1-1.mga7
+ Revision: 1245809
- New version 5.11.1

* Fri May 25 2018 neoclust <neoclust> 5.11.0-1.mga7
+ Revision: 1232108
- New version 5.11.0

* Mon Apr 09 2018 neoclust <neoclust> 5.10.1-1.mga7
+ Revision: 1216503
- New version 5.10.1

* Fri Mar 02 2018 neoclust <neoclust> 5.9.4-1.mga7
+ Revision: 1206102
- New version 5.9.4

* Wed Dec 27 2017 neoclust <neoclust> 5.9.3-1.mga7
+ Revision: 1185555
- New version 5.9.3

* Wed Aug 09 2017 daviddavid <daviddavid> 5.9.1-1.mga7
+ Revision: 1139467
- initial package qtgamepad5