SHA256
1
0
forked from pool/nvdock
nvdock/nvdock.spec

70 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nvdock
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nvdock
Version: 1.02
Release: 1
Summary: Tray icon for launching NVIDIA Settings
Group: System/X11/Utilities
License: BSD-3
URL: http://www.opsat.net/development/nvdock/
Source0: http://bobmajdakjr.googlecode.com/files/%{name}-%{version}.tar.bz2
# The provided Makefile sucks, so I did this one. -- adam@mizerski.pl
Source1: Makefile
Source2: %{name}.desktop
# PATCH-FIX-UPSTREAM nvdock-1.02-argptr.patch adam@mizerski.pl - Get rid of "warning: cast to pointer from integer of different size"
Patch0: %{name}-1.02-argptr.patch
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: update-desktop-files
%description
Little NVIDIA tray icon.
Hover over it and it will tell you your GPU temperature if your card is into that kind of thing.
A double click will launch the NVIDIA settings control panel, and right click will bring up a nifty menu with a few options.
Also on the menu it will show the NVIDIA driver version, which is surely to come in handy at least one time in your life.
%prep
%setup -q
%patch0 -p1
%build
%__make -C src -f %{SOURCE1} %{?_smp_mflags}
%install
%__install -m 755 -D src/nvdock %buildroot%{_bindir}/nvdock
# path to icon is hardcoced in src/nvdock.h
%__install -m 644 -D data/nvdock.png %buildroot/usr/share/pixmaps/nvdock.png
%__install -m 644 -D %{SOURCE2} %buildroot%{_datadir}/applications/nvdock.desktop
%suse_update_desktop_file nvdock
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/nvdock
# path to icon is hardcoced in src/nvdock.h
/usr/share/pixmaps/nvdock.png
%{_datadir}/applications/nvdock.desktop
%doc COPYING ChangeLog README TODO
%changelog