forked from Katello/katello
/
katello.spec
6090 lines (5817 loc) · 301 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.2.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
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.6.3
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.12
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: converge-ui-devel >= 1.0.1
# 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.6.3
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(redcarpet)
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
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
%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-jshintrb = %{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}
Requires: rubygem(redcarpet)
%if 0%{?fedora} > 16
Requires: rubygem(ruby-debug19)
%else
Requires: rubygem(ruby-debug)
%endif
Requires: rubygem(ZenTest) >= 4.4.0
Requires: rubygem(rspec-rails) >= 2.0.0
Requires: rubygem(autotest-rails) >= 4.1.0
Requires: rubygem(rcov) >= 0.9.9
Requires: rubygem(webrat) >= 0.7.3
Requires: rubygem(nokogiri) >= 0.9.9
Requires: rubygem(yard) >= 0.5.3
Requires: rubygem(ci_reporter) >= 1.6.3
Requires: rubygem(gettext) >= 1.9.3
Requires: rubygem(ruby_parser)
Requires: rubygem(js-routes)
Requires: rubygem(newrelic_rpm)
Requires: rubygem(logical-insight)
Requires: rubygem(rails-dev-boost)
Requires: rubygem(minitest)
Requires: rubygem(minitest-rails)
Requires: rubygem(minitest_tu_shim)
%description devel
Rake tasks and dependecies for Katello developers
%package devel-profiling
Summary: Katello devel support (profiling)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: rubygem(ruby-prof)
%description devel-profiling
Rake tasks and dependecies for Katello developers, which enables
profiling.
%package devel-jshintrb
Summary: Katello devel support (unit test and syntax checking)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: rubygem(newrelic_rpm)
Requires: rubygem(logical-insight)
%description devel-jshintrb
Rake tasks and dependecies for Katello developers, which enables
syntax checking and is need for unit testing.
%package devel-test
Summary: Katello devel support (testing)
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
Requires: rubygem(vcr)
Requires: rubygem(webmock)
Requires: rubygem(minitest)
%description devel-test
Rake tasks and dependecies for Katello developers, which enables
testing.
%prep
%setup -q
%build
#check for malformed gettext strings
script/check-gettext.rb -m -i
#copy converge-ui
cp -R /usr/share/converge-ui-devel/* ./vendor/converge-ui
rm ./public/fonts
mv ./vendor/converge-ui/fonts ./public/fonts
#configure Bundler
rm -f Gemfile.lock
sed -i '/@@@DEV_ONLY@@@/,$d' Gemfile
#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
rm -f Gemfile.lock
cp Gemfile Gemfile.old
echo 'gem "redcarpet"' >> Gemfile
rake apipie:static RAILS_ENV=apipie --trace
rake apipie:cache RAILS_RELATIVE_URL_ROOT=katello RAILS_ENV=apipie --trace
mv Gemfile.old Gemfile
%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
#copy the application to the target directory
mkdir .bundle
mv ./deploy/bundle-config .bundle/config
cp -R .bundle Gemfile Rakefile app autotest ca config config.ru db integration_spec lib locale public script spec vendor %{buildroot}%{homedir}
#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}.completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
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 symlink for Gemfile.lock (it's being regenerated each start)
ln -svf %{datadir}/Gemfile.lock %{buildroot}%{homedir}/Gemfile.lock
#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
rm -f %{datadir}/Gemfile.lock 2>/dev/null
/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
%{homedir}/app/helpers
%{homedir}/app/mailers
%dir %{homedir}/app/models
%{homedir}/app/models/*.rb
%{homedir}/app/models/candlepin
%{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
%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
%exclude %{homedir}/public/apipie-cache
%{homedir}/script
%exclude %{homedir}/script/service-wait
%{homedir}/spec
%{homedir}/tmp
%{homedir}/vendor
%{homedir}/.bundle
%{homedir}/config.ru
%{homedir}/Gemfile
%ghost %attr(0644,katello,katello) %{_sharedstatedir}/%{name}/Gemfile.lock
%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) %{_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
%{_sysconfdir}/bash_completion.d/%{name}
%{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}/lib/resources/foreman.rb
%{homedir}/lib/resources/foreman_model.rb
%{homedir}/lib/resources/foreman_model.rb
%{homedir}/app/models/foreman
%{homedir}/app/models/glue/foreman
%{homedir}/app/controllers/api/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
%{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
%ghost %{homedir}/Gemfile.lock
%{homedir}/Rakefile
%files headpin-all
%files api-docs
%doc doc/apidoc*
%{homedir}/public/apipie-cache
%files devel-all
%files devel
%{homedir}/lib/tasks/rcov.rake
%{homedir}/lib/tasks/yard.rake
%{homedir}/lib/tasks/hudson.rake
%{homedir}/lib/tasks/jsroutes.rake
%files devel-profiling
%files devel-jshintrb
%{homedir}/lib/tasks/jshint.rake
%files devel-test
%{homedir}/lib/tasks/test.rake
%{homedir}/script/pulp_integration_tests
%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
* Wed Oct 17 2012 Ivan Necas <inecas@redhat.com> 1.2.1-1
- skip symlinks during gettext check (msuchy@redhat.com)
- Moved trigger from body to document element. (gstoecke@redhat.com)
- Moved binding of notice display event to document ready callback due to
different code path execution during login notifications.
(gstoecke@redhat.com)
- Fixed the moving of the a.cancel_sync element (j.hadvig@gmail.com)
- adding parallel_tests gem so our unit tests can use multiple CPUs
(mmccune@redhat.com)
- 860952 - update Pool::find to not treat response as an array
(bbuckingham@redhat.com)
- do not call pulp service script, call qpidd and mongodb directly
(msuchy@redhat.com)
(lzap+git@redhat.com)
- package katello-common should own /etc/katello (msuchy@redhat.com)
- package katello-common should own /usr/share/katello (msuchy@redhat.com)
- package katello-common should own /usr/share/katello/lib (msuchy@redhat.com)
- package katello should own /usr/share/katello/lib/resources
(msuchy@redhat.com)
- package katello should own /usr/share/katello/lib/monkeys (msuchy@redhat.com)
- package katello should own /usr/share/katello/app/models/glue
(msuchy@redhat.com)
- package katello (and headpin) should own /usr/share/katello/app/models and
/usr/share/katello/app (msuchy@redhat.com)
- katello-common should own directory /usr/share/katello/db (msuchy@redhat.com)
- fixing - uninitialized constant Candlepin (lzap+git@redhat.com)
- 862753 - fixing typo in template deletion (lzap+git@redhat.com)
- gettext - fix syntax (inecas@redhat.com)
- 860952 - do not call with_indifferent_access on Array (msuchy@redhat.com)
(witlessbird@gmail.com)
- Added about link to Administer menu (daviddavis@redhat.com)
- gettext - move the check to the start of RPM build phase (inecas@redhat.com)
- fix for broken content update call and additional tests (dmitri@redhat.com)
- A slew of changes around content updates. (dmitri@redhat.com)
(komidore64@gmail.com)
- fixed failing db migrations (komidore64@gmail.com)
- 859963 - Fixed bad css character (daviddavis@redhat.com)
- gettext - add a checking script to find if there are note malformed gettext
stings (inecas@redhat.com)
- Fix missing should in gpg controller spec (daviddavis@redhat.com)
- Fixed gpg keys controller rspec (daviddavis@redhat.com)
(thomasmckay@redhat.com)
- Fixed katello.spec for Ruport (j.hadvig@gmail.com)
- gettext - get rid of all malformed interpolations in gettext strings
(inecas@redhat.com)
- gettext - use named substitution in gettext with more variables
(inecas@redhat.com)
- Fixed Gemfile for Ruport (j.hadvig@gmail.com)
- 864654 - katello-headpin-all correction (jomara@redhat.com)
- Fix handling of validation_errors in notices.js (daviddavis@redhat.com)
- 847002, 864216 - Fixes content search row rendering issue in IE8, product
color row in IE8 and the path selector not being set to the proper location
in IE8. (ehelms@redhat.com)
- 859329 - Fixed errors when editing gpg key (daviddavis@redhat.com)
- Incorporated code review suggestions. (gstoecke@redhat.com)
- Fencing SYNCHRONIZATION link on admin dropdown in headpin mode
(jomara@redhat.com)
- 864565 - Removing duplicate repos from gpgkey show (daviddavis@redhat.com)
- 864362-autocomplete - rescue bad searches in auto-complete fields
(thomasmckay@redhat.com)
- Fixing Ruport depend. on Prawn (jhadvig@redhat.com)
- Fixing Gemfile depend. (jhadvig@redhat.com)
- Fixing Ruport dependencies (jhadvig@redhat.com)
- Prawn gemfile and spec dependencies (jhadvig@redhat.com)
- Prawn integration for PDF generation (j.hadvig@gmail.com)
- fixing 'pt_BR' translations (msuchy@redhat.com)
- merge katello.katello translation from CFSE (msuchy@redhat.com)
- Merge branch 'master' of github.com:Katello/katello into 847002
(jrist@redhat.com)
- 847002 - Fixes rendering issue in IE9 for nested content search results.
(ehelms@redhat.com)
- Update to notice storage mechanism for automation testing framework.
(gstoecke@redhat.com)
- Merge branch 'master' into notices (gstoecke@redhat.com)
- 847002 - Fix for IE9 Changeset Environment Selector (jrist@redhat.com)
- updating to allow use of local var from PR comment (mmccune@redhat.com)
- switching our schema config names to match production and relaxing reset
(mmccune@redhat.com)
- 825858 - use organizations.label instead of cp_key (inecas@redhat.com)
- 859442 - systems - update query for adding system groups to system
(bbuckingham@redhat.com)
(bbuckingham@redhat.com)
- 825858 - implementing proxy permissions (lzap+git@redhat.com)
- 825858 - proxies permissions - removing comments (lzap+git@redhat.com)
- fix for BZ 824581: gpg keys are now being updated (dmitri@redhat.com)
- 862824 - load search results using where() manually (jsherril@redhat.com)
- 859877 - ipaddr does not show up for old subman version (jomara@redhat.com)
- Merge branch 'master' into notices (gstoecke@redhat.com)
- Added tracking of notices for use in test automation framework.
(gstoecke@redhat.com)
- requiring new minitest gems (jsherril@redhat.com)
- 835586 - force the encoding in the header to be UTF8 so Pulp can decode
(mmccune@redhat.com)
(thomasmckay@redhat.com)
- self. calling a private method (jomara@redhat.com)
- self.installed_products != self.installedProducts (jomara@redhat.com)
(daviddavis@redhat.com)
- Defensively checking installed product names; (jomara@redhat.com)
- Show foreman packages on about page (daviddavis@redhat.com)
- reverting accidental override (msuchy@redhat.com)
(thomasmckay@redhat.com)
(thomasmckay@redhat.com)
- Removing ANY SYSTEM FACT: from system search list (jomara@redhat.com)
- Resetting locale to English before each test (daviddavis@redhat.com)
- Fixed rspec translation missing failures (daviddavis@redhat.com)
- Making systems searchable on installed products (jomara@redhat.com)
- ignore fuzzy and obsolete translations (msuchy@redhat.com)
- Fixed broken label rspec tests (davidd@scimedsolutions.com)
- Make string more translator friendly (msuchy@redhat.com)
- add missing apostroph (msuchy@redhat.com)
- unify string "Removed repository" (msuchy@redhat.com)
- unify string "Couldn't find user role" (msuchy@redhat.com)
- unify string "Couldn't find user" (msuchy@redhat.com)
- unify string "Couldn't find template" (msuchy@redhat.com)
- unify string "Couldn't find system group" (msuchy@redhat.com)
- unify string "Couldn't find system" (msuchy@redhat.com)
- unify string "Couldn't find repository" (msuchy@redhat.com)
- unify string "Couldn't find product with id" (msuchy@redhat.com)
- unify string "Couldn't find organization" (msuchy@redhat.com)
- unify string "Couldn't find environment" (msuchy@redhat.com)
- unify string "Couldn't find changeset" (msuchy@redhat.com)
- unify string "Couldn't find activation key" (msuchy@redhat.com)
- unify string "Added repository" (msuchy@redhat.com)
- unify string "Added distribution" (msuchy@redhat.com)
(bbuckingham@redhat.com)
- 803702 - switch back to searching in the API by name and not label
(mmccune@redhat.com)
- 824581 - Fixing bug resulting from bad fix (davidd@scimedsolutions.com)
- 808581 - Stack traces logged to production.log for user-level validation
errors (pchalupa@redhat.com)
ch/bug/857230-mouse_over_errata_item_displays_error (kontakt@pitr.ch)
- 860251 - update the location of favicon.png (inecas@redhat.com)
- fix for BZ852352: changeset type is now being pre-selected depending on user
selection of 'Deletion from' or 'Promotion to' (dmitri@redhat.com)
- 767297 - Removed OS information (davidd@scimedsolutions.com)
- rails-dev-boost - removing whitespace (mmccune@redhat.com)
- rails-dev-boost - moving to own group and adding RPM requires
(mmccune@redhat.com)
- BZ 835875: removed a commented-out line of code (dmitri@redhat.com)
- 859415 - object labels - modify ui to assign a default label, if not
specified (bbuckingham@redhat.com)
- 858360 - Making katello-upgrade START services after upgrade is complete
(jomara@redhat.com)
- rails-dev-boost - adding rails-dev-boost gem (mmccune@redhat.com)
- 859409 - Fix for focus on org switcher drop down. (jrist@redhat.com)
- 859604 - Fixed search results total bug (davidd@scimedsolutions.com)
- 859784 - Missing template error (davidd@scimedsolutions.com)
- 857576 - Added api filter update test (davidd@scimedsolutions.com)
- fix for BZ 857031: notifications are being shown now when a system gets added
to/removed from a group (dmitri@redhat.com)
- 857576 - Package filter name can be edited by cli
(davidd@scimedsolutions.com)
- fixed an inadvertent spec test change (thomasmckay@redhat.com)
- fix for BZ 860702: show systems belonging to system groups and those not in
any on 'Systems' screen (dmitri@redhat.com)
(thomasmckay@redhat.com)
- introducing katello-utils with katello-disconnected script
(lzap+git@redhat.com)
- 767297 - Worked on about page and added spec (davidd@scimedsolutions.com)
- 860421 - Not verifying ldap roles for auth-less API calls (jomara@redhat.com)
- 767297 - Create an about page (davidd@scimedsolutions.com)
- release-version - display message when no available release version choices
or an error occurred fetching them (thomasmckay@redhat.com)
- 824581 - Fixed bug where gpgkey wasn't getting set
(davidd@scimedsolutions.com)
- Fixed code formating issue in migration (davidd@scimedsolutions.com)
- 832141 - Searching a system via 'By Environments' sub-tab doesn't save the
recent search in history (pajkycz@gmail.com)
- 857230 - Mouse over errata item displays error in UI Content Search
(pchalupa@redhat.com)
- it is now impossible to delete a provider if one (or more) of its
repositories or products has been promoted (dmitri@redhat.com)
- 845041 - UI - Exact Errata search in content search does not return result
(pajkycz@gmail.com)
- Hide 'new changeset' button when it should not be used (pajkycz@gmail.com)
- 856227 - set the height of the tabel row in the products_table to 32px
(j.hadvig@gmail.com)
- 848438 - Content search auto-complete should enable the 'Add' button after
typing full content name. (pajkycz@gmail.com)
- List of sync plans added (pajkycz@gmail.com)
- Always use environment when requesting repo (pajkycz@gmail.com)
- 806383 - [RFE] As the SE administrator I want to see all active and scheduled
sync tasks for all organizations in one place (pajkycz@gmail.com)
* Mon Oct 15 2012 Lukas Zapletal <lzap+git@redhat.com> 1.1.15-1
- Added about link to Administer menu
* Fri Oct 12 2012 Lukas Zapletal <lzap+git@redhat.com> 1.1.14-1
- Merge pull request #845 from xsuchy/pull-req-rpm
- package katello-common should own /etc/katello
- package katello-common should own /usr/share/katello
- package katello-common should own /usr/share/katello/lib
- package katello should own /usr/share/katello/lib/resources
- package katello should own /usr/share/katello/lib/monkeys
- package katello should own /usr/share/katello/app/models/glue
- package katello (and headpin) should own /usr/share/katello/app/models and
/usr/share/katello/app
- katello-common should own directory /usr/share/katello/db
- Merge pull request #842 from lzap/new-cli-test
- fixing - uninitialized constant Candlepin
- 862753 - fixing typo in template deletion
- 860952 - do not call with_indifferent_access on Array
- Merge pull request #836 from witlessbird/content-updates
- Merge pull request #825 from jhadvig/prawn_integration
- fix for broken content update call and additional tests
- A slew of changes around content updates.
- Merge pull request #830 from daviddavis/859963
- Merge pull request #832 from komidore64/busted_migration
(komidore64@gmail.com)
- fixed failing db migrations (komidore64@gmail.com)
- 859963 - Fixed bad css character
- Fix missing should in gpg controller spec
- Fixed gpg keys controller rspec
- Merge pull request #819 from thomasmckay/864362-autocomplete
- Merge pull request #823 from daviddavis/859329
- Fixed katello.spec for Ruport
- Fixed Gemfile for Ruport
- Merge pull request #826 from jsomara/864654
- 864654 - katello-headpin-all correction
- Fix handling of validation_errors in notices.js
- Merge pull request #821 from knowncitizen/847002
- Merge pull request #814 from ehelms/bug-847002
- 847002, 864216 - Fixes content search row rendering issue in IE8, product
color row in IE8 and the path selector not being set to the proper location
in IE8.
- 859329 - Fixed errors when editing gpg key
- Merge pull request #801 from gstoeckel/notices
- Incorporated code review suggestions.
- Merge pull request #822 from jsomara/navfence
- Fencing SYNCHRONIZATION link on admin dropdown in headpin mode
- 864565 - Removing duplicate repos from gpgkey show
- 864362-autocomplete - rescue bad searches in auto-complete fields
- Fixing Ruport depend. on Prawn
- Fixing Gemfile depend.
- Fixing Ruport dependencies
- Prawn gemfile and spec dependencies
- Prawn integration for PDF generation
- fixing 'pt_BR' translations
- merge katello.katello translation from CFSE
- Merge branch 'master' of github.com:Katello/katello into 847002
- 847002 - Fixes rendering issue in IE9 for nested content search results.
- Update to notice storage mechanism for automation testing framework.
- Merge branch 'master' into notices
- 847002 - Fix for IE9 Changeset Environment Selector
- updating to allow use of local var from PR comment
- switching our schema config names to match production and relaxing reset
- 825858 - use organizations.label instead of cp_key
- 859442 - systems - update query for adding system groups to system
- Merge pull request #799 from mccun934/835586-encoding-fix
- Merge pull request #805 from witlessbird/824581
- Merge pull request #646 from Pajk/hide_new_changeset_button
- Merge pull request #802 from jsomara/859877
- Merge pull request #804 from jlsherrill/862824
- Merge pull request #734 from daviddavis/code-format
- 825858 - implementing proxy permissions
- 825858 - proxies permissions - removing comments
- fix for BZ 824581: gpg keys are now being updated
- 862824 - load search results using where() manually
- 859877 - ipaddr does not show up for old subman version
- Merge branch 'master' into notices
- Added tracking of notices for use in test automation framework.
- requiring new minitest gems
- 835586 - force the encoding in the header to be UTF8 so Pulp can decode
- Merge pull request #560 from Pajk/806383
- Merge pull request #794 from jsomara/esinstalledproductfix
- self. calling a private method
- self.installed_products != self.installedProducts
- Merge pull request #793 from jsomara/esinstalledproductfix
- Defensively checking installed product names;
- Show foreman packages on about page
- reverting accidental override
- Merge pull request #767 from witlessbird/852352
- Merge pull request #772 from xsuchy/pull-req-transdup2
- Merge pull request #777 from jsomara/installedproducts
- Merge pull request #785 from jsomara/anysystemfact
- Merge pull request #748 from pitr-ch/bug/808581-Stack_traces_in_log
- Removing ANY SYSTEM FACT: from system search list
- Resetting locale to English before each test
- Fixed rspec translation missing failures
- Making systems searchable on installed products
- Merge pull request #774 from xsuchy/pull-req-fuzzy
- ignore fuzzy and obsolete translations
- Fixed broken label rspec tests
- Make string more translator friendly
- add missing apostroph
- unify string "Removed repository"
- unify string "Couldn't find user role"
- unify string "Couldn't find user"
- unify string "Couldn't find template"
- unify string "Couldn't find system group"
- unify string "Couldn't find system"
- unify string "Couldn't find repository"
- unify string "Couldn't find product with id"
- unify string "Couldn't find organization"
- unify string "Couldn't find environment"
- unify string "Couldn't find changeset"
- unify string "Couldn't find activation key"
- unify string "Added repository"
- unify string "Added distribution"
- Merge pull request #622 from Pajk/848438
- Merge pull request #770 from mccun934/803702-org-label-3
- 803702 - switch back to searching in the API by name and not label
- 824581 - Fixing bug resulting from bad fix
- 808581 - Stack traces logged to production.log for user-level validation
errors
- Merge pull request #702 from witlessbird/835875
- Merge pull request #729 from daviddavis/bz824581
- Merge pull request #720 from pitr-
ch/bug/857230-mouse_over_errata_item_displays_error
- 860251 - update the location of favicon.png
- Merge pull request #759 from bbuckingham/fork-859415
- fix for BZ852352: changeset type is now being pre-selected depending on user
selection of 'Deletion from' or 'Promotion to'
- Merge pull request #738 from daviddavis/about
- Merge pull request #756 from knowncitizen/859409
- 767297 - Removed OS information
- Merge pull request #757 from mccun934/add-dev-boost
- rails-dev-boost - removing whitespace
- rails-dev-boost - moving to own group and adding RPM requires
- BZ 835875: removed a commented-out line of code
- 859415 - object labels - modify ui to assign a default label, if not
specified
- rails-dev-boost - adding rails-dev-boost gem
- 859409 - Fix for focus on org switcher drop down.
- 767297 - Worked on about page and added spec
- 767297 - Create an about page
- 824581 - Fixed bug where gpgkey wasn't getting set
- Fixed code formating issue in migration
- 857230 - Mouse over errata item displays error in UI Content Search
- it is now impossible to delete a provider if one (or more) of its
repositories or products has been promoted
- Hide 'new changeset' button when it should not be used
- 848438 - Content search auto-complete should enable the 'Add' button after
typing full content name.
- List of sync plans added
- Always use environment when requesting repo
- 806383 - [RFE] As the SE administrator I want to see all active and scheduled
sync tasks for all organizations in one place
* Thu Sep 27 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.13-1
- 858360 - Making katello-upgrade START services after upgrade is complete
(jomara@redhat.com)
- 859604 - Fixed search results total bug (davidd@scimedsolutions.com)
- 859784 - Missing template error (davidd@scimedsolutions.com)
- 857576 - Added api filter update test (davidd@scimedsolutions.com)
- fix for BZ 857031: notifications are being shown now when a system gets added
to/removed from a group (dmitri@redhat.com)
- 857576 - Package filter name can be edited by cli
(davidd@scimedsolutions.com)