84 lines
3.0 KiB
RPMSpec
84 lines
3.0 KiB
RPMSpec
|
Name: goldencheetah
|
||
|
Version: 3.5.20200614git
|
||
|
Release: 1mamba
|
||
|
Summary: A desktop application for cyclists and triathletes and coaches
|
||
|
Group: Graphical Desktop/Applications/Scientific
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.goldencheetah.org/
|
||
|
Source: https://github.com/GoldenCheetah/GoldenCheetah.git/master@6164dd963f154ce9a05661167b23c6c06b2649dd/GoldenCheetah-%{version}.tar.bz2
|
||
|
Source1: goldencheetah-gcconfig.pri
|
||
|
Source2: GoldenCheetah.desktop
|
||
|
Source3: goldencheetah.png
|
||
|
Source4: GoldenCheetah.appdata.xml
|
||
|
Patch0: goldencheetah-3.6-bison-3.7.patch
|
||
|
Patch1: goldencheetah-3.6-qwtconfig.pri.patch
|
||
|
Patch2: goldencheetah-3.5.20200614git-gcc-11.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: ldconfig
|
||
|
BuildRequires: libGL-devel
|
||
|
BuildRequires: libQt5WebEngine-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libgsl-devel
|
||
|
BuildRequires: libical-devel
|
||
|
BuildRequires: libkml-devel
|
||
|
BuildRequires: libqt5-devel
|
||
|
BuildRequires: libsamplerate-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libusb-compat-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
GoldenCheetah is a desktop application for cyclists and triathletes and coaches, providing a rich set of tools and models to analyse, track and predict performance, optimise aerodynamics and train indoors.
|
||
|
GoldenCheetah integrates with most popular cloud services like Strava and Todays Plan, imports data from bike computers, imports downloads from any website like TrainingPeaks and Garmin and will also connect to smart trainers using ANT+ and Bluetooth.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n GoldenCheetah-%{version}
|
||
|
#-D -T
|
||
|
#:<< _EOF
|
||
|
%patch0 -p1
|
||
|
%patch1 -p1
|
||
|
%patch2 -p1
|
||
|
|
||
|
%build
|
||
|
#:<< _EOF
|
||
|
lrelease-qt5 src/Resources/translations/*.ts
|
||
|
%{_qt5_qmake}
|
||
|
|
||
|
%make_build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -D -m0755 src/GoldenCheetah %{buildroot}%{_bindir}/GoldenCheetah
|
||
|
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/GoldenCheetah.desktop
|
||
|
install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/gc.png
|
||
|
install -D -m0644 %{SOURCE4} %{buildroot}%{_datadir}/metainfo/GoldenCheetah.apdata.xml
|
||
|
|
||
|
install -d -m 0755 %{buildroot}%{_datadir}/%{name}/translations
|
||
|
install -m 0644 src/Resources/translations/gc_{es,nl,zh-tw,pt-br,pt,ru,it,cs,ja,de,sv,fr,zh-cn}.qm \
|
||
|
%{buildroot}%{_datadir}/%{name}/translations
|
||
|
|
||
|
%find_lang %{name} --all-name --with-qt
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/GoldenCheetah
|
||
|
%{_datadir}/applications/GoldenCheetah.desktop
|
||
|
%{_datadir}/metainfo/GoldenCheetah.apdata.xml
|
||
|
%{_datadir}/pixmaps/gc.png
|
||
|
%doc COPYING
|
||
|
|
||
|
%changelog
|
||
|
* Thu Jan 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.20200614git-1mamba
|
||
|
- package created using the webbuild interface
|