2015-07-31 20:17:31 +02:00
|
|
|
Name: <NAME>
|
2015-10-08 23:33:16 +02:00
|
|
|
Summary: <SUMMARY>
|
2015-07-31 20:17:31 +02:00
|
|
|
Version: <VERSION>
|
2015-08-01 10:30:28 +02:00
|
|
|
Release: <RELEASE>%{?dist}
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
Group: Applications/Scientific
|
|
|
|
License: GPLv3+
|
2015-10-08 23:33:16 +02:00
|
|
|
URL: <URL>
|
2015-07-26 14:22:28 +02:00
|
|
|
|
2015-08-26 19:38:44 +02:00
|
|
|
Source0: <SOURCE0>
|
|
|
|
Source1: <SOURCE1>
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: libusbx-devel
|
|
|
|
BuildRequires: mesa-libGL-devel
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: qt5-qtdeclarative-devel
|
|
|
|
BuildRequires: qt5-qtmultimedia-devel
|
|
|
|
BuildRequires: qt5-qtquick1-devel
|
|
|
|
BuildRequires: qt5-qtscript-devel
|
|
|
|
BuildRequires: qt5-qtserialport-devel
|
|
|
|
BuildRequires: qt5-qtsvg-devel
|
|
|
|
BuildRequires: qt5-qttools-devel
|
2015-07-31 20:17:31 +02:00
|
|
|
BuildRequires: qt5-qttranslations
|
2016-05-14 15:51:02 +02:00
|
|
|
BuildRequires: OpenSceneGraph-devel
|
2016-08-16 22:12:11 +02:00
|
|
|
BuildRequires: osgearth-devel
|
2015-07-26 14:22:28 +02:00
|
|
|
BuildRequires: dwz
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
|
|
|
|
Requires: libusbx
|
|
|
|
Requires: SDL
|
2015-07-31 20:17:31 +02:00
|
|
|
Requires: qt5-qtquickcontrols
|
2015-07-26 14:22:28 +02:00
|
|
|
Requires: qt5-qtdeclarative
|
|
|
|
Requires: qt5-qtmultimedia
|
|
|
|
Requires: qt5-qtscript
|
|
|
|
Requires: qt5-qtserialport
|
|
|
|
Requires: qt5-qtsvg
|
2016-05-14 15:51:02 +02:00
|
|
|
Requires: OpenSceneGraph-libs
|
2016-08-16 22:12:11 +02:00
|
|
|
Requires: osgearth
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
2015-10-08 23:33:16 +02:00
|
|
|
<DESCRIPTION>
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
%prep
|
2015-08-26 19:38:44 +02:00
|
|
|
%setup -q -T -a 1 -c -n <ARCHIVE_PREFIX>/build
|
|
|
|
%setup -q -D -n <ARCHIVE_PREFIX>
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2015-08-26 19:38:44 +02:00
|
|
|
make config_new \
|
|
|
|
enable-udev-rules=yes \
|
|
|
|
libbasename=%{_lib} \
|
|
|
|
prefix=%{_prefix} \
|
|
|
|
QMAKE=qmake-qt5 \
|
|
|
|
udevrulesdir=%{_udevrulesdir} \
|
2016-08-16 23:54:30 +02:00
|
|
|
WITH_PREBUILT_FW=$(pwd)/build/firmware
|
2015-08-05 15:52:00 +02:00
|
|
|
|
2016-09-22 09:04:36 +02:00
|
|
|
make %{?_smp_mflags} fw_resource gcs
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2015-08-26 19:38:44 +02:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2015-08-05 23:43:09 +02:00
|
|
|
%defattr(-,root,root)
|
2015-08-01 10:30:28 +02:00
|
|
|
%doc README.md CREDITS.txt WHATSNEW.txt
|
|
|
|
%doc GPLv3.txt
|
2016-05-14 17:24:44 +02:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_udevrulesdir}/*
|
|
|
|
%{_datadir}/*
|
|
|
|
%{_libdir}/*
|
2015-07-26 14:22:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2015-08-05 23:43:09 +02:00
|
|
|
|