forked from Katello/katello
/
katello.spec
6589 lines (6307 loc) · 327 KB
/
katello.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# vim: sw=4:ts=4:et
#
# Copyright 2011 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public
# License as published by the Free Software Foundation; either version
# 2 of the License (GPLv2) or (at your option) any later version.
# There is NO WARRANTY for this software, express or implied,
# including the implied warranties of MERCHANTABILITY,
# NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
# have received a copy of GPLv2 along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
%global homedir %{_datarootdir}/%{name}
%global datadir %{_sharedstatedir}/%{name}
%global confdir deploy/common
Name: katello
Version: 1.3.1
Release: 1%{?dist}
Summary: A package for managing application life-cycle for Linux systems
BuildArch: noarch
Group: Applications/Internet
License: GPLv2
URL: http://www.katello.org
Source0: https://fedorahosted.org/releases/k/a/katello/%{name}-%{version}.tar.gz
Requires: %{name}-common
Requires: %{name}-glue-pulp
Requires: %{name}-glue-foreman
Requires: %{name}-glue-candlepin
Requires: %{name}-selinux
Conflicts: %{name}-headpin
Requires: rubygem(bundler_ext)
BuildRequires: rubygem(bundler_ext)
BuildRequires: asciidoc
BuildRequires: /usr/bin/getopt
%description
Provides a package for managing application life-cycle for Linux systems.
%package common
BuildArch: noarch
Summary: Common bits for all Katello instances
Requires: httpd
Requires: mod_ssl
Requires: openssl
Requires: elasticsearch
Requires: rubygems
Requires: rubygem(rails) >= 3.0.10
Requires: rubygem(haml) >= 3.1.2
Requires: rubygem(haml-rails)
Requires: rubygem(json)
Requires: rubygem(rest-client)
Requires: rubygem(jammit)
Requires: rubygem(rails_warden)
Requires: rubygem(net-ldap)
Requires: rubygem(compass) >= 0.11.5
Requires: rubygem(compass) < 0.12
Requires: rubygem(compass-960-plugin) >= 0.10.4
Requires: rubygem(oauth)
Requires: rubygem(i18n_data) >= 0.2.6
Requires: rubygem(gettext_i18n_rails)
Requires: rubygem(simple-navigation) >= 3.3.4
Requires: rubygem(pg)
Requires: rubygem(delayed_job) >= 2.1.4
Requires: rubygem(acts_as_reportable) >= 1.1.1
Requires: rubygem(ruport) >= 1.7.0
Requires: rubygem(prawn)
Requires: rubygem(daemons) >= 1.1.4
Requires: rubygem(uuidtools)
Requires: rubygem(thin)
Requires: rubygem(fssm)
Requires: rubygem(sass)
Requires: rubygem(chunky_png)
Requires: rubygem(tire) >= 0.3.0
Requires: rubygem(tire) < 0.4
Requires: rubygem(ldap_fluff)
Requires: rubygem(apipie-rails) >= 0.0.13
Requires: lsof
%if 0%{?rhel} == 6
Requires: redhat-logos >= 60.0.14
%endif
%if 0%{?rhel} == 6 || 0%{?fedora} < 17
Requires: ruby(abi) = 1.8
%else
Requires: ruby(abi) = 1.9.1
%endif
Requires: ruby
# <workaround> for 714167 - undeclared dependencies (regin & multimap)
# TODO - uncomment the statement once we push patched actionpack to our EL6 repo
#%if 0%{?fedora} && 0%{?fedora} <= 15
Requires: rubygem(regin)
#%endif
# </workaround>
Requires(pre): shadow-utils
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(post): chkconfig
Requires(postun): initscripts coreutils sed
BuildRequires: coreutils findutils sed
BuildRequires: rubygems
BuildRequires: rubygem-rake
BuildRequires: rubygem(gettext)
BuildRequires: rubygem(jammit)
BuildRequires: rubygem(chunky_png)
BuildRequires: rubygem(fssm) >= 0.2.7
BuildRequires: rubygem(compass) >= 0.11.5
BuildRequires: rubygem(compass-960-plugin) >= 0.10.4
BuildRequires: java >= 0:1.6.0
BuildRequires: rubygem(alchemy) >= 1.0.0
# we require this to be able to build api-docs
BuildRequires: rubygem(rails) >= 3.0.10
BuildRequires: rubygem(haml) >= 3.1.2
BuildRequires: rubygem(haml-rails)
BuildRequires: rubygem(json)
BuildRequires: rubygem(rest-client)
BuildRequires: rubygem(rails_warden)
BuildRequires: rubygem(net-ldap)
BuildRequires: rubygem(oauth)
BuildRequires: rubygem(i18n_data) >= 0.2.6
BuildRequires: rubygem(gettext_i18n_rails)
BuildRequires: rubygem(simple-navigation) >= 3.3.4
BuildRequires: rubygem(pg)
BuildRequires: rubygem(delayed_job) >= 2.1.4
BuildRequires: rubygem(acts_as_reportable) >= 1.1.1
BuildRequires: rubygem(ruport) >= 1.7.0
BuildRequires: rubygem(prawn)
BuildRequires: rubygem(daemons) >= 1.1.4
BuildRequires: rubygem(uuidtools)
BuildRequires: rubygem(thin)
BuildRequires: rubygem(sass)
BuildRequires: rubygem(tire) >= 0.3.0
BuildRequires: rubygem(tire) < 0.4
BuildRequires: rubygem(ldap_fluff)
BuildRequires: rubygem(apipie-rails) >= 0.0.12
BuildRequires: rubygem(maruku)
BuildRequires: rubygem(foreman_api)
%description common
Common bits for all Katello instances
%package all
BuildArch: noarch
Summary: A meta-package to pull in all components for Katello
Requires: %{name}
Requires: %{name}-configure
Requires: %{name}-cli
Requires: postgresql-server
Requires: postgresql
Requires: pulp
Requires: candlepin-tomcat6
Requires: candlepin-selinux
# the following backend engine deps are required by <katello-configure>
Requires: mongodb mongodb-server
Requires: qpid-cpp-server qpid-cpp-client qpid-cpp-client-ssl qpid-cpp-server-ssl
Requires: foreman foreman-postgresql
# </katello-configure>
%description all
This is the Katello meta-package. If you want to install Katello and all
of its dependencies on a single machine, you should install this package
and then run katello-configure to configure everything.
%package glue-pulp
BuildArch: noarch
Summary: Katello connection classes for the Pulp backend
Requires: %{name}-common
%description glue-pulp
Katello connection classes for the Pulp backend
%package glue-foreman
BuildArch: noarch
Summary: Katello connection classes for the Foreman backend
Requires: %{name}-common
# dependencies from bundler.d/foreman.rb
Requires: rubygem(foreman_api) >= 0.0.7
%description glue-foreman
Katello connection classes for the Foreman backend
%package glue-candlepin
BuildArch: noarch
Summary: Katello connection classes for the Candlepin backend
Requires: %{name}-common
%description glue-candlepin
Katello connection classes for the Candlepin backend
%package headpin
Summary: A subscription management only version of Katello
BuildArch: noarch
Requires: katello-common
Requires: katello-glue-candlepin
Requires: katello-selinux
Requires: rubygem(bundler_ext)
BuildRequires: rubygem(bundler_ext)
%description headpin
A subscription management only version of Katello.
%package headpin-all
Summary: A meta-package to pull in all components for katello-headpin
Requires: katello-headpin
Requires: katello-configure
Requires: katello-cli
Requires: postgresql-server
Requires: postgresql
Requires: candlepin-tomcat6
Requires: thumbslug
Requires: thumbslug-selinux
%description headpin-all
This is the Katello-headpin meta-package. If you want to install Headpin and all
of its dependencies on a single machine, you should install this package
and then run katello-configure to configure everything.
%package api-docs
Summary: Documentation files for katello API
BuildArch: noarch
Requires: %{name}-common
%description api-docs
Documentation files for katello API.
%package devel-all
Summary: Katello devel support (all subpackages)
BuildArch: noarch
Requires: %{name}-devel = %{version}-%{release}
Requires: %{name}-devel-profiling = %{version}-%{release}
Requires: %{name}-devel-test = %{version}-%{release}
Requires: %{name}-devel-checking = %{version}-%{release}
Requires: %{name}-devel-coverage = %{version}-%{release}
Requires: %{name}-devel-debugging = %{version}-%{release}
%description devel-all
Meta package to install all %{name}-devel-* subpackages.
%package devel
Summary: Katello devel support
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
# Gemfile
Requires: rubygem(ci_reporter) >= 1.6.3
# dependencies from bundler.d/development.rb
Requires: rubygem(rspec-rails) >= 2.0.0
Requires: rubygem(parallel_tests)
Requires: rubygem(yard) >= 0.5.3
Requires: rubygem(js-routes)
Requires: rubygem(gettext) >= 1.9.3
Requires: rubygem(ruby_parser)
Requires: rubygem(sexp_processor)
# dependencies from bundler.d/development_boost.rb
Requires: rubygem(rails-dev-boost)
# dependencies from bundler.d/apipie.rb
Requires: rubygem(maruku)
%description devel
Rake tasks and dependecies for Katello developers
%package devel-profiling
Summary: Katello devel support (profiling)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
# dependencies from bundler.d/profiling.rb
Requires: rubygem(ruby-prof)
Requires: rubygem(logical-insight)
Requires: rubygem(newrelic_rpm)
%description devel-profiling
Rake tasks and dependecies for Katello developers, which enables
profiling.
%package devel-checking
Summary: Katello devel support (unit test and syntax checking)
BuildArch: noarch
Provides: katello-devel-jshintrb = 1.2.1-1
Obsoletes: katello-devel-jshintrb < 1.2.1-1
Requires: %{name} = %{version}-%{release}
# dependencies from bundler.d/checking.rb
Requires: rubygem(therubyracer)
Requires: rubygem(ref)
Requires: rubygem(jshintrb)
%description devel-checking
Rake tasks and dependecies for Katello developers, which enables
syntax checking and is need for unit testing.
%package devel-coverage
Summary: Katello devel support (test coverage utils)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
# dependencies from bundler.d/coverage.rb
%if 0%{?fedora} > 16
Requires: rubygem(simplecov)
%else
Requires: rubygem(rcov) >= 0.9.9
%endif
%description devel-coverage
Rake tasks and dependecies for Katello developers, which enables
code coverage for tests.
%package devel-debugging
Summary: Katello devel support (debugging)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
# dependencies from bundler.d/debugging.rb
%if 0%{?fedora} > 16
Requires: rubygem(ruby-debug19)
%else
Requires: rubygem(ruby-debug)
%endif
%description devel-debugging
Rake tasks and dependecies for Katello developers, which enables
debugging Ruby code.
%package devel-test
Summary: Katello devel support (testing)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
# dependencies from bundler.d/test.rb
Requires: rubygem(ZenTest) >= 4.4.0
Requires: rubygem(autotest-rails) >= 4.1.0
Requires: rubygem(rspec-rails) >= 2.0.0
Requires: rubygem(webrat) >= 0.7.3
Requires: rubygem(nokogiri) >= 0.9.9
Requires: rubygem(vcr)
Requires: rubygem(webmock)
Requires: rubygem(minitest)
Requires: rubygem(minitest-rails)
Requires: rubygem(minitest_tu_shim)
Requires: rubygem(parallel_tests)
%description devel-test
Rake tasks and dependecies for Katello developers, which enables
testing.
%prep
%setup -q
%build
export RAILS_ENV=build
#check for malformed gettext strings
script/check-gettext.rb -m -i
#copy alchemy
ALCHEMY_DIR=$(rpm -ql rubygem-alchemy | grep -o '/.*/vendor' | sed 's/vendor$//' | head -n1)
cp -R $ALCHEMY_DIR* ./vendor/alchemy
#use Bundler_ext instead of Bundler
mv Gemfile Gemfile.in
#pull in branding if present
if [ -d branding ] ; then
cp -r branding/* .
fi
%if ! 0%{?fastbuild:1}
#compile SASS files
echo Compiling SASS files...
compass compile
#generate Rails JS/CSS/... assets
echo Generating Rails assets...
LC_ALL="en_US.UTF-8" jammit --config config/assets.yml -f
#create mo-files for L10n (since we miss build dependencies we can't use #rake gettext:pack)
echo Generating gettext files...
ruby -e 'require "rubygems"; require "gettext/tools"; GetText.create_mofiles(:po_root => "locale", :mo_root => "locale")'
%endif
#man pages
a2x -d manpage -f manpage man/katello-service.8.asciidoc
#api docs
%if 0%{?fastbuild:1}
# make empty directories when doing fast build
mkdir -p %{buildroot}%{homedir}/public/apipie-cache
mkdir -p doc/apidoc
%else
echo Generating API docs
# by default do not stop on missing dep and only require "build" environment
export BUNDLER_EXT_NOSTRICT=1
export BUNDLER_EXT_GROUPS="default apipie"
rake apipie:static --trace
rake apipie:cache RAILS_RELATIVE_URL_ROOT=katello --trace
%endif
%install
#prepare dir structure
install -d -m0755 %{buildroot}%{homedir}
install -d -m0755 %{buildroot}%{datadir}
install -d -m0755 %{buildroot}%{datadir}/tmp
install -d -m0755 %{buildroot}%{datadir}/tmp/pids
install -d -m0755 %{buildroot}%{datadir}/config
install -d -m0755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m0755 %{buildroot}%{_localstatedir}/log/%{name}
mkdir -p %{buildroot}/%{_mandir}/man8
# clean the application directory before installing
[ -d tmp ] && rm -rf tmp
# remove build gem group
rm -f bundler.d/build.rb
#copy the application to the target directory
mkdir .bundle
cp -R .bundle Gemfile.in bundler.d Rakefile app autotest ca config config.ru db integration_spec lib locale public script spec vendor %{buildroot}%{homedir}
rm -f {buildroot}%{homedir}/script/katello-reset-dbs
#copy configs and other var files (will be all overwriten with symlinks)
install -m 600 config/%{name}.yml %{buildroot}%{_sysconfdir}/%{name}/%{name}.yml
install -m 644 config/environments/production.rb %{buildroot}%{_sysconfdir}/%{name}/environment.rb
#copy cron scripts to be scheduled daily
install -d -m0755 %{buildroot}%{_sysconfdir}/cron.daily
install -m 755 script/katello-refresh-cdn %{buildroot}%{_sysconfdir}/cron.daily/katello-refresh-cdn
#copy init scripts and sysconfigs
install -Dp -m0644 %{confdir}/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -Dp -m0644 %{confdir}/service-wait.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/service-wait
install -Dp -m0755 %{confdir}/%{name}.init %{buildroot}%{_initddir}/%{name}
install -Dp -m0755 %{confdir}/%{name}-jobs.init %{buildroot}%{_initddir}/%{name}-jobs
install -Dp -m0644 %{confdir}/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -Dp -m0644 %{confdir}/%{name}-jobs.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-jobs
install -Dp -m0644 %{confdir}/%{name}.httpd.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
install -Dp -m0644 %{confdir}/thin.yml %{buildroot}%{_sysconfdir}/%{name}/
install -Dp -m0644 %{confdir}/mapping.yml %{buildroot}%{_sysconfdir}/%{name}/
#overwrite config files with symlinks to /etc/katello
ln -svf %{_sysconfdir}/%{name}/%{name}.yml %{buildroot}%{homedir}/config/%{name}.yml
#ln -svf %{_sysconfdir}/%{name}/database.yml %{buildroot}%{homedir}/config/database.yml
ln -svf %{_sysconfdir}/%{name}/environment.rb %{buildroot}%{homedir}/config/environments/production.rb
install -p -m0644 etc/service-list %{buildroot}%{_sysconfdir}/%{name}/
#create symlinks for some db/ files
ln -svf %{datadir}/schema.rb %{buildroot}%{homedir}/db/schema.rb
#create symlinks for data
ln -sv %{_localstatedir}/log/%{name} %{buildroot}%{homedir}/log
ln -sv %{datadir}/tmp %{buildroot}%{homedir}/tmp
#create symlinks for important scripts
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
ln -sv %{homedir}/script/katello-debug %{buildroot}%{_bindir}/katello-debug
ln -sv %{homedir}/script/katello-generate-passphrase %{buildroot}%{_bindir}/katello-generate-passphrase
ln -sv %{homedir}/script/katello-service %{buildroot}%{_bindir}/katello-service
ln -sv %{homedir}/script/service-wait %{buildroot}%{_sbindir}/service-wait
#re-configure database to the /var/lib/katello directory
sed -Ei 's/\s*database:\s+db\/(.*)$/ database: \/var\/lib\/katello\/\1/g' %{buildroot}%{homedir}/config/database.yml
#remove files which are not needed in the homedir
rm -f %{buildroot}%{homedir}/lib/tasks/.gitkeep
rm -f %{buildroot}%{homedir}/public/stylesheets/.gitkeep
rm -f %{buildroot}%{homedir}/vendor/plugins/.gitkeep
#branding
if [ -d branding ] ; then
ln -svf %{_datadir}/icons/hicolor/24x24/apps/system-logo-icon.png %{buildroot}%{homedir}/public/images/rh-logo.png
ln -svf %{_sysconfdir}/favicon.png %{buildroot}%{homedir}/public/images/embed/favicon.png
rm -rf %{buildroot}%{homedir}/branding
fi
#correct permissions
find %{buildroot}%{homedir} -type d -print0 | xargs -0 chmod 755
find %{buildroot}%{homedir} -type f -print0 | xargs -0 chmod 644
chmod +x %{buildroot}%{homedir}/script/*
chmod a+r %{buildroot}%{homedir}/ca/redhat-uep.pem
# install man page
install -m 644 man/katello-service.8 %{buildroot}/%{_mandir}/man8
%post common
#Add /etc/rc*.d links for the script
/sbin/chkconfig --add %{name}
/sbin/chkconfig --add %{name}-jobs
#Generate secret token if the file does not exist
#(this must be called both for installation and upgrade)
TOKEN=/etc/katello/secret_token
test -f $TOKEN || (echo $(</dev/urandom tr -dc A-Za-z0-9 | head -c128) > $TOKEN \
&& chmod 600 $TOKEN && chown katello:katello $TOKEN)
%posttrans common
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
%files
%attr(600, katello, katello)
%{_bindir}/katello-*
%ghost %attr(600, katello, katello) %{_sysconfdir}/%{name}/secret_token
%dir %{homedir}/app
%{homedir}/app/controllers
%exclude %{homedir}/app/controllers/api/foreman
%exclude %{homedir}/app/controllers/foreman
%{homedir}/app/helpers
%{homedir}/app/mailers
%dir %{homedir}/app/models
%{homedir}/app/models/*.rb
%{homedir}/app/models/candlepin
%{homedir}/app/stylesheets
%{homedir}/app/views
%exclude %{homedir}/app/views/foreman
%{homedir}/autotest
%{homedir}/ca
%{homedir}/config
%{homedir}/db/migrate/
%{homedir}/db/products.json
%{homedir}/db/seeds.rb
%{homedir}/integration_spec
%{homedir}/lib/*.rb
%dir %{homedir}/lib/glue
%{homedir}/lib/glue/*.rb
%{homedir}/lib/monkeys
%{homedir}/lib/navigation
%{homedir}/lib/notifications
%dir %{homedir}/lib/resources
%{homedir}/lib/resources/cdn.rb
%{homedir}/lib/resources/abstract_model.rb
%{homedir}/lib/tasks
%exclude %{homedir}/lib/tasks/rcov.rake
%exclude %{homedir}/lib/tasks/yard.rake
%exclude %{homedir}/lib/tasks/hudson.rake
%exclude %{homedir}/lib/tasks/jsroutes.rake
%exclude %{homedir}/lib/tasks/jshint.rake
%exclude %{homedir}/lib/tasks/test.rake
%exclude %{homedir}/script/pulp_integration_tests
%{homedir}/locale
%{homedir}/public/*.html
%{homedir}/public/*.txt
%{homedir}/public/*.ico
%{homedir}/public/assets
%{homedir}/public/fonts
%{homedir}/public/images
%{homedir}/public/javascripts
%{homedir}/public/stylesheets
%{homedir}/public/stylesheets/*.css
%attr(600, katello, katello) %{homedir}/public/stylesheets/compiled
%{homedir}/public/stylesheets/images
%exclude %{homedir}/public/apipie-cache
%{homedir}/script
%exclude %{homedir}/script/service-wait
%{homedir}/spec
%{homedir}/tmp
%{homedir}/vendor
%dir %{homedir}/.bundle
%{homedir}/config.ru
%{homedir}/Gemfile.in
%config(noreplace) %{_sysconfdir}/%{name}/service-list
%{homedir}/Rakefile
%{_mandir}/man8/katello-service.8*
%files common
%doc README LICENSE
%{_sbindir}/service-wait
%dir %{_sysconfdir}/%{name}
%config(noreplace) %attr(600, katello, katello) %{_sysconfdir}/%{name}/%{name}.yml
%config(noreplace) %{_sysconfdir}/%{name}/thin.yml
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%config %{_sysconfdir}/%{name}/environment.rb
%config %{_sysconfdir}/logrotate.d/%{name}
%config %{_sysconfdir}/logrotate.d/%{name}-jobs
%config %{_sysconfdir}/%{name}/mapping.yml
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/service-wait
%{_initddir}/%{name}
%{_initddir}/%{name}-jobs
%{homedir}/log
%dir %{homedir}/db
%{homedir}/db/schema.rb
%dir %{homedir}/lib
%{homedir}/lib/util
%{homedir}/script/service-wait
%defattr(-, katello, katello)
%dir %{homedir}
%attr(750, katello, katello) %{_localstatedir}/log/%{name}
%{datadir}
%ghost %attr(640, katello, katello) %{_localstatedir}/log/%{name}/production.log
%ghost %attr(640, katello, katello) %{_localstatedir}/log/%{name}/production_sql.log
%ghost %attr(640, katello, katello) %{_localstatedir}/log/%{name}/production_delayed_jobs.log
%ghost %attr(640, katello, katello) %{_localstatedir}/log/%{name}/production_delayed_jobs_sql.log
%files glue-pulp
%{homedir}/app/models/glue/pulp
%{homedir}/lib/resources/pulp.rb
%config(missingok) %{_sysconfdir}/cron.daily/katello-refresh-cdn
%files glue-candlepin
%{homedir}/app/models/glue/candlepin
%{homedir}/app/models/glue/provider.rb
%{homedir}/lib/resources/candlepin.rb
%files glue-foreman
%{homedir}/bundler.d/foreman.rb
%{homedir}/lib/resources/foreman.rb
%{homedir}/lib/resources/foreman_model.rb
%{homedir}/app/models/foreman
%{homedir}/app/models/glue/foreman
%{homedir}/app/controllers/api/foreman
%{homedir}/app/controllers/foreman
%{homedir}/app/views/foreman
%files all
%files headpin
%attr(600, katello, katello)
%{_bindir}/katello-*
%dir %{homedir}/app
%{homedir}/app/controllers
%{homedir}/app/helpers
%{homedir}/app/mailers
%{homedir}/app/models
%exclude %{homedir}/app/models/glue/*
%exclude %{homedir}/app/models/foreman
%exclude %{homedir}/app/controllers/api/foreman
%exclude %{homedir}/app/controllers/foreman
%exclude %{homedir}/app/views/foreman
%{homedir}/app/stylesheets
%{homedir}/app/views
%{homedir}/autotest
%{homedir}/ca
%{homedir}/config
%{homedir}/db/migrate/
%{homedir}/db/products.json
%{homedir}/db/seeds.rb
%{homedir}/integration_spec
%{homedir}/lib/*.rb
%{homedir}/lib/monkeys
%{homedir}/lib/navigation
%{homedir}/lib/notifications
%{homedir}/lib/resources
%exclude %{homedir}/lib/resources/candlepin.rb
%exclude %{homedir}/lib/resources/pulp.rb
%exclude %{homedir}/lib/resources/foreman_model.rb
%{homedir}/lib/tasks
%{homedir}/lib/util
%{homedir}/lib/glue/queue.rb
%{homedir}/locale
%{homedir}/public
%exclude %{homedir}/public/apipie-cache
%{homedir}/script
%{homedir}/spec
%{homedir}/tmp
%{homedir}/vendor
%{homedir}/.bundle
%{homedir}/config.ru
%{homedir}/Gemfile.in
%{homedir}/Rakefile
%files headpin-all
%files api-docs
%doc doc/apidoc*
%{homedir}/public/apipie-cache
%files devel-all
%files devel
%{homedir}/bundler.d/development.rb
%{homedir}/bundler.d/development_boost.rb
%{homedir}/lib/tasks/yard.rake
%{homedir}/lib/tasks/hudson.rake
%{homedir}/lib/tasks/jsroutes.rake
%files devel-profiling
%{homedir}/bundler.d/profiling.rb
%files devel-test
%{homedir}/bundler.d/test.rb
%{homedir}/lib/tasks/test.rake
%{homedir}/script/pulp_integration_tests
%files devel-checking
%{homedir}/bundler.d/checking.rb
%{homedir}/lib/tasks/jshint.rake
%files devel-coverage
%{homedir}/bundler.d/coverage.rb
%{homedir}/lib/tasks/rcov.rake
%files devel-debugging
%{homedir}/bundler.d/debugging.rb
%pre common
# Add the "katello" user and group
getent group %{name} >/dev/null || groupadd -r %{name} -g 182
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{homedir} -u 182 -s /sbin/nologin -c "Katello" %{name}
exit 0
%preun common
if [ $1 -eq 0 ] ; then
/sbin/service %{name}-jobs stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-jobs
/sbin/service %{name} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}
fi
%changelog
* Tue Dec 18 2012 Miroslav Suchý <msuchy@redhat.com> 1.3.1-1
- remove requires rubygem(execjs) and rubygem(multi_json) (msuchy@redhat.com)
- Removing OR for pipeor (jomara@redhat.com)
- Consumer.get was returning a 410 and surfacing that instead of continuing to
delete the deletion record (jomara@redhat.com)
- 878191 - allowing non-consumer access to deletion record remove
(jomara@redhat.com)
- Setting haml-rails to 0.3.4 to fix error (daviddavis@redhat.com)
- Use maruku instead of redcarpet for markdown -> html (inecas@redhat.com)
- 881616 - showing UNLIMITED instead of -1 on activation keys edit
(jomara@redhat.com)
- apipie - fix in loading nested controllers (tstrachota@redhat.com)
- smart proxies - api controller (tstrachota@redhat.com)
- katello-jobs-locale - corrected missing method call
extract_locale_from_accept_language_header (thomasmckay@redhat.com)
- 877894-i18n - remove N_ to allow match w/ translation
(thomasmckay@redhat.com)
- Upstream alchemy hash for i18n. (jrist@redhat.com)
- Fixes a few i18n issues: - i18n forced to browser locale on login page -
fixes a few items via alchemy for login page i18n. (jrist@redhat.com)
- Ruby19 - Fixes issue with array symbols appearing in UI when running on Ruby
1.9+. (ehelms@redhat.com)
- Minor simplification of the content_for(:content) block (jrist@redhat.com)
- Reverting a critical missing space and indenting for readability.
(jrist@redhat.com)
- Enhancement for former fix for 864565 (ares@igloonet.cz)
- Fixes 855433 bug - display GPG keys repositories (ares@igloonet.cz)
- Ordering of user_session caused interstitial to not load due to string
change. (jrist@redhat.com)
- Add elasticsearch package to ping information (daviddavis@redhat.com)
- 880113 - special validation for pool ids searching with ? (jomara@redhat.com)
- ja-validation - updated ja.yml file from https://github.com/svenfuchs/rails-
i18n (thomasmckay@redhat.com)
- katello-jobs-locale - set user's locale (thomasmckay@redhat.com)
- 860301: Updated specs for reset notice fixes (daviddavis@redhat.com)
- 860301: Showing notices for username and password resets
(daviddavis@redhat.com)
- Use spaces instead of tabs (ares@igloonet.cz)
- Spec refactoring (ares@igloonet.cz)
- delayed_jobs - fix for passing bundler ext environment variables
(tstrachota@redhat.com)
- Fixes 878156 bug with GPG key updating (ares@igloonet.cz)
- cli - packaged completion script (tstrachota@redhat.com)
- cli - python based shell completion (tstrachota@redhat.com)
- bundler.d - not need to require ci plugin (lzap+git@redhat.com)
- bundler.d - correcting permissions for development mode (lzap+git@redhat.com)
- ping - correcting return code for ping controller (lzap+git@redhat.com)
- 880710 - api systems controller - query org by name or label
(bbuckingham@redhat.com)
- architectures ui - architectures tied to operating systems - new model for
operating systems - helper for operating system multiselect
(tstrachota@redhat.com)
- abstract model - dsl for setting resource name (tstrachota@redhat.com)
- abstract model - processing apipie exceptions (tstrachota@redhat.com)
- architectures ui - basic crud actions (tstrachota@redhat.com)
- Bumping package versions for 1.3. (ehelms@redhat.com)
- 880710 - api - updates to use org id or label when retrieving org
(bbuckingham@redhat.com)
* Thu Dec 06 2012 Eric D Helms <ehelms@redhat.com> 1.2.2-1
- Spec - Adds line to dynamically determine installation directory of Alchemy.
(ehelms@redhat.com)
- Spec - Updates to new alchemy inclusion location in spec. (ehelms@redhat.com)
- bundler.d - adding new packages to the comp files (lzap+git@redhat.com)
- bundler.d - moving ci group into build and dev only file
(lzap+git@redhat.com)
- Alchemy - Submodule hash update. (ehelms@redhat.com)
- String - Fixes malformed i18n string. (ehelms@redhat.com)
- Alchemy - Spec file updates for Alchemy. (ehelms@redhat.com)
- Alchemy - Updates for pathing related to the codebase change in Alchemy.
(ehelms@redhat.com)
- Minor fixes for content_search and about page. (jrist@redhat.com)
- bundler.d - not distributing build gem group (lzap+git@redhat.com)
- Fix build_pxe_default call (inecas@redhat.com)
- Updating to lower case url. Removing comment from previous test.
(jrist@redhat.com)
- Fixing the password reset edit method and associated test. (jrist@redhat.com)
- 883949-portugese - change config mapping or portugese locale
(thomasmckay@redhat.com)
- 883949-chinese - change config mapping for chinese locale
(thomasmckay@redhat.com)
- bundler.d - changes for build time (apipie) (lzap+git@redhat.com)
- bundler.d - pull request review fixes (lzap+git@redhat.com)
- bundler.d - applying changes for the spec (lzap+git@redhat.com)
- bundler.d - copying only some gems from test into dev (lzap+git@redhat.com)
- bundler.d - adding support for jruby (lzap+git@redhat.com)
- bundler.d - adding test group in development env (lzap+git@redhat.com)
- bundler.d - introcuding dynamic loading of gems (lzap+git@redhat.com)
- bunndler.d - cleaning Gemfile (lzap+git@redhat.com)
- Password and Username Reset fixed. (jrist@redhat.com)
- Fix for missing images on fancyqueries dropdown. (jrist@redhat.com)
- Update git submodule to UI-Alchemy (alchemy), small fix for dashboard.
(jrist@redhat.com)
- Locking ci_reporter version due to errors in jekins (daviddavis@redhat.com)
- Added missing word 'find' in filters searching message. (ogmaciel@gnome.org)
- 876896, 876911, 878355, 878750, 874502, 874510 - Fixed panel-name/new-link
overlap (komidore64@gmail.com)
- only restart foreman if it is installed (mmccune@redhat.com)
- Lock therubyracer to beta version to fix jenkins (daviddavis@redhat.com)
- fixing foreman fencing that facilitated a failure (komidore64@gmail.com)
- i18n-fixes - updating missing localizations, including time format
(thomasmckay@redhat.com)
- Bash Completion - Updates bash completion with current command and sub-
command sets. (ehelms@redhat.com)
- including foreman as a service to start/stop with Katello
(mmccune@redhat.com)
- 877947-clear-es - added index clean up after import and after delete manifest
(thomasmckay@redhat.com)
- Added a check for anything besides html and json response for user#new
(jrist@redhat.com)
- 868872 - do not distribute katello-reset-dbs (msuchy@redhat.com)
- Change menu keys so that no menu items end up having same html 'id'
attribute. (jweiss@redhat.com)
- 876869 - Adjusting overflow and ellipsis for Roles page. (jrist@redhat.com)
- Fixes Bug 882294 - HTML element being rendered unescaped in promotions help
tip. (ogmaciel@gnome.org)
- Fixes the width of the application to 1152px. Fixes the login.
(jrist@redhat.com)
- Move foreman UI to glue foreman (mbacovsk@redhat.com)
- Provide the headers for when pinging Foreman (inecas@redhat.com)
- Having TravisCI test our Gemfile.locks (daviddavis@redhat.com)
- 878693 - [RFE] Selecting multiple systems does not give me any action
(komidore64@gmail.com)
- 880116 - pool was referencing a non-existant instance variable
(jomara@redhat.com)
- allow beta of therubyracer (msuchy@redhat.com)
- remove fix for Apipie v0.0.12 and switch to v0.0.13 (pchalupa@redhat.com)
- bundler_ext development - correcting path for dev mode (lzap+git@redhat.com)
- Revert "Foreman environment orchestration" (mbacovsk@redhat.com)
- Added Foreman stuff to katello-debug (mbacovsk@redhat.com)
- fixing build issue caused by 56de39ba17b446a2e511c4cbf57728a548581cf4
(komidore64@gmail.com)
- check-gettext - correct count of malformed strings (inecas@redhat.com)
- 878341 - [ja_JP][SAM Web GUI] Default environment name 'Library' should not
be localized. (komidore64@gmail.com)
- 880905 - certain locales were not escaped properly (jomara@redhat.com)
- Setting gem versions based on katello-devel-all.rpm (daviddavis@redhat.com)
- updating comment for pdf-reader requirement (jsherril@redhat.com)
- Foreman environment orchestration (mbacovsk@redhat.com)
- Updated F17 Gemfile.lock (daviddavis@redhat.com)
- requiring specific older version of pdf-reader (jsherril@redhat.com)
- Fixed small typo s/Subscriptons/Subscriptions. (ogmaciel@gnome.org)
- 866972 - katello-debug needs to take headpin into consideration
(komidore64@gmail.com)
- Ensure that the name and label is unique across all all orgs
(bkearney@redhat.com)
- update gems jshintrb and therubyracer (msuchy@redhat.com)
- fix unit tests when foreman is disabled (pchalupa@redhat.com)
- bundler_ext - development mode support
- new foreman_api version in gemfile (tstrachota@redhat.com)
- subnets - change data hash sent to foreman (tstrachota@redhat.com)
- abstract model - fix for indexed models not being deleted
(tstrachota@redhat.com)
- abstract model - separate module for indexed model (tstrachota@redhat.com)
- subnet ui - workaround for bug in chosen (tstrachota@redhat.com)
- foreman ui - helpers for resource select boxes (tstrachota@redhat.com)
- foreman ui - refactoring (tstrachota@redhat.com)
- subnets - elastic search indexing (tstrachota@redhat.com)
- domain ui - controller and es indexing (tstrachota@redhat.com)
- abstract model - support for callbacks (tstrachota@redhat.com)
- forman menu - new setup menu (tstrachota@redhat.com)
- subnets ui - select boxes for domains and smart proxies
(tstrachota@redhat.com)
- smart proxies - new model (tstrachota@redhat.com)
- subnets ui - basic CRUD actions (tstrachota@redhat.com)
- subnets - model and api controller (tstrachota@redhat.com)
- bundler_ext - require also :foreman until all require is merged
(lzap+git@redhat.com)
- require bundler_ext - especially in buildtime (msuchy@redhat.com)
- Gemfile - Adds comment marking dependency. (ehelms@redhat.com)
- add rubygem-jshintrb (msuchy@redhat.com)
- add rubygem-libv8 to katello-devel-jshintrb (msuchy@redhat.com)
- add parallel_tests to devel dependecies (msuchy@redhat.com)
- Gemfile - Adds explicit require in development,test for sexp_processor due to
not being pulled in as a dependency of ruby_parser in development.
(ehelms@redhat.com)
- 875185 - fixing enabled redhat repos page (jsherril@redhat.com)
- add foreman ping support (lzap+git@redhat.com)
- Additional color overrides, fixes for many small things throughout.
(jrist@redhat.com)
- introducing bundler_ext rubygem (lzap+git@redhat.com)
- fixing env check to look for true (jsherril@redhat.com)
- enabling debugger gem group by default (jsherril@redhat.com)
- 873038 - Entering an env name of "Library" when creating an organization does
not give clear error message (komidore64@gmail.com)
- 875609-hypervisor - allow hypervisors to successfully register and list in
katello (thomasmckay@redhat.com)
- 874280 - terminology changes for consistency across subman, candlepin, etc
(jomara@redhat.com)
- Translations - Update .po and .pot files for katello. (ehelms@redhat.com)
- Translations - New translations from Transifex for katello.
(ehelms@redhat.com)
- Translations - Download translations from Transifex for katello.
(ehelms@redhat.com)
- 877473-fencing - force use_foreman and use_pulp off for headpin
(thomasmckay@redhat.com)
- changed deployment checking (komidore64@gmail.com)
- force devboost to be on in development mode. (mmccune@redhat.com)
- fix monkey patch when RSpec::Version is undefined (pchalupa@redhat.com)
- fix warning text (pchalupa@redhat.com)
- ui - helper method for rendering editables (tstrachota@redhat.com)
- 874391-mandel - async job behind deleting manifest (thomasmckay@redhat.com)
- 866972 - katello-debug needs to take headpin into consideration
(komidore64@gmail.com)
- make bundler happy (msuchy@redhat.com)
- katello-upgrade redesign (lzap+git@redhat.com)
- Rspec - Fixes broken Rspec test. (ehelms@redhat.com)
- Rspec - Fixes issue with referencing Rspec version caused by newest version
to fix unit test runs. (ehelms@redhat.com)
- Gemfile - Fixes reference to Ruport git. (ehelms@redhat.com)
- switched to a more succinct way to open a binary file (dmitri@redhat.com)
- Setting therubyracer version (daviddavis@redhat.com)
- fixed a few issues dicovered when running under 1.9.3 (dmitri@redhat.com)
- Revert "Revert "Fixed katello.spec for Ruport"" (msuchy@redhat.com)
- Revert "Revert "Fixed Gemfile for Ruport"" (msuchy@redhat.com)
- Revert "Revert "Fixing Ruport depend. on Prawn"" (msuchy@redhat.com)
- Revert "Revert "Fixing Gemfile depend."" (msuchy@redhat.com)
- Revert "Revert "Fixing Ruport dependencies"" (msuchy@redhat.com)
- Revert "Revert "Prawn gemfile and spec dependencies"" (msuchy@redhat.com)
- Revert "Revert "Prawn integration for PDF generation"" (msuchy@redhat.com)
- fixing a regression i caused on one of my own bugs. (komidore64@gmail.com)
- 874185 - make sure we don't try and process labels when env is nil
(mmccune@redhat.com)
- 874510, 874502 (komidore64@gmail.com)
- 845620 - [RFE] Improve messaging around results of setting the yStream
(komidore64@gmail.com)
- 873680 - disallowing blank socket count in system creation
(jomara@redhat.com)
- 853445 - correctly determine the affected repos after deletion
(inecas@redhat.com)
- 874185 - fix the add_repository_library_id migration (inecas@redhat.com)
- Remove accidentally added file (inecas@redhat.com)
- Wiped out an unused file (paji@redhat.com)
- subsfilter - fixes BZ 859038 where the subscription filtering chooser would
grab focus when the panel opens (thomasmckay@redhat.com)
- 873809-js-error - removing oboslete red hat provider code and references
(two-pane subscriptions replaced) (thomasmckay@redhat.com)
- katello-configure - support reset data for the foreman (inecas@redhat.com)
- Get back Gemfile.lock symlink (inecas@redhat.com)
- 864936 - products - labelize name on create entry (bbuckingham@redhat.com)
- 873302 - Environments do not populate when adding a new user without full
admin (komidore64@gmail.com)
- Fixed the permissions to access the RH Subscriptions page (paji@redhat.com)
- fix version comparison (pchalupa@redhat.com)
- More color changes to derive from $primary and $kprimary (jrist@redhat.com)
- 864936 - small but important chg to fix manifest imports
(bbuckingham@redhat.com)
- 864936 - api/cli - generate an error label provided is already in use
(bbuckingham@redhat.com)
- 872686 - create a Role with single-character name fails
(komidore64@gmail.com)
- 864936 - update product labels to ensure uniqueness (bbuckingham@redhat.com)
- 872096 - correcting typo in a comment (lzap+git@redhat.com)
- fix missing constant error when fast_gettext gem have older version
(pchalupa@redhat.com)
- 871086 - Changes to respond with template validation errors as bad requests
instead of internal server errors. (ehelms@redhat.com)
- 872305 - scope product certificate search by organization (inecas@redhat.com)
- 866359 - API: /consumers/{id}/entitlements returns incorrect data and
Content-Type header (komidore64@gmail.com)
- forgot to change branding helper to use release_short method
(jomara@redhat.com)
- Moving some configuration options into branding helper (jomara@redhat.com)
- Adding more infoz to about page & footer (jomara@redhat.com)
- 750660 - System packages list doesn't allow you to search for a package
installed on the system (j.hadvig@gmail.com)
- puppet race condition in foreman (lzap+git@redhat.com)
- 871822 - str != str (jomara@redhat.com)
- remove deprecation warning (pchalupa@redhat.com)
- sync spec with Gemfile (msuchy@redhat.com)
- 872096 - review of katello rpm-delivered conf files (lzap+git@redhat.com)
- 871822 - nil check for mem_mb (jomara@redhat.com)
- 871822 - Moving factname for memtotal; now in kB by default
(jomara@redhat.com)
- allowing organizations (and also anything else that uses
katello_name_format_validator) to have a name that is one character in
length. (komidore64@gmail.com)
- Added OS-specific Gemfile.lock files (daviddavis@redhat.com)
- fixing a regression in headpin due to ascii username restrictions in katello.
(komidore64@gmail.com)
- Added fonts symlink. (jrist@redhat.com)
- 869380-confirm-delete - add confirmation message before deleting manifest