Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
>
harbour-battery-charging-control
> _service:tar_git:harbour-battery-charging-control.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:harbour-battery-charging-control.spec of Package harbour-battery-charging-control
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: harbour-battery-charging-control # >> macros # << macros %define source_date_epoch_from_changelog 1 %define clamp_mtime_to_source_date_epoch 1 %define _buildhost SailfishSDK %{!?qtc_qmake:%define qtc_qmake %qmake} %{!?qtc_qmake5:%define qtc_qmake5 %qmake5} %{!?qtc_make:%define qtc_make make} %{?qtc_builddir:%define _builddir %qtc_builddir} Summary: Controls battery charging Version: 0.3.0 Release: 1 Group: Applications/System License: GPLv3 URL: https://gitlab.com/takimata/harbour-battery-charging-control Source0: %{name}-%{version}.tar.bz2 Source100: harbour-battery-charging-control.yaml Requires: sailfishsilica-qt5 >= 0.10.9 Requires: nemo-qml-plugin-contextkit-qt5 Requires: nemo-qml-plugin-systemsettings BuildRequires: pkgconfig(sailfishapp) >= 1.0.2 BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Qml) BuildRequires: pkgconfig(Qt5Quick) BuildRequires: qt5-qttools-linguist BuildRequires: libkeepalive-devel BuildRequires: desktop-file-utils %description Application to automatically stop battery charging when a certain battery level is reached. You can set an upper limit and your device will charge up to that value. The app doesn't need to be running after setting that limit. # >> macros2 # spectacle always breaks "macros", so use "macros2" %global __provides_exclude_from ^%{_datadir}/%{name}/qml/.*$ # This description section includes metadata for SailfishOS:Chum, see # https://github.com/sailfishos-chum/main/blob/main/Metadata.md %if "%{?vendor}" == "chum" PackageName: Charge control Type: desktop-application DeveloperName: takimata Categories: - Settings - HardwareSettings - System Custom: Repo: https://gitlab.com/takimata/harbour-battery-charging-control Icon: https://gitlab.com/takimata/harbour-battery-charging-control/-/raw/master/main/icons/icon.svg %endif # << macros2 %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre # << build pre %qtc_qmake5 %qtc_make %{?_smp_mflags} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %qmake5_install # >> install post # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %files %defattr(-,root,root,-) %{_bindir} %{_datadir}/%{name}/images %{_datadir}/%{name}/qml %{_datadir}/%{name}/translations %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png # >> files # setuid root binary %attr(4755, root, root) %{_bindir}/harbour-battery-charging-control-cli %changelog # << files