not needed anymore
[opensuse:yast-web-client.git] / plugins / time / package / webyast-time-ui.spec
1 #
2 # spec file for package webyast-time-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-time-ui
13 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.time)
14 Recommends:     WebYaST(org.opensuse.yast.modules.yapi.ntp)
15 Provides:       yast2-webclient-systemtime = %{version}
16 Obsoletes:      yast2-webclient-systemtime < %{version}
17 Requires(pre):  yast2-webclient >= 0.0.2
18 License:        GPL-2.0 
19 Group:          Productivity/Networking/Web/Utilities
20 URL:            http://en.opensuse.org/Portal:WebYaST
21 Autoreqprov:    on
22 Version:        0.2.8
23 Release:        0
24 Summary:        WebYaST - time management UI
25 Source:         www.tar.bz2
26 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
27 BuildArch:      noarch
28 BuildRequires:  rubygem-webyast-rake-tasks
29 BuildRequires:  ruby
30 BuildRequires:  yast2-webclient
31
32 #
33 %define plugin_name time
34 %define plugin_dir %{webyast_ui_dir}/vendor/plugins/%{plugin_name}
35 #
36
37
38 %package testsuite
39 Group:    Productivity/Networking/Web/Utilities
40 Requires: %{name} = %{version}
41 Requires: webyast-base-ui-testsuite rubygem-mocha rubygem-test-unit tidy
42 BuildRequires: webyast-services-ui-testsuite tidy
43 Summary:  Testsuite for webyast-time-ui package
44
45 %description
46 WebYaST - Plugin providing UI for handling of time zone, system time and date.
47
48 Authors:
49 --------
50     Stefan Schubert <schubi@opensuse.org>
51     Josef Reidinger <jreidinger@suse.cz>
52
53 %description testsuite
54 This package contains complete testsuite for webyast-time-ui package.
55 It is only needed for verifying the functionality of the module
56 and it is not needed at runtime.
57
58 %prep
59 %setup -q -n www
60
61 %build
62 export RAILS_PARENT=%{webyast_ui_dir}
63 env LANG=en rake makemo
64
65 %check
66 %webyast_ui_check
67
68 %install
69
70 #
71 # Install all web and frontend parts.
72 #
73 mkdir -p $RPM_BUILD_ROOT/%{plugin_dir}
74 cp -a * $RPM_BUILD_ROOT/%{plugin_dir}
75 rm -f $RPM_BUILD_ROOT/%{plugin_dir}/COPYING
76
77 # remove .po files (no longer needed)
78 rm -rf $RPM_BUILD_ROOT/%{plugin_dir}/po
79 # search locale files
80 %find_lang webyast-time-ui
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files -f webyast-time-ui.lang
86 %defattr(-,root,root)
87 %dir %{webyast_ui_dir}
88 %dir %{webyast_ui_dir}/vendor
89 %dir %{webyast_ui_dir}/vendor/plugins
90 %dir %{plugin_dir}
91 %dir %{plugin_dir}/config
92 %dir %{plugin_dir}/doc
93 %dir %{plugin_dir}/locale
94 %{plugin_dir}/README
95 %{plugin_dir}/Rakefile
96 %{plugin_dir}/init.rb
97 %{plugin_dir}/install.rb
98 %{plugin_dir}/uninstall.rb
99 %{plugin_dir}/shortcuts.yml
100 %{plugin_dir}/app
101 %{plugin_dir}/lib
102 %{plugin_dir}/config/rails_parent.rb
103 %{plugin_dir}/doc/README_FOR_APP
104 %doc COPYING
105
106 %files testsuite
107 %defattr(-,root,root)
108 %{plugin_dir}/test
109
110
111 %changelog