File lxrandr.spec of Package lxrandr

#
# spec file for package lxrandr
#
# Copyright (c) 2011 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:           lxrandr
Version:        0.1.1
Release:        10.<RELEASE2>
Summary:        Lightweight Monitor Config Tool
Group:          System/GUI/LXDE
License:        GPL
Url:            http://www.lxde.org/
Source0:        %name-%version.tar.bz2
Source1:        display.png
Patch1:         %{name}-0.1.1-desktop-icon.patch
Patch2:         %{name}-0.1.1-fix-missing-intltool-init.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  intltool pkg-config update-desktop-files
BuildRequires:  docbook-utils fdupes gtk2-devel

%description
LXRandR is a lightweight Monitor Config Tool

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%__rm -rf %{buildroot}/%{_datadir}/locale/ur_PK
%suse_update_desktop_file %name
#wrong brp checks workaround
mkdir -p %buildroot/%_datadir/pixmaps
install %SOURCE1 %buildroot/%_datadir/pixmaps/
%find_lang %{name}
%fdupes -s %{buildroot}

%clean
%__rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc COPYING
%_bindir/%name
%_datadir/applications/lxrandr.desktop
%_mandir/man1/lxrandr.1.gz
%exclude %_datadir/pixmaps/display.png

%changelog
openSUSE Build Service is sponsored by