update credits
[librepilot.git] / package / linux / rpmspec.in
blob34a2488d60a07b3eea47ca0d0dcfe1b514765826
1 Name:           <NAME>
2 Summary:        <SUMMARY>
3 Version:        <VERSION>
4 Release:        <RELEASE>%{?dist}
6 Group:          Applications/Scientific
7 License:        GPLv3+
8 URL:            <URL>
10 Source0:        <SOURCE0>
11 Source1:        <SOURCE1>
13 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16 BuildRequires:  libusbx-devel
17 BuildRequires:  mesa-libGL-devel
18 BuildRequires:  qt5-qtbase-devel
19 BuildRequires:  qt5-qtdeclarative-devel
20 BuildRequires:  qt5-qtmultimedia-devel
21 BuildRequires:  qt5-qtscript-devel
22 BuildRequires:  qt5-qtserialport-devel
23 BuildRequires:  qt5-qtsvg-devel
24 BuildRequires:  qt5-qttools-devel
25 BuildRequires:  qt5-qttranslations
26 BuildRequires:  OpenSceneGraph-devel
27 BuildRequires:  osgearth-devel
28 BuildRequires:  dwz
29 BuildRequires:  pkgconfig
30 BuildRequires:  python
31 BuildRequires:  SDL-devel
32 BuildRequires:  systemd-devel
34 Requires:       libusbx
35 Requires:       SDL
36 Requires:       qt5-qtquickcontrols
37 Requires:       qt5-qtdeclarative
38 Requires:       qt5-qtmultimedia
39 Requires:       qt5-qtscript
40 Requires:       qt5-qtserialport
41 Requires:       qt5-qtsvg
42 Requires:       OpenSceneGraph-libs
43 Requires:       osgearth
46 %description
47 <DESCRIPTION>
49 %global debug_package %{nil}
51 %prep
52 %setup -q -T -a 1 -c -n <ARCHIVE_PREFIX>/build
53 %setup -q -D -n <ARCHIVE_PREFIX>
56 %build
57 make config_new                             \
58     enable-udev-rules=yes                   \
59     libbasename=%{_lib}                     \
60     prefix=%{_prefix}                       \
61     QMAKE=qmake-qt5                         \
62     udevrulesdir=%{_udevrulesdir}           \
63     WITH_PREBUILT_FW=$(pwd)/build/firmware
65 make %{?_smp_mflags} fw_resource gcs
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 make install DESTDIR=$RPM_BUILD_ROOT
73 %clean
74 rm -rf $RPM_BUILD_ROOT
77 %post -p /sbin/ldconfig
78 %postun -p /sbin/ldconfig
81 %files
82 %defattr(-,root,root)
83 %doc README.md CREDITS.txt WHATSNEW.txt
84 %doc GPLv3.txt
85 %{_bindir}/*
86 %{_udevrulesdir}/*
87 %{_datadir}/*
88 %{_libdir}/*
91 %changelog