mirror of
https://abf.rosa.ru/djam/nm-tray.git
synced 2025-02-23 09:22:49 +00:00
add files
This commit is contained in:
commit
a68e7b62a4
2 changed files with 65 additions and 0 deletions
BIN
nm-tray-0.4.1.tar.gz
Normal file
BIN
nm-tray-0.4.1.tar.gz
Normal file
Binary file not shown.
65
nm-tray.spec
Normal file
65
nm-tray.spec
Normal file
|
@ -0,0 +1,65 @@
|
|||
#
|
||||
# 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.1.0
|
||||
BuildRequires: kf5networkmanagerqt-devel
|
||||
BuildRequires: qt5-linguist-tools
|
||||
BuildRequires: pkgconfig(Qt5Gui) >= 5.4.0
|
||||
BuildRequires: pkgconfig(Qt5DBus)
|
||||
BuildRequires: pkgconfig(Qt5Network)
|
||||
BuildRequires: pkgconfig(Qt5Widgets)
|
||||
Recommends: %{name}-lang
|
||||
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}.desktop
|
||||
%dir %{_datadir}/%{name}
|
||||
%{_datadir}/%{name}/%{name}.conf
|
||||
|
||||
%changelog
|
Loading…
Add table
Reference in a new issue