Skip to content

Commit ce1f34d

Browse files
authored
Add RPM spec package for a -git package (#140)
* Added initial RPM spec package for the -git package * Fixed dbus-1 dep not being specified
1 parent b3c78fc commit ce1f34d

File tree

3 files changed

+68
-6
lines changed

3 files changed

+68
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-scripts/swayosd-git.rpkg.spec

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# vim: syntax=spec
2+
%global alt_pkg_name swayosd
3+
4+
Name: %{alt_pkg_name}-git
5+
Version: {{{ git_repo_release lead="$(git describe --tags --abbrev=0)" }}}
6+
Release: {{{ echo -n "$(git rev-list --all --count)" }}}%{?dist}
7+
Summary: A GTK based on screen display for keyboard shortcuts like caps-lock and volume
8+
Provides: %{alt_pkg_name} = %{version}-%{release}
9+
Provides: %{alt_pkg_name}-git = %{version}-%{release}
10+
License: GPLv3
11+
URL: https://github.com/ErikReider/swayosd
12+
VCS: {{{ git_repo_vcs }}}
13+
Source: {{{ git_repo_pack }}}
14+
15+
# TODO: Use fedora RPM rust packages
16+
BuildRequires: meson >= 1.5.1
17+
BuildRequires: rust
18+
BuildRequires: cargo
19+
BuildRequires: pkgconfig(gtk4)
20+
BuildRequires: pkgconfig(gtk4-layer-shell-0)
21+
BuildRequires: pkgconfig(glib-2.0) >= 2.50
22+
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.68
23+
BuildRequires: pkgconfig(gee-0.8) >= 0.20
24+
BuildRequires: pkgconfig(libpulse)
25+
BuildRequires: pkgconfig(libudev)
26+
BuildRequires: pkgconfig(libevdev)
27+
BuildRequires: pkgconfig(libinput)
28+
BuildRequires: pkgconfig(dbus-1)
29+
BuildRequires: systemd-devel
30+
BuildRequires: systemd
31+
BuildRequires: sassc
32+
33+
Requires: dbus
34+
%{?systemd_requires}
35+
36+
%description
37+
A OSD window for common actions like volume and capslock.
38+
39+
%prep
40+
{{{ git_repo_setup_macro }}}
41+
42+
%build
43+
%meson
44+
%meson_build
45+
46+
%install
47+
%meson_install
48+
49+
%files
50+
%doc README.md
51+
%{_bindir}/swayosd-client
52+
%{_bindir}/swayosd-server
53+
%{_bindir}/swayosd-libinput-backend
54+
%license LICENSE
55+
%config(noreplace) %{_sysconfdir}/xdg/swayosd/backend.toml
56+
%config(noreplace) %{_sysconfdir}/xdg/swayosd/config.toml
57+
%config(noreplace) %{_sysconfdir}/xdg/swayosd/style.css
58+
%{_unitdir}/swayosd-libinput-backend.service
59+
%{_libdir}/udev/rules.d/99-swayosd.rules
60+
%{_datadir}/dbus-1/system-services/org.erikreider.swayosd.service
61+
%{_datadir}/dbus-1/system.d/org.erikreider.swayosd.conf
62+
%{_datadir}/polkit-1/actions/org.erikreider.swayosd.policy
63+
%{_datadir}/polkit-1/rules.d/org.erikreider.swayosd.rules
64+
65+
# Changelog will be empty until you make first annotated Git tag.
66+
%changelog
67+
{{{ git_repo_changelog }}}

data/meson.build

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
datadir = get_option('datadir')
22
libdir = get_option('libdir')
33

4-
# LICENSE
5-
install_data(
6-
'../LICENSE',
7-
install_dir: join_paths(datadir, 'licenses', meson.project_name())
8-
)
94
# udev rules
105
install_data(
116
join_paths('udev', '99-swayosd.rules'),

0 commit comments

Comments
 (0)