@@ -0,0 +1,66 @@
+Name: harbour-battery-charging-control
+Summary: Controls battery charging
+Version: 0.2.1
+Release: 2
+# The contents of the Group field should be one of the groups listed here:
+# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
+Group: Applications/System
+URL: https://gitlab.com/takimata/harbour-battery-charging-control
+License: GPLv3
+# This must be generated before uploading a package to a remote build service.
+# Usually this line does not need to be modified.
+Sources:
+- '%{name}-%{version}.tar.bz2'
+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.
+Configure: none
+# The qtc5 builder inserts macros to allow QtCreator to have fine
+# control over qmake/make execution
+Builder: qtc5
+
+# This section specifies build dependencies that are resolved using pkgconfig.
+# This is the preferred way of specifying build dependencies for your package.
+PkgConfigBR:
+ - sailfishapp >= 1.0.2
+ - Qt5Core
+ - Qt5Qml
+ - Qt5Quick
+
+# Build dependencies without a pkgconfig setup can be listed here
+PkgBR:
+ - qt5-qttools-linguist
+ - libkeepalive-devel
+
+# Runtime dependencies which are not automatically detected
+Requires:
+ - sailfishsilica-qt5 >= 0.10.9
+ - nemo-qml-plugin-contextkit-qt5
+ # for DeviceInfo
+ - nemo-qml-plugin-systemsettings
+
+Macros:
+# For reproducible builds:
+# If true, set the SOURCE_DATE_EPOCH environment variable
+# to the timestamp of the topmost changelog entry
+ - "source_date_epoch_from_changelog;1"
+# If true, make sure that timestamps in built rpms
+# are not later than the value of SOURCE_DATE_EPOCH.
+# Is ignored when SOURCE_DATE_EPOCH is not set.
+ - "clamp_mtime_to_source_date_epoch;1"
+# used instead of `hostname`
+ - "_buildhost;SailfishSDK"
+
+# All installed files
+# list stuff in '%{_datadir}/%{name}/ explicitly to avoid warning while builing rpm (also see .spec)
+Files:
+ - '%{_bindir}'
+ - '%{_datadir}/%{name}/images'
+ - '%{_datadir}/%{name}/qml'
+ - '%{_datadir}/%{name}/translations'
+ - '%{_datadir}/applications/%{name}.desktop'
+ - '%{_datadir}/icons/hicolor/*/apps/%{name}.png'
+
+# For more information about yaml and what's supported in Sailfish OS
+# build system, please see https://wiki.merproject.org/wiki/Spectacle
|