package the rest of files
[opensuse:yast-web-client.git] / plugins / custom_services / package / yast2-webclient-custom-services.spec
1 #
2 # spec file for package yast2-webclient-services (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-custom-services
13 PreReq:         yast2-webclient
14 License:        GPL
15 Group:          Productivity/Networking/Web/Utilities
16 Autoreqprov:    on
17 Version:        0.0.1
18 Release:        0
19 Summary:        YaST2 - Webclient - Custom Services
20 Source:         www.tar.bz2
21 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
22 BuildArch:      noarch
23
24 Requires:       yast2-webclient-services
25
26 #
27 %define pkg_user yast
28 %define plugin_name services
29 #
30
31
32 %description
33 YaST2 - Webclient - UI for YaST-webservice in order to handle custom service(s).
34 Authors:
35 --------
36     Stefan Schubert <schubi@opensuse.org>
37
38 %prep
39 %setup -q -n www
40
41 %build
42 export RAILS_PARENT=/srv/www/yast
43 (rake makemo)
44
45 %install
46
47 #
48 # Install all web and frontend parts.
49 #
50 mkdir -p $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
51 cp -a * $RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
52
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files 
58 %defattr(-,root,root)
59 %dir /srv/www/%{pkg_user}
60 %dir /srv/www/%{pkg_user}/vendor
61 %dir /srv/www/%{pkg_user}/vendor/plugins
62 %dir /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}
63 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/README
64 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/Rakefile
65 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/app
66 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/shortcuts.yml
67 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/config
68 /srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/public