File webyast-root-user-ui.spec of Package webyast-root-user-ui

# spec file for package webyast-root-user-ui
# 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

Name:           webyast-root-user-ui
Recommends:     WebYaST(org.opensuse.yast.modules.yapi.administrator)
Provides:       yast2-webclient-administrator = %{version}
Obsoletes:      yast2-webclient-administrator < %{version}
PreReq:         yast2-webclient >= 0.0.2
License:        GPLv2
Group:          Productivity/Networking/Web/Utilities
AutoReqProv:    on
Version:        0.2.5
Release:        1
Summary:        WebYaST - Administrator UI
Source:         www.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  rubygem-mocha rubygem-test-unit rubygem-webyast-rake-tasks webyast-base-ui-testsuite
BuildRequires:  ruby tidy
BuildRequires:  yast2-webclient

%define plugin_name administrator
%define plugin_dir %{webyast_ui_dir}/vendor/plugins/%{plugin_name}

%package testsuite
License:        GPLv2
Group:          Productivity/Networking/Web/Utilities
Requires:       %{name} = %{version}
Requires:       webyast-base-ui-testsuite rubygem-mocha rubygem-test-unit tidy
Summary:        Testsuite for webyast-root-user-ui package

WebYaST - Plugin providing UI for administrator settings.

    Jiri Suchomel <>

%description testsuite
This package contains complete testsuite for webyast-root-user-ui package.
It is only needed for verifying the functionality of the module
and it is not needed at runtime.

%setup -q -n www

export RAILS_PARENT=%{webyast_ui_dir}
export LANG=en
rake makemo



# Install all web and frontend parts.
mkdir -p $RPM_BUILD_ROOT/%{plugin_dir}
cp -a * $RPM_BUILD_ROOT/%{plugin_dir}
rm -f $RPM_BUILD_ROOT/%{plugin_dir}/COPYING

# remove .po files (no longer needed)
rm -rf $RPM_BUILD_ROOT/%{plugin_dir}/po

# search locale files
%find_lang webyast-root-user-ui


%files -f webyast-root-user-ui.lang
%dir %{webyast_ui_dir}
%dir %{webyast_ui_dir}/vendor
%dir %{webyast_ui_dir}/vendor/plugins
%dir %{plugin_dir}
%dir %{plugin_dir}/config
%dir %{plugin_dir}/doc
%dir %{plugin_dir}/locale


%files testsuite

openSUSE Build Service is sponsored by