1 |
michel |
1.1 |
Summary: SME Server Manager localisation module (manager 2) |
2 |
|
|
%define name smeserver-manager-locale |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 0.1.0 |
5 |
|
|
%define release 1 |
6 |
|
|
%define package_summary SME Server Manager localisation module |
7 |
|
|
%define group Applications/System |
8 |
|
|
%define package_locales bg da de el es et fr he hu id it ja nb nl pl pt pt_BR ro ru sl sv th tr zh_CN zh_TW |
9 |
|
|
Version: %{version} |
10 |
|
|
Release: %{release}%{?dist} |
11 |
|
|
License: GPL |
12 |
|
|
Group: Networking/Daemons |
13 |
|
|
Source: %{name}-%{version}.tar.xz |
14 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
|
|
BuildArchitectures: noarch |
16 |
|
|
BuildRequires: perl |
17 |
|
|
BuildRequires: e-smith-devtools |
18 |
|
|
AutoReqProv: no |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
SME Server Manager 2 localisation module (smeserver-manager) |
22 |
|
|
|
23 |
|
|
%changelog |
24 |
|
|
* Sat Jun 05 2021 Michel Begue <mab974@gmail.com> 0.1.0-1.sme |
25 |
|
|
- Initial development, extraction from smeserver-manager |
26 |
|
|
|
27 |
|
|
%prep |
28 |
|
|
%setup |
29 |
|
|
|
30 |
|
|
%build |
31 |
|
|
#LEXICONS=$(find root/usr/share/smanager/lib/SrvMngr/I18N/modules/*/*.lex -type f) |
32 |
|
|
#for file in $LEXICONS |
33 |
|
|
#do |
34 |
|
|
# /sbin/e-smith/validate-lexicon-sm2 $file |
35 |
|
|
#done |
36 |
|
|
|
37 |
|
|
%install |
38 |
|
|
rm -rf $RPM_BUILD_ROOT |
39 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
40 |
|
|
|
41 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
42 |
|
|
> %{name}-%{version}-%{release}-filelist |
43 |
|
|
|
44 |
|
|
for locale in %{package_locales} |
45 |
|
|
do |
46 |
|
|
echo "%defattr(-,root,root)" > \ |
47 |
|
|
%{name}-%{version}-%{release}-filelist-$locale |
48 |
|
|
grep -e "_$locale.lex" -e "_$(echo $locale | tr '[:upper:]_' '[:lower:]-').lex" \ |
49 |
|
|
%{name}-%{version}-%{release}-filelist >> %{name}-%{version}-%{release}-filelist-$locale |
50 |
|
|
done |
51 |
|
|
|
52 |
|
|
%clean |
53 |
|
|
rm -rf $RPM_BUILD_ROOT |
54 |
|
|
|
55 |
|
|
|
56 |
|
|
%package bg |
57 |
|
|
Summary: %{package_summary} - Bulgarian |
58 |
|
|
Group: %{group} |
59 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
60 |
|
|
%description bg |
61 |
|
|
%{summary} |
62 |
|
|
%files bg -f %{name}-%{version}-%{release}-filelist-bg |
63 |
|
|
|
64 |
|
|
%package da |
65 |
|
|
Summary: %{package_summary} - Danish |
66 |
|
|
Group: %{group} |
67 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
68 |
|
|
%description da |
69 |
|
|
%{summary} |
70 |
|
|
%files da -f %{name}-%{version}-%{release}-filelist-da |
71 |
|
|
|
72 |
|
|
%package de |
73 |
|
|
Summary: %{package_summary} - German |
74 |
|
|
Group: %{group} |
75 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
76 |
|
|
%description de |
77 |
|
|
%{summary} |
78 |
|
|
%files de -f %{name}-%{version}-%{release}-filelist-de |
79 |
|
|
|
80 |
|
|
%package el |
81 |
|
|
Summary: %{package_summary} - Greek |
82 |
|
|
Group: %{group} |
83 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
84 |
|
|
%description el |
85 |
|
|
%{summary} |
86 |
|
|
%files el -f %{name}-%{version}-%{release}-filelist-el |
87 |
|
|
|
88 |
|
|
%package es |
89 |
|
|
Summary: %{package_summary} - Spanish |
90 |
|
|
Group: %{group} |
91 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
92 |
|
|
%description es |
93 |
|
|
%{summary} |
94 |
|
|
%files es -f %{name}-%{version}-%{release}-filelist-es |
95 |
|
|
|
96 |
|
|
%package et |
97 |
|
|
Summary: %{package_summary} - Estonian |
98 |
|
|
Group: %{group} |
99 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
100 |
|
|
%description et |
101 |
|
|
%{summary} |
102 |
|
|
%files et -f %{name}-%{version}-%{release}-filelist-et |
103 |
|
|
|
104 |
|
|
%package fr |
105 |
|
|
Summary: %{package_summary} - French |
106 |
|
|
Group: %{group} |
107 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
108 |
|
|
%description fr |
109 |
|
|
%{summary} |
110 |
|
|
%files fr -f %{name}-%{version}-%{release}-filelist-fr |
111 |
|
|
|
112 |
|
|
%package he |
113 |
|
|
Summary: %{package_summary} - Hebrew |
114 |
|
|
Group: %{group} |
115 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
116 |
|
|
%description he |
117 |
|
|
%{summary} |
118 |
|
|
%files he -f %{name}-%{version}-%{release}-filelist-he |
119 |
|
|
|
120 |
|
|
%package hu |
121 |
|
|
Summary: %{package_summary} - Hungarian |
122 |
|
|
Group: %{group} |
123 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
124 |
|
|
%description hu |
125 |
|
|
%{summary} |
126 |
|
|
%files hu -f %{name}-%{version}-%{release}-filelist-hu |
127 |
|
|
|
128 |
|
|
%package id |
129 |
|
|
Summary: %{package_summary} - Indonesian |
130 |
|
|
Group: %{group} |
131 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
132 |
|
|
%description id |
133 |
|
|
%{summary} |
134 |
|
|
%files id -f %{name}-%{version}-%{release}-filelist-id |
135 |
|
|
|
136 |
|
|
%package it |
137 |
|
|
Summary: %{package_summary} - Italian |
138 |
|
|
Group: %{group} |
139 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
140 |
|
|
%description it |
141 |
|
|
%{summary} |
142 |
|
|
%files it -f %{name}-%{version}-%{release}-filelist-it |
143 |
|
|
|
144 |
|
|
%package ja |
145 |
|
|
Summary: %{package_summary} - Japanese |
146 |
|
|
Group: %{group} |
147 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
148 |
|
|
%description ja |
149 |
|
|
%{summary} |
150 |
|
|
%files ja -f %{name}-%{version}-%{release}-filelist-ja |
151 |
|
|
|
152 |
|
|
%package nb |
153 |
|
|
Summary: %{package_summary} - Norwegian (Bokmal) |
154 |
|
|
Group: %{group} |
155 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
156 |
|
|
%description nb |
157 |
|
|
%{summary} |
158 |
|
|
%files nb -f %{name}-%{version}-%{release}-filelist-nb |
159 |
|
|
|
160 |
|
|
%package nl |
161 |
|
|
Summary: %{package_summary} - Dutch |
162 |
|
|
Group: %{group} |
163 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
164 |
|
|
%description nl |
165 |
|
|
%{summary} |
166 |
|
|
%files nl -f %{name}-%{version}-%{release}-filelist-nl |
167 |
|
|
|
168 |
|
|
%package pl |
169 |
|
|
Summary: %{package_summary} - Polish |
170 |
|
|
Group: %{group} |
171 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
172 |
|
|
%description pl |
173 |
|
|
%{summary} |
174 |
|
|
%files pl -f %{name}-%{version}-%{release}-filelist-pl |
175 |
|
|
|
176 |
|
|
%package pt |
177 |
|
|
Summary: %{package_summary} - Portugese |
178 |
|
|
Group: %{group} |
179 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
180 |
|
|
%description pt |
181 |
|
|
%{summary} |
182 |
|
|
%files pt -f %{name}-%{version}-%{release}-filelist-pt |
183 |
|
|
|
184 |
|
|
%package pt_BR |
185 |
|
|
Summary: %{package_summary} - Portugese (Brazilian) |
186 |
|
|
Group: %{group} |
187 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
188 |
|
|
%description pt_BR |
189 |
|
|
%{summary} |
190 |
|
|
%files pt_BR -f %{name}-%{version}-%{release}-filelist-pt_BR |
191 |
|
|
|
192 |
|
|
%package ro |
193 |
|
|
Summary: %{package_summary} - Romanian |
194 |
|
|
Group: %{group} |
195 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
196 |
|
|
%description ro |
197 |
|
|
%{summary} |
198 |
|
|
%files ro -f %{name}-%{version}-%{release}-filelist-ro |
199 |
|
|
|
200 |
|
|
%package ru |
201 |
|
|
Summary: %{package_summary} - Russian |
202 |
|
|
Group: %{group} |
203 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
204 |
|
|
%description ru |
205 |
|
|
%{summary} |
206 |
|
|
%files ru -f %{name}-%{version}-%{release}-filelist-ru |
207 |
|
|
|
208 |
|
|
%package sl |
209 |
|
|
Summary: %{package_summary} - Slovinian |
210 |
|
|
Group: %{group} |
211 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
212 |
|
|
%description sl |
213 |
|
|
%{summary} |
214 |
|
|
%files sl -f %{name}-%{version}-%{release}-filelist-sl |
215 |
|
|
|
216 |
|
|
%package sv |
217 |
|
|
Summary: %{package_summary} - Swedish |
218 |
|
|
Group: %{group} |
219 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
220 |
|
|
%description sv |
221 |
|
|
%{summary} |
222 |
|
|
%files sv -f %{name}-%{version}-%{release}-filelist-sv |
223 |
|
|
|
224 |
|
|
%package th |
225 |
|
|
Summary: %{package_summary} - Thai |
226 |
|
|
Group: %{group} |
227 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
228 |
|
|
%description th |
229 |
|
|
%{summary} |
230 |
|
|
%files th -f %{name}-%{version}-%{release}-filelist-th |
231 |
|
|
|
232 |
|
|
%package tr |
233 |
|
|
Summary: %{package_summary} - Turkish |
234 |
|
|
Group: %{group} |
235 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
236 |
|
|
%description tr |
237 |
|
|
%{summary} |
238 |
|
|
%files tr -f %{name}-%{version}-%{release}-filelist-tr |
239 |
|
|
|
240 |
|
|
%package zh_CN |
241 |
|
|
Summary: %{package_summary} - Chinese (China) |
242 |
|
|
Group: %{group} |
243 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
244 |
|
|
%description zh_CN |
245 |
|
|
%{summary} |
246 |
|
|
%files zh_CN -f %{name}-%{version}-%{release}-filelist-zh_CN |
247 |
|
|
|
248 |
|
|
%package zh_TW |
249 |
|
|
Summary: %{package_summary} - Chinese (Taiwan) |
250 |
|
|
Group: %{group} |
251 |
|
|
Requires: smeserver-manager >= 0.1.2-13 |
252 |
|
|
%description zh_TW |
253 |
|
|
%{summary} |
254 |
|
|
%files zh_TW -f %{name}-%{version}-%{release}-filelist-zh_TW |