File qwebyast.spec of Package qwebyast
#
# spec file for package qwebyast
#
# 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/
#
Name: qwebyast
BuildRequires: libqt4-devel
#BuildRequires: libQtWebKit-devel
BuildRequires: cmake >= 2.4.6
Summary: WebYaST Desktop Applet
License: GPL-3.0 or GPL-2.0
Group: System/Management
Version: 0.0.14
Release: 0
Url: http://en.opensuse.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2
BuildRequires: update-desktop-files
%description
A desktop applet that starts and stops WebYaST
Authors:
--------
Thomas Goettlicher <tgoettlicher_at_novell.com>
%prep
%setup -q -n %{name}-%{version}
%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
cd ..
%install
cd build
%makeinstall
cd ..
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/applications/chrome-webyast.desktop
%suse_update_desktop_file -n $RPM_BUILD_ROOT/usr/share/applications/chromium-webyast.desktop
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/16x16
%dir /usr/share/icons/hicolor/16x16/apps
%dir /usr/share/icons/hicolor/32x32
%dir /usr/share/icons/hicolor/32x32/apps
%dir /usr/share/icons/hicolor/32x32/apps/qwebyast
%dir /usr/share/icons/hicolor/32x32/apps/qwebyast/pics
%dir /usr/share/icons/hicolor/48x48
%dir /usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/32x32/apps/qwebyast/pics/qwebyast-disabled.png
/usr/share/icons/hicolor/32x32/apps/qwebyast/pics/qwebyast-enabled.png
/usr/share/icons/hicolor/16x16/apps/qwebyast.png
/usr/share/icons/hicolor/32x32/apps/qwebyast.png
/usr/share/icons/hicolor/48x48/apps/qwebyast.png
/usr/share/pixmaps/qwebyast.png
/usr/bin/qwebyast
/usr/share/applications/qwebyast.desktop
/usr/share/applications/chrome-webyast.desktop
/usr/share/applications/chromium-webyast.desktop
%config /etc/xdg/autostart/qwebyast-autostart.desktop
/usr/bin/webyast.sh
%changelog