mirror of
https://abf.rosa.ru/djam/nm-tray.git
synced 2025-02-23 09:22:49 +00:00
64 lines
1.5 KiB
RPMSpec
64 lines
1.5 KiB
RPMSpec
#
|
|
# spec file for package nm-tray
|
|
#
|
|
|
|
|
|
Name: nm-tray
|
|
Version: 0.4.1
|
|
Release: 0
|
|
License: GPLv2
|
|
Summary: NetworkManager tray icon
|
|
Url: https://github.com/palinek/nm-tray
|
|
Group: Graphical desktop/Other
|
|
Source: %{name}-%{version}.tar.gz
|
|
BuildRequires: cmake >= 3.10.0
|
|
BuildRequires: kf5networkmanagerqt-devel
|
|
BuildRequires: qt5-linguist-tools
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
Requires: NetworkManager
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
nm-tray is a simple NetworkManager front end with information icon residing in
|
|
system tray (like e.g. nm-applet). It's a pure Qt application.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake_qt5 \
|
|
-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std -C build
|
|
|
|
rm -rf %{buildroot}%{_datadir}/applications
|
|
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
|
|
|
|
install -dm 0755 %{buildroot}%{_sysconfdir}/xdg/autostart
|
|
cat > %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop <<-EOF
|
|
[Desktop Entry]
|
|
Version=1.0
|
|
Name=LXQt Network applet
|
|
Exec=nm-tray
|
|
TryExec=nm-tray
|
|
Type=Application
|
|
OnlyShowIn=LXQt;
|
|
X-LXQt-Need-Tray=true
|
|
EOF
|
|
|
|
%find_lang %{name} --with-qt
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc COPYING README.md
|
|
%{_bindir}/%{name}
|
|
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
|
|
%dir %{_datadir}/%{name}
|
|
%{_datadir}/%{name}/%{name}.conf
|
|
|
|
%changelog
|