fix spec formatting

This commit is contained in:
Miroslav Lichvar 2023-05-11 14:14:33 +02:00
parent 145db042da
commit b8fb2e1a3a

View File

@ -17,19 +17,19 @@ Patch1: gpsd-apistatus.patch
BuildRequires: dbus-devel BuildRequires: dbus-devel
BuildRequires: dbus-glib-devel BuildRequires: dbus-glib-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: xmlto BuildRequires: xmlto
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: gtk3-devel BuildRequires: gtk3-devel
BuildRequires: python3-scons BuildRequires: python3-scons
BuildRequires: python3-gobject BuildRequires: python3-gobject
BuildRequires: python3-cairo BuildRequires: python3-cairo
BuildRequires: python3-pyserial BuildRequires: python3-pyserial
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils
BuildRequires: bluez-libs-devel BuildRequires: bluez-libs-devel
BuildRequires: pps-tools-devel BuildRequires: pps-tools-devel
BuildRequires: /usr/bin/c++ BuildRequires: /usr/bin/c++
BuildRequires: systemd BuildRequires: systemd
%if %{with_qt} %if %{with_qt}
BuildRequires: qt-devel BuildRequires: qt-devel
%endif %endif
@ -37,8 +37,8 @@ BuildRequires: qt-devel
BuildRequires: libusb1-devel BuildRequires: libusb1-devel
%endif %endif
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: udev Requires: udev
%{?systemd_requires} %{?systemd_requires}
%description %description
@ -114,34 +114,34 @@ sed -i 's|systemctl daemon-reload|true|' SConscript
export CCFLAGS="%{optflags}" export CCFLAGS="%{optflags}"
export LINKFLAGS="%{__global_ldflags}" export LINKFLAGS="%{__global_ldflags}"
# breaks with %{_smp_mflags} # breaks with %%{_smp_mflags}
scons \ scons \
dbus_export=yes \ dbus_export=yes \
systemd=yes \ systemd=yes \
%if %{with_qt} %if %{with_qt}
libQgpsmm=yes \ libQgpsmm=yes \
%else %else
libQgpsmm=no \ libQgpsmm=no \
%endif %endif
debug=yes \ debug=yes \
leapfetch=no \ leapfetch=no \
prefix="" \ prefix="" \
sysconfdif=%{_sysconfdir} \ sysconfdif=%{_sysconfdir} \
bindir=%{_bindir} \ bindir=%{_bindir} \
includedir=%{_includedir} \ includedir=%{_includedir} \
libdir=%{_libdir} \ libdir=%{_libdir} \
sbindir=%{_sbindir} \ sbindir=%{_sbindir} \
mandir=%{_mandir} \ mandir=%{_mandir} \
mibdir=%{_docdir}/gpsd \ mibdir=%{_docdir}/gpsd \
docdir=%{_docdir}/gpsd \ docdir=%{_docdir}/gpsd \
pkgconfigdir=%{_libdir}/pkgconfig \ pkgconfigdir=%{_libdir}/pkgconfig \
icondir=%{_datadir}/gpsd \ icondir=%{_datadir}/gpsd \
udevdir=$(dirname %{_udevrulesdir}) \ udevdir=$(dirname %{_udevrulesdir}) \
unitdir=%{_unitdir} \ unitdir=%{_unitdir} \
target_python=python3 \ target_python=python3 \
python_shebang=%{python3} \ python_shebang=%{python3} \
python_libdir=%{python3_sitearch} \ python_libdir=%{python3_sitearch} \
build build
%install %install
# avoid rebuilding # avoid rebuilding