rename also spec and changes file
[opensuse:yast-web-client.git] / plugins / users / package / webyast-users-ui.spec
1 #
2 # spec file for package yast2-webclient-users (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:           yast2-webclient-users
13 PreReq:         yast2-webclient
14 License:        GPL v2 only
15 Group:          Productivity/Networking/Web/Utilities
16 Autoreqprov:    on
17 Version:        0.0.2
18 Release:        0
19 Summary:        YaST2 - Webclient - Users
20 Source:         www.tar.bz2
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
22 BuildArch:      noarch
23
24 #
25 %define pkg_user yast
26 %define plugin_name users
27 #
28
29
30 %description
31 YaST2 - Webclient - UI for YaST-webservice in order to handle users settings.
32 Authors:
33 --------
34     Stefan Schubert <schubi@opensuse.org>
35
36 %prep
37 %setup -q -n www
38
39 %build
40 rm -rf doc
41 export RAILS_PARENT=/srv/www/yast
42 env LANG=en rake makemo
43
44 %install
45
46 #
47 # Install all web and frontend parts.
48 #
49 mkdir -p $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
50 cp -a * $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
51 rm -f $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/COPYING
52
53 # remove .po files (no longer needed)
54 rm -rf $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/po
55 # search locale files
56 %find_lang yast_webclient_users
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files -f yast_webclient_users.lang
62 %defattr(-,root,root)
63 %dir /srv/www/%{pkg_user}
64 %dir /srv/www/%{pkg_user}/vendor
65 %dir /srv/www/%{pkg_user}/vendor/plugins
66 %dir /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
67 %dir /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/config
68 %dir /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/locale
69 /srv/www/yast/vendor/plugins/%{plugin_name}/config/rails_parent.rb
70 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/README
71 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/Rakefile
72 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/init.rb
73 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/install.rb
74 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/uninstall.rb
75 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/app
76 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/tasks
77 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/shortcuts.yml
78 #/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/config/routes.rb
79 %doc COPYING
80