Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae6d80a161 | ||
|
|
002d43e7b1 | ||
|
|
d1f92458f2 | ||
|
|
ec2494ea19 | ||
|
|
d73f39d89a | ||
|
3e8ee90fde |
|||
|
|
8fe1426a3c | ||
|
|
9286a94226 | ||
|
b85d40a35d |
|||
|
|
9e1ae6a2dc | ||
|
|
b139daf146 | ||
|
|
e167b813be | ||
|
|
01f4cbe652 | ||
|
|
4a33622b89 |
||
|
|
bd8bc69593 |
3 changed files with 49 additions and 118 deletions
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (wlsunset-0.1.0.tar.gz) = 375bb5d9e8c90c0d6f57059b99725473113701fc0469f73ccbc76e916eb938f2d1d342308fb832c4e160485deeb4c48376cacb871722f02309e13264d3154157
|
||||
SHA512 (wlsunset-0.4.0.tar.gz) = f72a067a5458931a6394bbccfa1ec5d3790beb5ccce42f2ad865ac6e839c5996363c0806636e337358c8d14cd0a73cb3db37bfc6f3faf26fee2e40a837f69efa
|
||||
|
|
|
|||
|
|
@ -1,111 +0,0 @@
|
|||
From fa2bd44253148ae8dc0e7145ffd2d0f04bfac1ab Mon Sep 17 00:00:00 2001
|
||||
From: Rohan Kumar <seirdy@seirdy.one>
|
||||
Date: Mon, 26 Oct 2020 13:56:51 -0700
|
||||
Subject: [PATCH] Add manpage
|
||||
|
||||
---
|
||||
meson.build | 29 ++++++++++++++++++++++++++-
|
||||
meson_options.txt | 1 +
|
||||
wlsunset.1.scd | 50 +++++++++++++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 79 insertions(+), 1 deletion(-)
|
||||
create mode 100644 meson_options.txt
|
||||
create mode 100644 wlsunset.1.scd
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index e78b203..585d895 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -51,5 +51,32 @@ executable(
|
||||
'wlsunset',
|
||||
['main.c', 'color_math.c'],
|
||||
dependencies: [protocols_dep, m, rt],
|
||||
- install: true
|
||||
+ install: true,
|
||||
)
|
||||
+
|
||||
+scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7')
|
||||
+
|
||||
+if scdoc.found()
|
||||
+ sh = find_program('sh')
|
||||
+
|
||||
+ man_pages = ['wlsunset.1.scd']
|
||||
+
|
||||
+ mandir = get_option('mandir')
|
||||
+
|
||||
+ foreach src : man_pages
|
||||
+ topic = src.split('.')[0]
|
||||
+ section = src.split('.')[1]
|
||||
+ output = '@0@.@1@'.format(topic, section)
|
||||
+
|
||||
+ custom_target(
|
||||
+ output,
|
||||
+ input: src,
|
||||
+ output: output,
|
||||
+ command: [
|
||||
+ sh, '-c', '@0@ < @INPUT@ > @1@'.format(scdoc.get_pkgconfig_variable('scdoc'), output)
|
||||
+ ],
|
||||
+ install: true,
|
||||
+ install_dir: '@0@/man@1@'.format(mandir, section)
|
||||
+ )
|
||||
+ endforeach
|
||||
+endif
|
||||
diff --git a/meson_options.txt b/meson_options.txt
|
||||
new file mode 100644
|
||||
index 0000000..e40a23d
|
||||
--- /dev/null
|
||||
+++ b/meson_options.txt
|
||||
@@ -0,0 +1 @@
|
||||
+option('man-pages', type: 'feature', value: 'auto', description: 'Generate and install man pages')
|
||||
diff --git a/wlsunset.1.scd b/wlsunset.1.scd
|
||||
new file mode 100644
|
||||
index 0000000..ab53726
|
||||
--- /dev/null
|
||||
+++ b/wlsunset.1.scd
|
||||
@@ -0,0 +1,44 @@
|
||||
+wlsunset(1)
|
||||
+
|
||||
+# NAME
|
||||
+
|
||||
+wlsunet - Day/night gamma adjustments for Wayland compositors supporting wlr-gamma-control-unstable-v1
|
||||
+
|
||||
+# SYNOPSIS
|
||||
+
|
||||
+*wlsunset* [options...]
|
||||
+
|
||||
+# OPTIONS
|
||||
+
|
||||
+*-h*
|
||||
+ show this help message
|
||||
+
|
||||
+*-T* <temp>
|
||||
+ set high temperature (default: 6500)
|
||||
+
|
||||
+*-t* <temp>
|
||||
+ set low temperature (default: 4000)
|
||||
+
|
||||
+*-l* <lat>
|
||||
+ set latitude (e.g. 39.9)
|
||||
+
|
||||
+*-L* <long>
|
||||
+ set longitude (e.g. 116.3)
|
||||
+
|
||||
+*-g* <gamma>
|
||||
+ set gamma (default: 1.0)
|
||||
+
|
||||
+# EXAMPLE
|
||||
+
|
||||
+```
|
||||
+# Beijing lat/long.
|
||||
+wlsunset -l 39.9 -L 116.3
|
||||
+```
|
||||
+
|
||||
+Greater precision than one decimal place serves no purpose
|
||||
+(https://xkcd.com/2170/) other than padding the command-line.
|
||||
+
|
||||
+# AUTHORS
|
||||
+
|
||||
+Maintained by Kenny Levinsen <contact@kl.wtf>. For more information about
|
||||
+wlsunset development, see https://sr.ht/~kennylevinsen/wlsunset.
|
||||
--
|
||||
2.26.2
|
||||
|
||||
|
|
@ -1,17 +1,14 @@
|
|||
Name: wlsunset
|
||||
Version: 0.1.0
|
||||
Release: 1%{?dist}
|
||||
Version: 0.4.0
|
||||
Release: 6%{?dist}
|
||||
Summary: Day/night gamma adjustments for Sway
|
||||
|
||||
License: MIT
|
||||
URL: https://sr.ht/~kennylevinsen/%{name}
|
||||
Source0: https://git.sr.ht/~kennylevinsen/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# Upstream patch after removing unsupported options
|
||||
# https://git.sr.ht/~kennylevinsen/wlsunset/commit/fa2bd44253148ae8dc0e7145ffd2d0f04bfac1ab
|
||||
Patch0: wlsunset-0.1.0-add-manpage.patch
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: meson >= 0.53
|
||||
BuildRequires: meson >= 0.56
|
||||
BuildRequires: pkgconfig(scdoc)
|
||||
BuildRequires: pkgconfig(wayland-client)
|
||||
BuildRequires: pkgconfig(wayland-protocols)
|
||||
|
|
@ -42,5 +39,50 @@ supporting wlr-gamma-control-unstable-v1.
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Apr 20 2024 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.4.0-1
|
||||
- Update to 0.4.0 (#2276205)
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Wed May 24 2023 Aleksei Bavshin <alebastr@fedoraproject.org> - 0.3.0-1
|
||||
- Update to 0.3.0 (rhbz#2209700)
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Sun Apr 25 2021 Aleksei Bavshin <alebastr89@gmail.com> - 0.2.0-1
|
||||
- Update to 0.2.0
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Thu Oct 29 2020 Aleksei Bavshin <alebastr89@gmail.com> - 0.1.0-1
|
||||
- Initial import (#1891163)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue