Skip to content

Commit

Permalink
Merge branch 'f39' into backport/f39/pr-1675
Browse files Browse the repository at this point in the history
  • Loading branch information
madonuko authored Jul 29, 2024
2 parents 253562c + e9b6d0c commit 60998a3
Show file tree
Hide file tree
Showing 29 changed files with 105 additions and 118 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sed "s@Discord Canary@Discord Canary OpenAsar@g" a > discord-canary.desktop

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord-canary-openasar
cp -rv * %{buildroot}%{_datadir}/discord-canary-openasar
mkdir -p %{buildroot}%{_datadir}/applications/
Expand All @@ -42,9 +43,11 @@ ln -s %_datadir/discord-canary-openasar/discord-canary.desktop %{buildroot}%{_da
ln -s %_datadir/discord-canary-openasar/discord.png %{buildroot}%{_datadir}/pixmaps/discord-canary-openasar.png
cp -v %{SOURCE1} %{buildroot}%{_datadir}/discord-canary-openasar/resources/app.asar
chmod o+w %{buildroot}%{_datadir}/discord-canary-openasar/resources -R
ln -s %_datadir/discord-canary-openasar/DiscordCanary %buildroot%_bindir/discord-canary-openasar


%files
%_bindir/discord-canary-openasar
%{_datadir}/discord-canary-openasar/
%{_datadir}/applications/discord-canary-openasar.desktop
%{_datadir}/pixmaps/discord-canary-openasar.png
Expand Down
8 changes: 5 additions & 3 deletions anda/apps/discord-canary/discord-canary.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ Requires: glibc GConf2 nspr >= 4.13 nss >= 3.27 libX11 >= 1.6 libXtst >= 1
Group: Applications/Internet
ExclusiveArch: x86_64
%description
Imagine a place where you can belong to a school club, a gaming group, or a
worldwide art community. Where just you and a handful of friends can spend time
together. A place that makes it easy to talk every day and hang out more often.
All-in-one voice and text chat for gamers that's free, secure, and works on
both your desktop and phone.

%prep
%autosetup -n DiscordCanary
Expand All @@ -27,14 +26,17 @@ together. A place that makes it easy to talk every day and hang out more often.

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord-canary
cp -rv * %{buildroot}%{_datadir}/discord-canary
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/pixmaps
ln -s %_datadir/discord-canary/discord-canary.desktop %{buildroot}%{_datadir}/applications/
ln -s %_datadir/discord-canary/discord.png %{buildroot}%{_datadir}/pixmaps/discord-canary.png
ln -s %_datadir/discord/DiscordCanary %buildroot%_bindir/discord-canary

%files
%_bindir/discord-canary
%{_datadir}/discord-canary/
%{_datadir}/applications/discord-canary.desktop
%{_datadir}/pixmaps/discord-canary.png
Expand Down
3 changes: 3 additions & 0 deletions anda/apps/discord-openasar/discord-openasar.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sed "s@Discord@Discord OpenAsar@g" a > discord.desktop

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord-openasar
cp -rv * %{buildroot}%{_datadir}/discord-openasar
mkdir -p %{buildroot}%{_datadir}/applications/
Expand All @@ -42,9 +43,11 @@ ln -s %_datadir/discord-openasar/discord.desktop %{buildroot}%{_datadir}/applica
ln -s %_datadir/discord-openasar/discord.png %{buildroot}%{_datadir}/pixmaps/discord-openasar.png
cp -v %{SOURCE1} %{buildroot}%{_datadir}/discord-openasar/resources/app.asar
chmod o+w %{buildroot}%{_datadir}/discord-openasar/resources -R
ln -s %_datadir/discord-openasar/Discord %buildroot%_bindir/discord-openasar


%files
%_bindir/discord-openasar
%{_datadir}/discord-openasar/
%{_datadir}/applications/discord-openasar.desktop
%{_datadir}/pixmaps/discord-openasar.png
Expand Down
3 changes: 3 additions & 0 deletions anda/apps/discord-ptb-openasar/discord-ptb-openasar.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ sed "s@Discord Ptb@Discord Ptb OpenAsar@g" a > discord-ptb.desktop

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord-ptb-openasar
cp -rv * %{buildroot}%{_datadir}/discord-ptb-openasar
mkdir -p %{buildroot}%{_datadir}/applications/
Expand All @@ -44,9 +45,11 @@ install discord-ptb.desktop %{buildroot}%{_datadir}/applications/discord-ptb-ope
install discord.png %{buildroot}%{_datadir}/pixmaps/discord-ptb-openasar.png
cp -v %{SOURCE1} %{buildroot}%{_datadir}/discord-ptb-openasar/resources/app.asar
chmod o+w %{buildroot}%{_datadir}/discord-ptb-openasar/resources -R
ln -s %_datadir/discord-ptb-openasar/Discord %buildroot%_bindir/discord-ptb-openasar


%files
%_bindir/discord-ptb-openasar
%{_datadir}/discord-ptb-openasar/
%{_datadir}/applications/discord-ptb-openasar.desktop
%{_datadir}/pixmaps/discord-ptb-openasar.png
Expand Down
8 changes: 5 additions & 3 deletions anda/apps/discord-ptb/discord-ptb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ Requires: libXtst >= 1.2
Group: Applications/Internet
ExclusiveArch: x86_64
%description
Imagine a place where you can belong to a school club, a gaming group, or a
worldwide art community. Where just you and a handful of friends can spend time
together. A place that makes it easy to talk every day and hang out more often.
All-in-one voice and text chat for gamers that's free, secure, and works on
both your desktop and phone.

%prep
%autosetup -n DiscordPTB
Expand All @@ -31,14 +30,17 @@ together. A place that makes it easy to talk every day and hang out more often.

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord-ptb
cp -rv * %{buildroot}%{_datadir}/discord-ptb
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/pixmaps
ln -s %_datadir/discord-ptb/discord-ptb.desktop %{buildroot}%{_datadir}/applications/
ln -s %_datadir/discord-ptb/discord.png %{buildroot}%{_datadir}/pixmaps/discord-ptb.png
ln -s %_datadir/discord-ptb/Discord %buildroot%_bindir/discord-ptb

%files
%_bindir/discord-ptb
%{_datadir}/discord-ptb/
%{_datadir}/applications/discord-ptb.desktop
%{_datadir}/pixmaps/discord-ptb.png
Expand Down
8 changes: 5 additions & 3 deletions anda/apps/discord/discord.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ Requires: libXtst >= 1.2
Group: Applications/Internet
ExclusiveArch: x86_64
%description
Imagine a place where you can belong to a school club, a gaming group, or a
worldwide art community. Where just you and a handful of friends can spend time
together. A place that makes it easy to talk every day and hang out more often.
All-in-one voice and text chat for gamers that's free, secure, and works on
both your desktop and phone.

%prep
%autosetup -n Discord
Expand All @@ -31,14 +30,17 @@ together. A place that makes it easy to talk every day and hang out more often.

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/discord
cp -rv * %{buildroot}%{_datadir}/discord
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/pixmaps
ln -s %_datadir/discord/discord.desktop %{buildroot}%{_datadir}/applications/discord.desktop
ln -s %_datadir/discord/discord.png %{buildroot}%{_datadir}/pixmaps/discord.png
ln -s %_datadir/discord/Discord %buildroot%_bindir/discord

%files
%_bindir/discord
%{_datadir}/discord/
%{_datadir}/applications/discord.desktop
%{_datadir}/pixmaps/discord.png
Expand Down
4 changes: 2 additions & 2 deletions anda/apps/envision/envision.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global commit 5d0131a00c52b791cad3543e33017c28e021cb92
%global commit_date 20240727
%global commit 1b41029a308596263aaef3fd54a94f05344965b9
%global commit_date 20240728
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name: envision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-about
Summary: Switchboard System Information plug
Version: 6.2.0
Release: 2%{?dist}
Version: 8.0.0
Release: 1%?dist
License: GPL-3.0-or-later

URL: https://github.com/elementary/switchboard-plug-about
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-applications
Summary: Switchboard Applications plug
Version: 7.0.1
Release: 1%{?dist}
Version: 8.0.0
Release: 1%?dist
License: GPL-3.0-or-later

URL: https://github.com/elementary/switchboard-plug-applications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-datetime
Summary: Switchboard Date & Time Plug
Version: 2.2.0
Release: 1%{?dist}
Version: 8.0.0
Release: 1%?dist
License: GPL-3.0-or-later

URL: https://github.com/elementary/switchboard-plug-datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

%global plug_type hardware
%global plug_name keyboard
%global plug_rdnn io.elementary.switchboard.keyboard
%global plug_rdnn io.elementary.settings.keyboard

Name: switchboard-plug-keyboard
Summary: Switchboard Keyboard plug
Expand All @@ -21,14 +21,8 @@ BuildRequires: meson
BuildRequires: vala >= 0.22.0
BuildRequires: fdupes

BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(granite) >= 6.0.0
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(ibus-1.0) >= 1.5.19
BuildRequires: pkgconfig(libgnomekbd)
BuildRequires: pkgconfig(libgnomekbdui)
BuildRequires: pkgconfig(libhandy-1) >= 0.90.0
BuildRequires: pkgconfig(switchboard-2.0)
BuildRequires: pkgconfig(switchboard-3)
BuildRequires: pkgconfig(xkeyboard-config)

Requires: gala
Expand All @@ -54,20 +48,20 @@ same time. Keyboard shortcuts are also part of this plug.
%install
%meson_install
%fdupes %buildroot%_datadir/locale/
%find_lang %{plug_name}-plug
%find_lang %{plug_rdnn}


%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


%files -f %{plug_name}-plug.lang
%files -f %{plug_rdnn}.lang
%doc README.md
%license COPYING

%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so
%{_datadir}/glib-2.0/schemas/keyboard.gschema.xml
%{_libdir}/switchboard-3/%{plug_type}/lib%{plug_name}.so
%{_datadir}/glib-2.0/schemas/%{plug_rdnn}.gschema.xml
%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-locale
Summary: Switchboard Locale Plug
Version: 2.5.9
Release: 2%?dist
Version: 8.0.0
Release: 1%?dist
License: LGPL-3.0-or-later

URL: https://github.com/elementary/%name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-mouse-touchpad
Summary: Switchboard Mouse and Touchpad plug
Version: 7.0.0
Release: 1%{?dist}
Version: 8.0.0
Release: 1%?dist
License: GPL-3.0-or-later

URL: https://github.com/elementary/switchboard-plug-mouse-touchpad
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

%global plug_type network
%global plug_name networking
%global plug_rdnn io.elementary.switchboard.network
%global plug_rdnn io.elementary.settings.network

Name: switchboard-plug-networking
Summary: Switchboard Networking plug
Expand All @@ -22,13 +22,9 @@ BuildRequires: vala >= 0.22.0
BuildRequires: fdupes

BuildRequires: pkgconfig(glib-2.0) >= 2.32
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm) >= 1.20.6
BuildRequires: pkgconfig(libnma)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(switchboard-2.0)
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(libnma-gtk4)
BuildRequires: pkgconfig(switchboard-3)

Requires: network-manager-applet%{?_isa}
Requires: switchboard%{?_isa}
Expand All @@ -52,21 +48,21 @@ A switchboard plug for configuring available networks.
%install
%meson_install
%fdupes %buildroot%_datadir/locale/
%find_lang %{plug_name}-plug
%find_lang %{plug_rdnn}


%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml
%{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


%files -f %{plug_name}-plug.lang
%files -f %{plug_rdnn}.lang
%doc README.md
%license COPYING

%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so
%{_libdir}/switchboard-3/%{plug_type}/libnetwork.so

%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml
%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


%changelog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

Name: switchboard-plug-notifications
Summary: Switchboard Notifications plug
Version: 2.2.0
Release: 2%{?dist}
Version: 8.0.0
Release: 1%?dist
License: GPL-3.0-or-later

URL: https://github.com/elementary/switchboard-plug-notifications
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
%global srcname switchboard-plug-parental-controls

%global plug_type system
%global plug_name parental-controls
%global plug_rdnn io.elementary.switchboard.parental-controls
%global plug_name screentime-limits
%global plug_rdnn io.elementary.settings.screentime-limits

Name: switchboard-plug-parental-controls
Summary: Switchboard Screen Time & Limits Plug
Expand All @@ -25,12 +25,8 @@ BuildRequires: pkgconfig(accountsservice)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(flatpak)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(granite)
BuildRequires: pkgconfig(libhandy-1) >= 0.90.0
BuildRequires: pkgconfig(malcontent-0)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: polkit-devel
BuildRequires: switchboard-devel
BuildRequires: rpm_macro(_unitdir)

Requires: switchboard%{?_isa}
Supplements: switchboard%{?_isa}
Expand All @@ -51,33 +47,34 @@ Supplements: switchboard%{?_isa}
%install
%meson_install
%fdupes %buildroot%_datadir/locale/
%find_lang %{plug_name}-plug
%find_lang %{plug_rdnn}

# remove the specified stock icon from appdata (invalid in libappstream-glib)
sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml
sed -i '/icon type="stock"/d' %{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


%check
appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml
%{buildroot}/%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml


%files -f %{plug_name}-plug.lang
%files -f %{plug_rdnn}.lang
%doc README.md
%license COPYING

%{_libdir}/switchboard/%{plug_type}/lib%{plug_name}.so
%{_libdir}/switchboard-3/%{plug_type}/lib%{plug_name}.so

%{_datadir}/metainfo/%{plug_rdnn}.appdata.xml
%{_datadir}/metainfo/%{plug_rdnn}.metainfo.xml
%_iconsdir/hicolor/*/apps/%plug_rdnn.svg

%_sysconfdir/pantheon-parental-controls/daemon.conf
%_bindir/pantheon-parental-controls-daemon
%_libexecdir/pantheon-parental-controls-client
%_datadir/applications/pantheon-parental-controls-client.desktop
%_datadir/dbus-1/system-services/org.pantheon.ParentalControls.service
%_datadir/dbus-1/system.d/org.pantheon.ParentalControls.conf
%_datadir/polkit-1/actions/io.elementary.switchboard.screentime-limits.policy
/usr/lib/systemd/system/pantheon-parental-controls.service
%_datadir/polkit-1/actions/%plug_rdnn.policy
%_unitdir/pantheon-parental-controls.service

%changelog
* Tue Jun 13 2023 windowsboy111 <[email protected]> - 6.0.1-1
Expand Down
Loading

0 comments on commit 60998a3

Please sign in to comment.