File monica.spec of Package monica
#
# spec file for package monica
#
# Copyright (c) 2012 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/
#
Name: monica
Version: 3.7
Release: 0
License: BSD-3-Clause
Summary: Monitor Calibration Tool
Url: http://www.pcbypaul.com/software/monica.html
Group: System/X11/Utilities
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
# PATCH-FIX-UPSTREAM monica-3.7-gcc44.patch lazy.kent@opensuse.org -- fix build with gcc 4.4
Patch0: monica-3.7-gcc44.patch
# PATCH-FIX-UPSTREAM monica-3.7-makefile.patch lazy.kent@opensuse.org -- fix optflags
Patch1: monica-3.7-makefile.patch
BuildRequires: fltk-devel
BuildRequires: gcc-c++
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xinerama)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Monica is a small monitor calibration tool.
It works as frontend to xgamma which uses the FLTK library
(www.fltk.org). With Monica you can alter your monitor's gamma on
XFree86 or Xorg. The gray and color scales can help you find usable
settings. The grey box with lines illustrates a display gamma of 2.2,
the sRGB standard gamma.
%prep
%setup -q
%patch0
%patch1
%build
make %{?_smp_mflags}
%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 0644 %{SOURCE2} \
%{buildroot}%{_datadir}/pixmaps/%{name}.png
%suse_update_desktop_file -i %{name}
%files
%defattr(-,root,root,-)
%doc authors ChangeLog licence news readme
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog