/[smecontribs]/rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec
ViewVC logotype

Contents of /rpms/smeserver-extrarepositories/contribs9/smeserver-extrarepositories.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Sun Feb 18 21:16:16 2018 UTC (6 years, 9 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-extrarepositories-0_1-3
Changes since 1.5: +46 -43 lines
* Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme
- fix wrong escape sequence for $basearch and $releasever [SME: 10239]

1 %define name smeserver-extrarepositories
2 %define version 0.1
3 %define release 3
4 Summary: easy configuration of extra yum repo
5 Name: %{name}
6 Version: %{version}
7 Release: %{release}
8 License: GNU GPL version 2
9 URL: https://wiki.koozali.org
10 Group: SMEserver/addon
11 BuildRoot: /var/tmp/%{name}-%{version}
12 BuildArchitectures: noarch
13 BuildRequires: e-smith-devtools
14 Requires: e-smith-release >= 9.0
15 AutoReqProv: no
16
17 %description
18 Provides configuration for external yum repository comaptible with Koozali SME Server.
19
20 %changelog
21 * Sun Feb 18 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-3.sme
22 - fix wrong escape sequence for $basearch and $releasever [SME: 10239]
23
24 * Thu Feb 15 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
25 - first multipackage version
26 - gpg keys not included
27
28 * Mon May 01 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-1.sme
29 - initial release
30
31 %prep
32
33 %build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 # if needing to add a gpg key
38 mkdir -p $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
39
40 # if needing to add a gpg key
41 #cp %source0 $RPM_BUILD_ROOT/usr/share/rpm-gpg-keys/
42 #/usr/share/rpm-gpg-keys/RPM-GPG-KEY-${REPO['reponame']}
43
44 # if needing to migrate something :
45 #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate
46 #echo "" >$RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/migrate/00REPONAMEmigrate
47
48 # if needed to force something
49 #mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}
50 #echo "${REPO['Exclude']}" >\
51 # $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/force/${REPO['reponame']}/Exclude
52
53
54
55 declare -A REPO
56
57 function createrepo {
58 mkdir -p $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}
59 echo "${REPO['EnableGroups']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/EnableGroups
60 echo "${REPO['GPGCheck']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGCheck
61 echo "${REPO['fullreponame']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Name
62 echo "${REPO['Visible']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Visible
63 echo "${REPO['status']}" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/status
64 echo "repository" > $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/type
65 [[ "${REPO['BaseURL']}" != '' ]] && echo "${REPO['BaseURL']}" >\
66 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/BaseURL
67 [[ "${REPO['GPGKey']}" != '' ]] && echo "${REPO['GPGKey']}" >\
68 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/GPGKey
69 [[ "${REPO['MirrorList']}" != '' ]] && echo "${REPO['MirrorList']}" >\
70 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/MirrorList
71 [[ "${REPO['Exclude']}" != '' ]] && echo "${REPO['Exclude']}" >\
72 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/Exclude
73 [[ "${REPO['IncludePkgs']}" != '' ]] && echo "${REPO['IncludePkgs']}" >\
74 $RPM_BUILD_ROOT/etc/e-smith/db/yum_repositories/defaults/${REPO['reponame']}/IncludePkgs
75 return 0
76 }
77
78
79
80 #remi-safe
81 REPO['reponame']='remi-safe'
82 REPO['fullreponame']='Remi - safe'
83 REPO['EnableGroups']='no'
84 REPO['GPGCheck']='yes'
85 REPO['Visible']='yes'
86 REPO['status']='enabled'
87 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/'
88 REPO['MirrorList']=''
89 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
90 REPO['Exclude']=''
91 REPO['IncludePkgs']=''
92 createrepo
93
94 ######################
95 #####################
96 # asterisk 13 LTS
97 #####################
98 #####################
99 REPO['reponame']='asterisk-13'
100 REPO['fullreponame']='Asterisk-13 - EL'
101 REPO['EnableGroups']='yes'
102 REPO['GPGCheck']='no'
103 REPO['Visible']='no'
104 REPO['status']='disabled'
105 REPO['BaseURL']='http://packages.asterisk.org/centos/$releasever/asterisk-13/$basearch/'
106 REPO['MirrorList']=''
107 REPO['GPGKey']=''
108 REPO['Exclude']=''
109 REPO['IncludePkgs']=''
110 createrepo
111
112 ######################
113 #####################
114 # asterisk current
115 #####################
116 #####################
117 REPO['reponame']='asterisk-current'
118 REPO['fullreponame']='Asterisk-current - EL'
119 REPO['EnableGroups']='yes'
120 REPO['GPGCheck']='no'
121 REPO['Visible']='no'
122 REPO['status']='disabled'
123 REPO['BaseURL']='http://packages.asterisk.org/centos$releasever/current/$basearch/'
124 REPO['MirrorList']=''
125 REPO['GPGKey']=''
126 REPO['Exclude']=''
127 REPO['IncludePkgs']=''
128 createrepo
129
130 #####################
131 #####################
132 # Digium Repo
133 #####################
134 #####################
135 REPO['reponame']='digium'
136 REPO['fullreponame']='Digium packages - EL'
137 REPO['EnableGroups']='no'
138 REPO['Visible']='no'
139 REPO['status']='disabled'
140 REPO['BaseURL']='http://packages.digium.com/centos/$releasever/current/$basearch/'
141 REPO['MirrorList']=''
142 REPO['GPGCheck']='no'
143 REPO['GPGKey']=''
144 REPO['Exclude']=''
145 REPO['IncludePkgs']=''
146 createrepo
147
148 #####################
149 #####################
150 # Digium 13
151 #####################
152 #####################
153 REPO['reponame']='digium-13'
154 REPO['fullreponame']='Digium-13 packages - EL'
155 REPO['EnableGroups']='no'
156 REPO['Visible']='no'
157 REPO['status']='disabled'
158 REPO['BaseURL']='http://packages.digium.com/centos/$releasever/digium-13/$basearch/'
159 REPO['MirrorList']=''
160 REPO['GPGCheck']='no'
161 REPO['GPGKey']=''
162 REPO['Exclude']=''
163 REPO['IncludePkgs']=''
164 createrepo
165
166 #####################
167 #####################
168 #atomic
169 #####################
170 #####################
171 REPO['reponame']='atomic'
172 REPO['fullreponame']='Atomic'
173 REPO['EnableGroups']='no'
174 REPO['Visible']='no'
175 REPO['status']='disabled'
176 REPO['BaseURL']=''
177 REPO['MirrorList']='http://www.atomicorp.com/mirrorlist/atomic/centos-$releasever-$basearch'
178 REPO['GPGCheck']='yes'
179 REPO['GPGKey']='https://www.atomicorp.com/RPM-GPG-KEY.art.txt'
180 REPO['Exclude']=''
181 REPO['IncludePkgs']=''
182 createrepo
183
184 #####################
185 #####################
186 #centos-sclo-centos
187 #####################
188 #####################
189 REPO['reponame']='centos-sclo-centos'
190 REPO['fullreponame']='Centos-RH Software collections'
191 REPO['EnableGroups']='no'
192 REPO['Visible']='yes'
193 REPO['status']='disabled'
194 REPO['BaseURL']='http://mirror.centos.org/centos/$releasever/sclo/$basearch/sclo/'
195 REPO['MirrorList']=''
196 REPO['GPGCheck']='yes'
197 REPO['GPGKey']='https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo'
198 REPO['Exclude']=''
199 REPO['IncludePkgs']=''
200 createrepo
201
202 #####################
203 #####################
204 #centos-sclo-rh
205 #####################
206 #####################
207 REPO['reponame']='centos-sclo-rh'
208 REPO['fullreponame']='Centos-RH Software collections'
209 REPO['EnableGroups']='no'
210 REPO['Visible']='yes'
211 REPO['status']='disabled'
212 REPO['BaseURL']='http://mirror.centos.org/centos/$releasever/sclo/$basearch/rh/'
213 REPO['MirrorList']=''
214 REPO['GPGCheck']='yes'
215 REPO['GPGKey']='https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-SCLo'
216 REPO['Exclude']=''
217 REPO['IncludePkgs']=''
218 createrepo
219
220
221 #####################
222 #####################
223 #egroupware
224 #####################
225 #####################
226 REPO['reponame']='egroupware'
227 REPO['fullreponame']='server_eGroupWare'
228 REPO['EnableGroups']='no'
229 REPO['Visible']='yes'
230 REPO['status']='disabled'
231 REPO['BaseURL']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/'
232 REPO['MirrorList']=''
233 REPO['GPGCheck']='yes'
234 REPO['GPGKey']='http://download.opensuse.org/repositories/server:/eGroupWare/CentOS_$releasever/repodata/repomd.xml.key'
235 REPO['Exclude']=''
236 REPO['IncludePkgs']=''
237 createrepo
238
239 #####################
240 #####################
241 #elastic
242 #####################
243 #####################
244 declare -A elashort=( ['6.x']='6.x' ['5.x']='5.x' ['1.6']='1' )
245 for elasver in "6.x" "5.x" "1.6"; do
246 REPO['reponame']="elastic${elashort[$elasver]}"
247 REPO['fullreponame']="Elasticsearch repository for $elasver packages"
248 REPO['EnableGroups']='yes'
249 REPO['Visible']='yes'
250 REPO['status']='disabled'
251 REPO['BaseURL']="https://artifacts.elastic.co/packages/$elasver/yum"
252 REPO['MirrorList']=''
253 REPO['GPGCheck']='yes'
254 REPO['GPGKey']='https://artifacts.elastic.co/GPG-KEY-elasticsearch'
255 REPO['Exclude']=''
256 REPO['IncludePkgs']=''
257 createrepo
258 done
259
260 #####################
261 #####################
262 #ELRepo
263 #####################
264 #####################
265 REPO['reponame']='elrepo'
266 REPO['fullreponame']='ELRepo.org Community Enterprise Linux Repository'
267 REPO['EnableGroups']='no'
268 REPO['Visible']='no'
269 REPO['status']='disabled'
270 REPO['BaseURL']='http://elrepo.org/linux/elrepo/el$releasever/$basearch'
271 REPO['MirrorList']='http://elrepo.org/mirrors-elrepo.$releasever'
272 REPO['GPGCheck']='yes'
273 REPO['GPGKey']='http://elrepo.org/RPM-GPG-KEY-elrepo.org'
274 REPO['Exclude']='clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,gd,perl-TimeDate,librpm4.4'
275 REPO['IncludePkgs']=''
276 createrepo
277
278 #####################
279 #####################
280 #EPEL
281 #####################
282 #####################
283 REPO['reponame']='epel'
284 REPO['fullreponame']='EPEL'
285 REPO['EnableGroups']='no'
286 REPO['Visible']='no'
287 REPO['status']='disabled'
288 REPO['BaseURL']='http://download.fedoraproject.org/pub/epel/$releasever/$basearch'
289 REPO['MirrorList']='http://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch'
290 REPO['GPGCheck']='yes'
291 REPO['GPGKey']='http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
292 REPO['Exclude']='perl-Razor-Agent'
293 REPO['IncludePkgs']=''
294 createrepo
295
296 #####################
297 #####################
298 #erlang
299 #####################
300 #####################
301 REPO['reponame']='erlang'
302 REPO['fullreponame']='erlang programming language'
303 REPO['EnableGroups']='no'
304 REPO['Visible']='yes'
305 REPO['status']='disabled'
306 REPO['BaseURL']='http://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch'
307 REPO['MirrorList']=''
308 REPO['GPGCheck']='yes'
309 REPO['GPGKey']='http://packages.erlang-solutions.com/rpm/erlang_solutions.asc'
310 REPO['Exclude']=''
311 REPO['IncludePkgs']=''
312 createrepo
313
314 #####################
315 #####################
316 #freeswitch
317 #####################
318 #####################
319 REPO['reponame']='freeswitch'
320 REPO['fullreponame']='Freeswitch'
321 REPO['EnableGroups']='no'
322 REPO['Visible']='yes'
323 REPO['status']='disabled'
324 REPO['BaseURL']='http://files.freeswitch.org/yum/$releasever/$basearch'
325 REPO['MirrorList']=''
326 REPO['GPGCheck']='yes'
327 REPO['GPGKey']='file:///etc/pki/rpm-gpg/RPM-GPG-KEY-FREESWITCH'
328 REPO['Exclude']=''
329 REPO['IncludePkgs']=''
330 createrepo
331
332 #####################
333 #####################
334 #firewall Service
335 #####################
336 #####################
337 REPO['reponame']='fws'
338 REPO['fullreponame']='Firewall Services'
339 REPO['EnableGroups']='no'
340 REPO['Visible']='no'
341 REPO['status']='disabled'
342 REPO['BaseURL']='http://repo.firewall-services.com/centos/$releasever'
343 REPO['MirrorList']=''
344 REPO['GPGCheck']='yes'
345 REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
346 REPO['Exclude']=''
347 REPO['IncludePkgs']=''
348 createrepo
349
350 #####################
351 #####################
352 #firewall Service testing
353 #####################
354 #####################
355 REPO['reponame']='fws-testing'
356 REPO['fullreponame']='Firewall Services testing'
357 REPO['EnableGroups']='no'
358 REPO['Visible']='no'
359 REPO['status']='disabled'
360 REPO['BaseURL']='http://repo.firewall-services.com/centos-testing/$releasever'
361 REPO['MirrorList']=''
362 REPO['GPGCheck']='yes'
363 REPO['GPGKey']='http://repo.firewall-services.com/RPM-GPG-KEY'
364 REPO['Exclude']=''
365 REPO['IncludePkgs']=''
366 createrepo
367
368 #####################
369 #####################
370 # Geekery (last update 2016-09-25)
371 #####################
372 #####################
373 REPO['reponame']='geekery'
374 REPO['fullreponame']='geekery repository'
375 REPO['EnableGroups']='no'
376 REPO['Visible']='no'
377 REPO['status']='disabled'
378 REPO['BaseURL']=''
379 REPO['MirrorList']='http://geekery.epac.to/geekery/el$releasever-mirrors'
380 REPO['GPGCheck']='yes'
381 REPO['GPGKey']='http://geekery.altervista.org/download.php?filename=GEEKERY-GPG-KEY'
382 REPO['Exclude']=''
383 REPO['IncludePkgs']=''
384 createrepo
385
386 if ( "%{?dist}" == "el7" ); then
387 #####################
388 #####################
389 # Odoo10-nightly
390 #####################
391 #####################
392 REPO['reponame']='odoo10-nightly'
393 REPO['fullreponame']='Odoo 10 Nightly - EL7'
394 REPO['EnableGroups']='no'
395 REPO['Visible']='no'
396 REPO['status']='disabled'
397 REPO['BaseURL']='http://nightly.odoo.com/10.0/nightly/rpm/'
398 REPO['MirrorList']=''
399 REPO['GPGCheck']='yes'
400 REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
401 REPO['Exclude']=''
402 REPO['IncludePkgs']=''
403 createrepo
404
405 #####################
406 #####################
407 # Odoo9-nightly
408 #####################
409 #####################
410 REPO['reponame']='odoo9-nightly'
411 REPO['fullreponame']='Odoo 9 Nightly - EL7'
412 REPO['EnableGroups']='no'
413 REPO['Visible']='no'
414 REPO['status']='disabled'
415 REPO['BaseURL']='http://nightly.odoo.com/9.0/nightly/rpm/'
416 REPO['MirrorList']=''
417 REPO['GPGCheck']='yes'
418 REPO['GPGKey']='https://nightly.odoo.com/odoo.key'
419 REPO['Exclude']=''
420 REPO['IncludePkgs']=''
421 createrepo
422 fi
423
424 #####################
425 #####################
426 # Okay
427 #####################
428 #####################
429 REPO['reponame']='okay'
430 REPO['fullreponame']='Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX'
431 REPO['EnableGroups']='no'
432 REPO['Visible']='no'
433 REPO['status']='disabled'
434 REPO['BaseURL']='http://repo.okay.com.mx/centos/$releasever/$basearch/release'
435 REPO['MirrorList']=''
436 REPO['GPGCheck']='no'
437 REPO['GPGKey']=''
438 REPO['Exclude']=''
439 REPO['IncludePkgs']=''
440 createrepo
441
442 #####################
443 #####################
444 # Openfusion
445 #####################
446 #####################
447 REPO['reponame']='openfusion'
448 REPO['fullreponame']='Openfusion'
449 REPO['EnableGroups']='no'
450 REPO['Visible']='yes'
451 REPO['status']='disabled'
452 REPO['BaseURL']='http://repo.openfusion.net/centos$releasever-$basearch'
453 REPO['MirrorList']=''
454 REPO['GPGCheck']='yes'
455 REPO['GPGKey']='http://repo.openfusion.net/RPM-GPG-KEY-openfusion'
456 REPO['Exclude']=''
457 REPO['IncludePkgs']=''
458 createrepo
459
460 #####################
461 #####################
462 # Reetspetit
463 #####################
464 #####################
465 REPO['reponame']='reetp'
466 REPO['fullreponame']='Mirror John Crisp reetspetit.com'
467 REPO['EnableGroups']='no'
468 REPO['Visible']='yes'
469 REPO['status']='disabled'
470 REPO['BaseURL']='https://reetspetit.com/smeserver/$releasever'
471 REPO['MirrorList']=''
472 REPO['GPGCheck']='no'
473 REPO['GPGKey']='https://reetspetit.com/RPM-GPG-KEY'
474 REPO['Exclude']=''
475 REPO['IncludePkgs']=''
476 createrepo
477
478 #remi-safe
479 REPO['reponame']='remi-safe'
480 REPO['fullreponame']='Remi - safe'
481 REPO['EnableGroups']='no'
482 REPO['GPGCheck']='yes'
483 REPO['Visible']='yes'
484 REPO['status']='enabled'
485 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/'
486 REPO['MirrorList']=''
487 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
488 REPO['Exclude']=''
489 REPO['IncludePkgs']=''
490 createrepo
491
492 #####################
493 #####################
494 #remi
495 #####################
496 #####################
497 REPO['reponame']='remi'
498 REPO['fullreponame']='Remi - EL unsafe, will conflict with your base rpms'
499 REPO['EnableGroups']='no'
500 REPO['GPGCheck']='yes'
501 REPO['Visible']='no'
502 REPO['status']='enabled'
503 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
504 REPO['MirrorList']=''
505 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
506 REPO['Exclude']='mysql*,php-*,phpMyAdmin'
507 REPO['IncludePkgs']=''
508 createrepo
509
510 #####################
511 #####################
512 #remi-ocsinventory
513 #####################
514 #####################
515 REPO['reponame']='remi-ocsinventory'
516 REPO['fullreponame']='Remi ocsinventory - EL'
517 REPO['EnableGroups']='no'
518 REPO['GPGCheck']='yes'
519 REPO['Visible']='yes'
520 REPO['status']='enabled'
521 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
522 REPO['MirrorList']=''
523 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
524 REPO['Exclude']=''
525 REPO['IncludePkgs']='ocsinventory* perl-Ocsinventory-Agent'
526 createrepo
527
528 #####################
529 #####################
530 #remi-ocsinventory
531 #####################
532 #####################
533 REPO['reponame']='remi-roundcube'
534 REPO['fullreponame']='Remi Roundcube - EL'
535 REPO['EnableGroups']='no'
536 REPO['GPGCheck']='yes'
537 REPO['Visible']='yes'
538 REPO['status']='enabled'
539 REPO['BaseURL']='http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/'
540 REPO['MirrorList']=''
541 REPO['GPGKey']='http://rpms.famillecollet.com/RPM-GPG-KEY-remi'
542 REPO['Exclude']=''
543 REPO['IncludePkgs']='php-kolab-net-ldap3,php-pear-Mail-mimeDecode,php-pear-Net-IDNA2,php-pear-Net-LDAP2,roundcubemail'
544 createrepo
545
546
547 #####################
548 #####################
549 #rpmfusion
550 #####################
551 #####################
552 REPO['reponame']='rpmfusion'
553 REPO['fullreponame']='rpmfusion free EL'
554 REPO['EnableGroups']='no'
555 REPO['Visible']='yes'
556 REPO['status']='disabled'
557 REPO['BaseURL']='http://download1.rpmfusion.org/free/el/updates/$releasever/$basearch/'
558 REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-updates-released-$releasever&arch=$basearch'
559 REPO['GPGCheck']='yes'
560 REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-$releasever'
561 REPO['Exclude']=''
562 REPO['IncludePkgs']=''
563 createrepo
564
565 #####################
566 #####################
567 #rpmfusion
568 #####################
569 #####################
570 REPO['reponame']='rpmfusion-nonfree'
571 REPO['fullreponame']='rpmfusion nonfree EL'
572 REPO['EnableGroups']='no'
573 REPO['Visible']='yes'
574 REPO['status']='disabled'
575 REPO['BaseURL']='http://download1.rpmfusion.org/nonfree/el/updates/$releasever/$basearch/'
576 REPO['MirrorList']='http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-el-updates-released-$releasever&arch=$basearch'
577 REPO['GPGCheck']='yes'
578 REPO['GPGKey']='https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-el-$releasever'
579 REPO['Exclude']=''
580 REPO['IncludePkgs']=''
581 createrepo
582
583 #####################
584 #####################
585 #Sogo nightly
586 #####################
587 #####################
588 REPO['reponame']='sogo'
589 REPO['fullreponame']='Inverse SOGo 2 Repository'
590 REPO['EnableGroups']='no'
591 REPO['Visible']='yes'
592 REPO['status']='disabled'
593 REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/2/rhel/$releasever/$basearch'
594 REPO['MirrorList']=''
595 REPO['GPGCheck']='no'
596 REPO['GPGKey']=''
597 REPO['Exclude']=''
598 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
599 createrepo
600
601 #####################
602 #####################
603 #Sogo3 nightly
604 #####################
605 #####################
606 REPO['reponame']='sogo3'
607 REPO['fullreponame']='Inverse SOGo 3 Repository'
608 REPO['EnableGroups']='no'
609 REPO['Visible']='yes'
610 REPO['status']='disabled'
611 REPO['BaseURL']='http://packages.inverse.ca/SOGo/nightly/3/rhel/$releasever/$basearch'
612 REPO['MirrorList']=''
613 REPO['GPGCheck']='no'
614 REPO['GPGKey']=''
615 REPO['Exclude']=''
616 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
617 createrepo
618
619 #####################
620 #####################
621 #Sogo stable
622 #####################
623 #####################
624 REPO['reponame']='sogo-subscription'
625 REPO['fullreponame']='Inverse SOGo Repository only with subscription'
626 REPO['EnableGroups']='no'
627 REPO['Visible']='yes'
628 REPO['status']='disabled'
629 REPO['BaseURL']='http://packages.inverse.ca/download/SOGo/RHEL$releasever/$basearch'
630 REPO['MirrorList']=''
631 REPO['GPGCheck']='no'
632 REPO['GPGKey']=''
633 REPO['Exclude']=''
634 REPO['IncludePkgs']='gnustep-base,gnustep-make,libmemcached,libwbxml,sogo*,sope49*'
635 createrepo
636
637 #####################
638 #####################
639 #Spectrum2
640 #####################
641 #####################
642 REPO['reponame']='spectrum2'
643 REPO['fullreponame']='Spectrum2'
644 REPO['EnableGroups']='no'
645 REPO['Visible']='yes'
646 REPO['status']='disabled'
647 REPO['BaseURL']='http://copr-be.cloud.fedoraproject.org/results/mcepl/spectrum2/epel-$releasever-$basearch'
648 REPO['MirrorList']=''
649 REPO['GPGCheck']='no'
650 REPO['GPGKey']=''
651 REPO['Exclude']=''
652 REPO['IncludePkgs']=''
653 createrepo
654
655 #####################
656 #####################
657 #stephDL
658 #####################
659 #####################
660 REPO['reponame']='stephdl'
661 REPO['fullreponame']='Mirror Stephane de Labrusse'
662 REPO['EnableGroups']='no'
663 REPO['Visible']='yes'
664 REPO['status']='disabled'
665 REPO['BaseURL']='http://mirror.de-labrusse.fr/smeserver/$releasever'
666 REPO['MirrorList']=''
667 REPO['GPGCheck']='yes'
668 REPO['GPGKey']='http://mirror.de-labrusse.fr/RPM-GPG-KEY'
669 REPO['Exclude']=''
670 REPO['IncludePkgs']=''
671 createrepo
672
673 #####################
674 #####################
675 #VirtualBox
676 #####################
677 #####################
678 REPO['reponame']='virtualbox'
679 REPO['fullreponame']='RHEL/CentOS VirtualBox'
680 REPO['EnableGroups']='no'
681 REPO['Visible']='yes'
682 REPO['status']='disabled'
683 REPO['BaseURL']='http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch'
684 REPO['MirrorList']=''
685 REPO['GPGCheck']='yes'
686 REPO['GPGKey']='https://www.virtualbox.org/download/oracle_vbox.asc'
687 REPO['Exclude']=''
688 REPO['IncludePkgs']=''
689 createrepo
690
691 #####################
692 #####################
693 #Webtatic
694 #####################
695 #####################
696 REPO['reponame']='webtatic'
697 REPO['fullreponame']='webtatic - EL'
698 REPO['EnableGroups']='no'
699 REPO['Visible']='yes'
700 REPO['status']='disabled'
701 REPO['BaseURL']=''
702 REPO['MirrorList']='http://mirror.webtatic.com/yum/el-$releasever/$basearch/mirrolist'
703 REPO['GPGCheck']='yes'
704 if ( "%{?dist}" == "el5" ); then
705 REPO['GPGKey']='http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy'
706 else
707 REPO['GPGKey']="http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-%{?dist}"
708 fi
709 REPO['Exclude']=''
710 REPO['IncludePkgs']=''
711 createrepo
712
713 #####################
714 #####################
715 #Xymon
716 #####################
717 #####################
718 REPO['reponame']='xymon'
719 REPO['fullreponame']='Xymon Terabithia RPMS - EL'
720 REPO['EnableGroups']='no'
721 REPO['Visible']='yes'
722 REPO['status']='disabled'
723 REPO['BaseURL']='http://terabithia.org/rpms/xymon/el$releasever/'
724 REPO['MirrorList']=''
725 REPO['GPGCheck']='yes'
726 REPO['GPGKey']="http://terabithia.org/rpms/RPM-GPG-KEY-JCLEAVER"
727 REPO['Exclude']=''
728 REPO['IncludePkgs']=''
729 createrepo
730
731 #####################
732 #####################
733 #Zabbix2.4
734 #####################
735 #####################
736 declare -A zabshort=( ['2.4']='24' ['2.5']='25' ['3.0']='30' ['3.1']='31' ['3.2']='32' ['3.4']='35' ['3.5']='35')
737 for elasver in "2.4" "2.5" "3.0"; do
738 REPO['reponame']="zabbix${zabshort[$elasver]}"
739 REPO['fullreponame']="Zabbix $elasver Official Repository"
740 REPO['EnableGroups']='no'
741 REPO['Visible']='yes'
742 REPO['status']='disabled'
743 REPO['BaseURL']="http://repo.zabbix.com/zabbix/$elasver/rhel/\$releasever/\$basearch/"
744 REPO['MirrorList']=''
745 REPO['GPGCheck']='yes'
746 REPO['GPGKey']="http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX"
747 REPO['Exclude']=''
748 REPO['IncludePkgs']=''
749 createrepo
750 done
751
752 #####################
753 #####################
754 #zmrepo
755 #####################
756 #####################
757 REPO['reponame']='zmrepo'
758 REPO['fullreponame']='ZoneMinder Repo - EL'
759 REPO['EnableGroups']='no'
760 REPO['Visible']='yes'
761 REPO['status']='disabled'
762 REPO['BaseURL']='http://zmrepo.mehvc.com/el/$releasever/$basearch'
763 REPO['MirrorList']=''
764 REPO['GPGCheck']='no'
765 REPO['GPGKey']=""
766 REPO['Exclude']=''
767 REPO['IncludePkgs']=''
768 createrepo
769
770
771 rm -f %{name}-%{version}-filelist*
772 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
773 cat %{name}-%{version}-filelist| grep atomic > %{name}-%{version}-filelist-atomic
774 cat %{name}-%{version}-filelist| grep centos-sclo > %{name}-%{version}-filelist-centos-sclo
775 cat %{name}-%{version}-filelist| egrep 'digium|asterisk' > %{name}-%{version}-filelist-asterisk
776 cat %{name}-%{version}-filelist| grep egroupware > %{name}-%{version}-filelist-egroupware
777 cat %{name}-%{version}-filelist| grep elastic > %{name}-%{version}-filelist-elastic
778 cat %{name}-%{version}-filelist| grep elrepo > %{name}-%{version}-filelist-elrepo
779 cat %{name}-%{version}-filelist| grep epel > %{name}-%{version}-filelist-epel
780 cat %{name}-%{version}-filelist| grep erlang > %{name}-%{version}-filelist-erlang
781 cat %{name}-%{version}-filelist| grep freeswitch > %{name}-%{version}-filelist-freeswitch
782 cat %{name}-%{version}-filelist| grep fws > %{name}-%{version}-filelist-fws
783 cat %{name}-%{version}-filelist| grep geekery > %{name}-%{version}-filelist-geekery
784 if ( "%{?dist}" == "el7" ); then
785 cat %{name}-%{version}-filelist| grep odoo > %{name}-%{version}-filelist-odoo
786 fi
787 cat %{name}-%{version}-filelist| grep okay > %{name}-%{version}-filelist-okay
788 cat %{name}-%{version}-filelist| grep openfusion > %{name}-%{version}-filelist-openfusion
789 cat %{name}-%{version}-filelist| grep reetp > %{name}-%{version}-filelist-reetp
790 cat %{name}-%{version}-filelist| grep remi-safe > %{name}-%{version}-filelist-remi-safe
791 cat %{name}-%{version}-filelist| grep remi-ocsinventory > %{name}-%{version}-filelist-remi-ocsinventory
792 cat %{name}-%{version}-filelist| grep remi-roundcube > %{name}-%{version}-filelist-remi-roundcube
793 cat %{name}-%{version}-filelist| grep remi|egrep -v 'safe|ocsinventory|roundcube' > %{name}-%{version}-filelist-remi
794 cat %{name}-%{version}-filelist| grep rpmfusion > %{name}-%{version}-filelist-rpmfusion
795 cat %{name}-%{version}-filelist| grep sogo > %{name}-%{version}-filelist-sogo
796 cat %{name}-%{version}-filelist| grep spectrum2 > %{name}-%{version}-filelist-spectrum2
797 cat %{name}-%{version}-filelist| grep stephdl > %{name}-%{version}-filelist-stephdl
798 cat %{name}-%{version}-filelist| grep virtualbox > %{name}-%{version}-filelist-virtualbox
799 cat %{name}-%{version}-filelist| grep webtatic > %{name}-%{version}-filelist-webtatic
800 cat %{name}-%{version}-filelist| grep xymon > %{name}-%{version}-filelist-xymon
801 cat %{name}-%{version}-filelist| grep zabbix > %{name}-%{version}-filelist-zabbix
802 cat %{name}-%{version}-filelist| grep zmrepo > %{name}-%{version}-filelist-zmrepo
803
804 %clean
805 cd ..
806 rm -rf %{name}-%{version}
807
808
809 #%files -f %{name}-%{version}-filelist
810 %files
811 %defattr(-,root,root)
812
813 %pre
814
815 %preun
816
817 %post
818
819 %postun
820 case "$1" in
821
822 0)
823 # this is an uninstallation
824 ;;
825
826 1)
827 # this is an upgrade
828 ;;
829 esac
830 %package atomic
831 Summary: Atomic Repository
832 %description atomic
833 Atomic Repository
834 %files atomic -f %{name}-%{version}-filelist-atomic
835 %defattr(-,root,root)
836
837 %package centos-sclo
838 Summary: CentOS Red-Hat software collection repository
839 %description centos-sclo
840 CentOS Red-Hat software collection repository only for x86_64 arch
841 %files centos-sclo -f %{name}-%{version}-filelist-centos-sclo
842 %defattr(-,root,root)
843
844 %package asterisk
845 Summary: All repositories you need for Asterisk and FreePBX
846 %description asterisk
847 All repositories you need for Asterisk and FreePBX
848 %files asterisk -f %{name}-%{version}-filelist-asterisk
849 %defattr(-,root,root)
850
851 %package egroupware
852 Summary: Repository for eGroupWare
853 %description egroupware
854 Repository for eGroupWare
855 %files egroupware -f %{name}-%{version}-filelist-egroupware
856 %defattr(-,root,root)
857
858 %package elastic
859 Summary: Repositories for elastic search
860 %description elastic
861 Repositories for elastic search
862 %files elastic -f %{name}-%{version}-filelist-elastic
863 %defattr(-,root,root)
864
865 %package elrepo
866 Summary: ElRepo.org Community Enterprise Linux Repository
867 %description elrepo
868 ElRepo.org Community Enterprise Linux Repository
869 %files elrepo -f %{name}-%{version}-filelist-elrepo
870 %defattr(-,root,root)
871
872 %package epel
873 Summary: Fedora EPEL Repository
874 %description epel
875 Fedora EPEL Repository
876 %files epel -f %{name}-%{version}-filelist-epel
877 %defattr(-,root,root)
878
879 %package erlang
880 Summary: Erlang Repository
881 %description erlang
882 Erlang is a programming language. It is specifically used for ejabberd.
883 %files erlang -f %{name}-%{version}-filelist-erlang
884 %defattr(-,root,root)
885
886 %package freeswitch
887 Summary: Freeswitch Repository
888 %description freeswitch
889 FreeSWITCH is a scalable open source cross-platform telephony platform designed to route and interconnect popular communication protocols using audio, video, text or any other form of media. It was created in 2006 to fill the void left by proprietary commercial solutions. FreeSWITCH also provides a stable telephony platform on which many applications can be developed using a wide range of free tools
890 %files freeswitch -f %{name}-%{version}-filelist-freeswitch
891 %defattr(-,root,root)
892
893 %package fws
894 Summary: Firewall Services repository
895 %description fws
896 Firewall Services repository
897 %files fws -f %{name}-%{version}-filelist-fws
898 %defattr(-,root,root)
899
900 %package geekery
901 Summary: Geekery Repository
902 %description geekery
903 Geekery Repository
904 %files geekery -f %{name}-%{version}-filelist-geekery
905 %defattr(-,root,root)
906
907 %package odoo
908 Summary: Odoo 10 Nightly - EL7 Repository
909 Distribution: el7
910 %description odoo
911 Odoo 10 Nightly - EL7 Repository
912 # comment as not available for centos 6 SME9
913 #%files odoo -f %{name}-%{version}-filelist-odoo
914 #%defattr(-,root,root)
915
916 %package okay
917 Summary: Extra OKay Packages for Enterprise Linux
918 %description okay
919 Extra OKay Packages for Enterprise Linux - Freeswitch and FusionPBX
920 %files okay -f %{name}-%{version}-filelist-okay
921 %defattr(-,root,root)
922
923 %package openfusion
924 Summary: Openfusion Repository
925 %description openfusion
926 Openfusion Repository
927 %files openfusion -f %{name}-%{version}-filelist-openfusion
928 %defattr(-,root,root)
929
930 %package reetp
931 Summary: Mirror John Crisp reetspetit.com
932 %description reetp
933 Mirror John Crisp reetspetit.com
934 %files reetp -f %{name}-%{version}-filelist-reetp
935 %defattr(-,root,root)
936
937 %package remi-safe
938 Summary: Remi safe repository
939 %description remi-safe
940 Remi safe repository
941 %files remi-safe -f %{name}-%{version}-filelist-remi-safe
942 %defattr(-,root,root)
943
944 %package remi-ocsinventory
945 Summary: Remi repository filtered to install OCSinventory
946 %description remi-ocsinventory
947 Remi repository filtered to install OCSinventory
948 %files remi-ocsinventory -f %{name}-%{version}-filelist-remi-ocsinventory
949 %defattr(-,root,root)
950
951 %package remi-roundcube
952 Summary: Remi repository filtered to install Roundcube
953 %description remi-roundcube
954 Remi repository filtered to install Roundcube
955 %files remi-roundcube -f %{name}-%{version}-filelist-remi-roundcube
956 %defattr(-,root,root)
957
958 %package remi-unsafe
959 Summary: Remi unsafe repository
960 %description remi-unsafe
961 Remi unsafe repository. We call it unsafe, not because of the work, but because it can conflict with base rpm of your favorite distro. Use it at your own risk if you are able to handle the situation.
962 %files remi-unsafe -f %{name}-%{version}-filelist-remi
963 %defattr(-,root,root)
964
965 %package rpmfusion
966 Summary: RPMFusion repositories
967 %description rpmfusion
968 RPMFusion repositories
969 %files rpmfusion -f %{name}-%{version}-filelist-rpmfusion
970 %defattr(-,root,root)
971
972 %package sogo
973 Summary: SOGo repositories
974 %description sogo
975 SOGo repositories
976 %files sogo -f %{name}-%{version}-filelist-sogo
977 %defattr(-,root,root)
978
979 %package spectrum2
980 Summary: Spectrum2 Repository
981 %description spectrum2
982 Spectrum2 Repository
983 %files spectrum2 -f %{name}-%{version}-filelist-spectrum2
984 %defattr(-,root,root)
985
986 %package stephdl
987 Summary: Stephane De Labrusse Repository
988 %description stephdl
989 Stephane De Labrusse Repository
990 %files stephdl -f %{name}-%{version}-filelist-stephdl
991 %defattr(-,root,root)
992
993 %package virtualbox
994 Summary: Virtualbox Repository
995 %description virtualbox
996 Virtualbox Repository
997 %files virtualbox -f %{name}-%{version}-filelist-virtualbox
998 %defattr(-,root,root)
999
1000 %package webtatic
1001 Summary: Webtatic Repository
1002 %description webtatic
1003 Webtatic Repository
1004 %files webtatic -f %{name}-%{version}-filelist-webtatic
1005 %defattr(-,root,root)
1006
1007 %package xymon
1008 Summary: Xymon Terabithia Repository
1009 %description xymon
1010 Xymon Terabithia Repository
1011 %files xymon -f %{name}-%{version}-filelist-xymon
1012 %defattr(-,root,root)
1013
1014 %package zabbix
1015 Summary: Zabbix official Repository
1016 %description zabbix
1017 Zabbix official Repository
1018 %files zabbix -f %{name}-%{version}-filelist-zabbix
1019 %defattr(-,root,root)
1020
1021 %package zmrepo
1022 Summary: Zone Minder Repository
1023 %description zmrepo
1024 Zone Minder Repository
1025 %files zmrepo -f %{name}-%{version}-filelist-zmrepo
1026 %defattr(-,root,root)
1027
1028
1029

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed