handle non existing bootproto parameter (bnc#623461)
[opensuse:yast-web-client.git] / plugins / network / package / webyast-network-ui.spec
1 #
2 # spec file for package webyast-network-ui (Version 0.1)
3 #
4 # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 # This file and all modifications and additions to the pristine
6 # package are under the same license as the package itself.
7 #
8 # Please submit bugfixes or comments via http://bugs.opensuse.org/
9 #
10
11
12 Name:           webyast-network-ui
13 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.network.routes)
14 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.network.interfaces)
15 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.network.hostname)
16 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.network.dns)
17 Provides:       yast2-webclient-network = %{version}
18 Obsoletes:      yast2-webclient-network < %{version}
19 License:        GPL v2 only
20 Group:          Productivity/Networking/Web/Utilities
21 Autoreqprov:    on
22 Version:        0.1.20
23 Release:        0
24 Summary:        WebYaST - network UI
25 Source:         www.tar.bz2
26 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
27 BuildArch:      noarch
28 BuildRequires:  webyast-base-ui-testsuite rubygem-mocha rubygem-test-unit rubygem-webyast-rake-tasks
29 BuildRequires:  ruby tidy
30 BuildRequires:  yast2-webclient
31 PreReq:         yast2-webclient >= 0.0.2
32 # minimum counterpart required:
33 Conflicts:      yast2-webservice-network < 0.0.3
34
35 #
36 %define plugin_name network
37 %define plugin_dir %{webyast_ui_dir}/vendor/plugins/%{plugin_name}
38 #
39
40
41 %package testsuite
42 Group:    Productivity/Networking/Web/Utilities
43 Requires: %{name} = %{version}
44 Requires: webyast-base-ui-testsuite rubygem-mocha rubygem-test-unit tidy
45 Summary:  Testsuite for webyast-network-ui package
46
47 %description
48 WebYaST - Plugin providing UI for network configuration
49
50 Authors:
51 --------
52     Michal Zugec <mzugec@suse.cz>
53     Martin Vidner <mvidner@suse.cz>
54
55 %description testsuite
56 This package contains complete testsuite for webyast-network-ui package.
57 It is only needed for verifying the functionality of the module
58 and it is not needed at runtime.
59
60 %prep
61 %setup -q -n www
62
63 %build
64 export RAILS_PARENT=%{webyast_ui_dir}
65 env LANG=en rake makemo
66
67 %check
68 %webyast_ui_check
69
70 %install
71
72 #
73 # Install all web and frontend parts.
74 #
75 mkdir -p $RPM_BUILD_ROOT/%{plugin_dir}
76 cp -a * $RPM_BUILD_ROOT/%{plugin_dir}
77 rm -f $RPM_BUILD_ROOT/%{plugin_dir}/COPYING
78
79 # remove .po files (no longer needed)
80 rm -rf $RPM_BUILD_ROOT/%{plugin_dir}/po
81
82 # search locale files
83 %find_lang webyast-network-ui
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %files -f webyast-network-ui.lang
89 %defattr(-,root,root)
90 %dir %{webyast_ui_dir}
91 %dir %{webyast_ui_dir}/vendor
92 %dir %{webyast_ui_dir}/vendor/plugins
93 %dir %{plugin_dir}
94 %dir %{plugin_dir}/config
95 %dir %{plugin_dir}/doc
96 %dir %{plugin_dir}/locale
97 %{plugin_dir}/README
98 %{plugin_dir}/Rakefile
99 %{plugin_dir}/init.rb
100 %{plugin_dir}/install.rb
101 %{plugin_dir}/uninstall.rb
102 %{plugin_dir}/shortcuts.yml
103 %{plugin_dir}/app
104 %{plugin_dir}/lib
105 %{plugin_dir}/tasks
106 %{plugin_dir}/config/rails_parent.rb
107 %{plugin_dir}/doc/README_FOR_APP
108
109 %doc COPYING
110
111 %files testsuite
112 %defattr(-,root,root)
113 %{plugin_dir}/test
114
115
116 %changelog