goldencheetah/goldencheetah.spec

97 lines
3.4 KiB
RPMSpec
Raw Normal View History

Name: goldencheetah
Version: 3.6
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: libQt5Charts-devel
BuildRequires: libQt5Multimedia-devel
BuildRequires: libQt5Positioning-devel
BuildRequires: libQt5SerialPort-devel
BuildRequires: libQt5Svg-devel
BuildRequires: libQt5WebChannel-devel
BuildRequires: libQt5WebEngine-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libgsl-devel
BuildRequires: libical-devel
BuildRequires: libkml-devel
BuildRequires: libsamplerate-devel
BuildRequires: libstdc++6-devel
BuildRequires: libusb-compat-devel
BuildRequires: libz-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtconnectivity-devel
BuildRequires: qt5-qtdeclarative-devel
## AUTOBUILDREQ-END
Requires: R
%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
%patch 0 -p1
%patch 1 -p1
%patch 2 -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
* Sun Aug 06 2023 Automatic Build System <autodist@mambasoft.it> 3.6-1mamba
- automatic version update by autodist
* Sat Jan 09 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.20200614git-2mamba
- require R
* Thu Jan 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.20200614git-1mamba
- package created using the webbuild interface