File lxcc.spec of Package lxcc

#
# spec file for package lxcc
#
# 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:           lxcc
Summary:        LXDE Control Center
Version:        0.1.0+svn733
Release:        1
License:        GPLv3
Group:          System/GUI/LXDE
Url:            https://noc.sidux.com/lxde
Source0:        %{name}.tar.bz2
Source1:        %{name}_template.moo
Source2:        README.SUSE
Source3:        COPYING
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes python-devel update-desktop-files
BuildArch:      noarch
Requires:       python-gtk >= 2.0
Requires:       python-gobject2
%py_requires

%description

%name provides a simple and fast LXDE Control Center
%prep
%setup -q -n %name
%__cp %{SOURCE1} .
%__cp %{SOURCE2} .
%__mv usr/share/icons usr/share/pixmaps

%build

%install
find usr -depth -print | cpio -pvd %{buildroot}
%suse_update_desktop_file %name
%fdupes -s %buildroot
cp %{S:3} .

%clean
%__rm -rf %buildroot

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post

%postun
%desktop_database_postun
%endif

%files
%defattr (-,root,root,-)
%doc %{name}_template.moo README.SUSE COPYING
%{_bindir}/%name
%{_datadir}/applications/*
%{_datadir}/pixmaps/%name.png
%{_datadir}/locale/*/LC_MESSAGES/%name.moo

%changelog
openSUSE Build Service is sponsored by