forked from candlepin/subscription-manager
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubscription-manager.spec
3835 lines (3585 loc) · 194 KB
/
subscription-manager.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
# Prefer systemd over sysv on Fedora 17+ and RHEL 7+
%global use_systemd (0%{?fedora} && 0%{?fedora} >= 17) || (0%{?rhel} && 0%{?rhel} >= 7)
# For optional building of ostree-plugin sub package. Unrelated to systemd
# but the same versions apply at the moment.
%global has_ostree %use_systemd
%global use_firstboot 0
%global use_initial_setup 1
%global rhsm_plugins_dir /usr/share/rhsm-plugins
%global use_gtk3 %use_systemd
%if 0%{?rhel} == 7
%global use_initial_setup 1
%global use_firstboot 0
%endif
# 6 < rhel < 7
%if 0%{?rhel} == 6
%global use_initial_setup 0
%global use_firstboot 1
%endif
# SLES
%if 0%{?sles_version}
%global use_initial_setup 0
%global use_firstboot 1
%endif
%global use_dnf (0%{?fedora} && 0%{?fedora} >= 22)
%global _hardened_build 1
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro -Wl,-z,now}
%if %{has_ostree}
%define install_ostree INSTALL_OSTREE_PLUGIN=true
%else
%define install_ostree INSTALL_OSTREE_PLUGIN=false
%endif
# makefile will guess, but be specific.
%if %{use_gtk3}
%define gtk_version GTK_VERSION=3
%else
%define gtk_version GTK_VERSION=2
%endif
%if %{use_initial_setup}
%define post_boot_tool INSTALL_INITIAL_SETUP=true INSTALL_FIRSTBOOT=false
%else
%define post_boot_tool INSTALL_INITIAL_SETUP=false INSTALL_FIRSTBOOT=true
%endif
# makefile defaults to INSTALL_YUM_PLUGIN=true
%define install_yum_plugins INSTALL_YUM_PLUGINS=true
# makefile defaults to INSTALL_DNF_PLUGIN=false
%if %{use_dnf}
%define install_dnf_plugins INSTALL_DNF_PLUGINS=true
%else
%define install_dnf_plugins INSTALL_DNF_PLUGINS=false
%endif
Name: subscription-manager
Version: 1.18.4
Release: 1%{?dist}
Summary: Tools and libraries for subscription and repository management
Group: System Environment/Base
License: GPLv2
URL: http://www.candlepinproject.org/
# How to create the source tarball:
#
# git clone https://github.com/candlepin/subscription-manager.git
# yum install tito
# tito build --tag subscription-manager-$VERSION-$RELEASE --tgz
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python-ethtool
Requires: python-iniparse
Requires: virt-what
Requires: python-rhsm >= 1.18.1
%if 0%{?sles_version}
Requires: dbus-1-python
%else
Requires: dbus-python
%endif
Requires: yum >= 3.2.29-73
%if !0%{?sles_version}
Requires: usermode
%endif
Requires: python-dateutil
%if %use_gtk3
Requires: gobject-introspection
Requires: pygobject3-base
%else
%if 0%{?sles_version}
Requires: python-gobject2
%else
Requires: pygobject2
%endif
%endif
# There's no dmi to read on these arches, so don't pull in this dep.
%ifnarch ppc ppc64 s390 s390x
Requires: python-dmidecode
%endif
%if %use_systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%else
%if 0%{?sles_version}
Requires(post): aaa_base
Requires(preun): aaa_base
%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%endif
%endif
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: desktop-file-utils
%if 0%{?fedora} || 0%{?rhel}
BuildRequires: redhat-lsb
%endif
BuildRequires: scrollkeeper
%if 0%{?sles_version}
BuildRequires: gconf2-devel
%else
BuildRequires: GConf2-devel
%endif
%if %use_gtk3
BuildRequires: gtk3-devel
%else
BuildRequires: gtk2-devel
%endif
%if %use_systemd
# We need the systemd RPM macros
BuildRequires: systemd
%endif
%description
The Subscription Manager package provides programs and libraries to allow users
to manage subscriptions and yum repositories from the Red Hat entitlement
platform.
%package -n subscription-manager-plugin-container
Summary: A plugin for handling container content.
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
%description -n subscription-manager-plugin-container
Enables handling of content of type 'containerImage' in any certificates
from the server. Populates /etc/docker/certs.d appropriately.
%package -n subscription-manager-gui
Summary: A GUI interface to manage Red Hat product subscriptions
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
# We need pygtk3 and gtk2 until rhsm-icon is ported to gtk3
%if %use_gtk3
Requires: pygobject3
Requires: gtk3
%else
Requires: pygtk2 pygtk2-libglade
%endif
Requires: usermode-gtk
Requires: dbus-x11
Requires: gnome-icon-theme
Requires(post): scrollkeeper
Requires(postun): scrollkeeper
# Renamed from -gnome, so obsolete it properly
Obsoletes: %{name}-gnome < 1.0.3-1
Provides: %{name}-gnome = %{version}-%{release}
# Fedora can figure this out automatically, but RHEL cannot:
# See #987071
Requires: librsvg2%{?_isa}
%description -n subscription-manager-gui
This package contains a GTK+ graphical interface for configuring and
registering a system with a Red Hat Entitlement platform and manage
subscriptions.
%package -n subscription-manager-migration
Summary: Migration scripts for moving to certificate based subscriptions
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
Requires: rhnlib
# Since the migration data package is not in Fedora, we can only require it
# on RHEL.
%if 0%{?rhel}
Requires: subscription-manager-migration-data
%endif
%description -n subscription-manager-migration
This package contains scripts that aid in moving to certificate based
subscriptions
%if %use_dnf
%package -n dnf-plugin-subscription-manager
Summary: Subscription Manager plugins for DNF
Group: System Environment/Base
Requires: %{name} = %{version}-%{release}
Requires: dnf >= 1.0.0
%description -n dnf-plugin-subscription-manager
This package provides plugins to interact with repositories and subscriptions
from the Red Hat entitlement platform; contains subscription-manager and
product-id plugins.
%endif
%if %use_firstboot
%package -n subscription-manager-firstboot
Summary: Firstboot screens for subscription manager
Group: System Environment/Base
Requires: %{name}-gui = %{version}-%{release}
Requires: rhn-setup-gnome
# Fedora can figure this out automatically, but RHEL cannot:
Requires: librsvg2
%description -n subscription-manager-firstboot
This package contains the firstboot screens for subscription-manager.
%endif
%if %use_initial_setup
%package -n subscription-manager-initial-setup-addon
Summary: initial-setup screens for subscription-manager
Group: System Environment/Base
Requires: %{name}-gui = %{version}-%{release}
Requires: initial-setup-gui >= 0.3.9.24-1
Obsoletes: subscription-manager-firstboot < 1.15.3-1
%description -n subscription-manager-initial-setup-addon
This package contains the initial-setup screens for subscription-manager.
%endif
%if %has_ostree
%package -n subscription-manager-plugin-ostree
Summary: A plugin for handling OSTree content.
Group: System Environment/Base
Requires: pygobject3-base
# plugin needs a slightly newer version of python-iniparse for 'tidy'
Requires: python-iniparse >= 0.4
Requires: %{name} = %{version}-%{release}
%description -n subscription-manager-plugin-ostree
Enables handling of content of type 'ostree' in any certificates
from the server. Populates /ostree/repo/config as well as updates
the remote in the currently deployed .origin file.
%endif
%prep
%setup -q
%build
make -f Makefile VERSION=%{version}-%{release} CFLAGS="%{optflags}" \
LDFLAGS="%{__global_ldflags}" OS_DIST="%{dist}" %{?gtk_version}
%install
rm -rf %{buildroot}
make -f Makefile install VERSION=%{version}-%{release} \
PREFIX=%{buildroot} PYTHON_SITELIB=%{python_sitelib} \
OS_VERSION=%{?fedora}%{?rhel}%{?sles_version} OS_DIST=%{dist} \
%{?install_ostree} %{?post_boot_tool} %{?gtk_version} \
%{?install_yum_plugins} %{?install_dnf_plugins}
desktop-file-validate %{buildroot}/etc/xdg/autostart/rhsm-icon.desktop
desktop-file-validate %{buildroot}/usr/share/applications/subscription-manager-gui.desktop
%find_lang rhsm
%find_lang %{name} --with-gnome
# fix timestamps on our byte compiled files so they match across arches
find %{buildroot} -name \*.py -exec touch -r %{SOURCE0} '{}' \;
# fake out the redhat.repo file
%{__mkdir} %{buildroot}%{_sysconfdir}/yum.repos.d
touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo
# fake out the certificate directories
%{__mkdir_p} %{buildroot}%{_sysconfdir}/pki/consumer
%{__mkdir_p} %{buildroot}%{_sysconfdir}/pki/entitlement
# Setup cert directories for the container plugin:
%{__mkdir_p} %{buildroot}%{_sysconfdir}/docker/certs.d/
%{__mkdir} %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com
install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}%{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt
%{__mkdir_p} %{buildroot}%{_sysconfdir}/etc/rhsm/ca
install -m 644 %{_builddir}/%{buildsubdir}/etc-conf/redhat-entitlement-authority.pem %{buildroot}/%{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem
%clean
rm -rf %{buildroot}
# base/cli tools use the gettext domain 'rhsm', while the
# gnome-help tools use domain 'subscription-manager'
%files -f rhsm.lang
%defattr(-,root,root,-)
%attr(755,root,root) %{_sbindir}/subscription-manager
# symlink to console-helper
%if !0%{?sles_version}
%{_bindir}/subscription-manager
%endif
%attr(755,root,root) %{_bindir}/rhsmcertd
%attr(755,root,root) %{_libexecdir}/rhsmcertd-worker
%attr(755,root,root) %{_libexecdir}/rhsmd
# init scripts and systemd services
%if %use_systemd
%attr(644,root,root) %{_unitdir}/rhsmcertd.service
%attr(644,root,root) %{_tmpfilesdir}/%{name}.conf
%else
%attr(755,root,root) %{_initrddir}/rhsmcertd
%endif
# our config dirs and files
%attr(755,root,root) %dir %{_sysconfdir}/pki/consumer
%attr(755,root,root) %dir %{_sysconfdir}/pki/entitlement
%attr(755,root,root) %dir %{_sysconfdir}/rhsm
%attr(755,root,root) %dir %{_sysconfdir}/rhsm/facts
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/rhsm/rhsm.conf
%config %attr(644,root,root) %{_sysconfdir}/rhsm/logging.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.SubscriptionManager.conf
# PAM config
%if !0%{?sles_version}
%{_sysconfdir}/pam.d/subscription-manager
%{_sysconfdir}/security/console.apps/subscription-manager
%endif
# remove the repo file when we are deleted
%ghost %{_sysconfdir}/yum.repos.d/redhat.repo
# yum plugin config
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/yum/pluginconf.d/subscription-manager.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/yum/pluginconf.d/product-id.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/yum/pluginconf.d/search-disabled-repos.conf
# misc system config
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/logrotate.d/subscription-manager
%attr(700,root,root) %{_sysconfdir}/cron.daily/rhsmd
%{_datadir}/dbus-1/system-services/com.redhat.SubscriptionManager.service
%attr(755,root,root) %dir %{_var}/log/rhsm
%attr(755,root,root) %dir %{_var}/spool/rhsm/debug
%attr(755,root,root) %dir %{_var}/run/rhsm
%attr(750,root,root) %dir %{_var}/lib/rhsm
%attr(750,root,root) %dir %{_var}/lib/rhsm/facts
%attr(750,root,root) %dir %{_var}/lib/rhsm/packages
%attr(750,root,root) %dir %{_var}/lib/rhsm/cache
%{_sysconfdir}/bash_completion.d/subscription-manager
%{_sysconfdir}/bash_completion.d/rct
%{_sysconfdir}/bash_completion.d/rhsm-debug
%{_sysconfdir}/bash_completion.d/rhn-migrate-classic-to-rhsm
%{_sysconfdir}/bash_completion.d/rhsm-icon
%{_sysconfdir}/bash_completion.d/rhsmcertd
%dir %{python_sitelib}/
%dir %{python_sitelib}/subscription_manager
%dir %{python_sitelib}/subscription_manager/api
%dir %{python_sitelib}/subscription_manager/branding
%dir %{python_sitelib}/subscription_manager/model
%dir %{python_sitelib}/subscription_manager/plugin
# code, python modules and packages
%{python_sitelib}/subscription_manager-*.egg-info/*
%{python_sitelib}/subscription_manager/*.py*
%{python_sitelib}/subscription_manager/api/*.py*
%{python_sitelib}/subscription_manager/branding/*.py*
%{python_sitelib}/subscription_manager/model/*.py*
%{python_sitelib}/subscription_manager/plugin/*.py*
# our gtk2/gtk3 compat modules
%dir %{python_sitelib}/subscription_manager/ga_impls
%{python_sitelib}/subscription_manager/ga_impls/__init__.py*
%if %use_gtk3
%{python_sitelib}/subscription_manager/ga_impls/ga_gtk3.py*
%else
%dir %{python_sitelib}/subscription_manager/ga_impls/ga_gtk2
%{python_sitelib}/subscription_manager/ga_impls/ga_gtk2/*.py*
%endif
# subscription-manager plugins
%dir %{rhsm_plugins_dir}
%dir %{_sysconfdir}/rhsm/pluginconf.d
# yum plugins
# Using _prefix + lib here instead of libdir as that evaluates to /usr/lib64 on x86_64,
# but yum plugins seem to normally be sent to /usr/lib/:
%{_prefix}/lib/yum-plugins/subscription-manager.py*
%{_prefix}/lib/yum-plugins/product-id.py*
%{_prefix}/lib/yum-plugins/search-disabled-repos.py*
# Incude rt CLI tool
%dir %{python_sitelib}/rct
%{python_sitelib}/rct/*.py*
%attr(755,root,root) %{_bindir}/rct
# Include consumer debug CLI tool
%dir %{python_sitelib}/rhsm_debug
%{python_sitelib}/rhsm_debug/*.py*
%attr(755,root,root) %{_bindir}/rhsm-debug
%doc
%{_mandir}/man8/subscription-manager.8*
%{_mandir}/man8/rhsmcertd.8*
%{_mandir}/man8/rct.8*
%{_mandir}/man8/rhsm-debug.8*
%{_mandir}/man5/rhsm.conf.5*
%doc LICENSE
%files -n subscription-manager-gui -f subscription-manager.lang
%defattr(-,root,root,-)
%attr(755,root,root) %{_sbindir}/subscription-manager-gui
# symlink to console-helper
%if !0%{?sles_version}
%{_bindir}/subscription-manager-gui
%endif
%{_bindir}/rhsm-icon
%dir %{python_sitelib}/subscription_manager/gui
%dir %{python_sitelib}/subscription_manager/gui/data
%dir %{python_sitelib}/subscription_manager/gui/data/ui
%dir %{python_sitelib}/subscription_manager/gui/data/glade
%dir %{python_sitelib}/subscription_manager/gui/data/icons
%{python_sitelib}/subscription_manager/gui/*.py*
%{python_sitelib}/subscription_manager/gui/data/ui/*.ui
%{python_sitelib}/subscription_manager/gui/data/glade/*.glade
%{python_sitelib}/subscription_manager/gui/data/icons/*.svg
%{_datadir}/applications/subscription-manager-gui.desktop
%{_datadir}/icons/hicolor/16x16/apps/*.png
%{_datadir}/icons/hicolor/22x22/apps/*.png
%{_datadir}/icons/hicolor/24x24/apps/*.png
%{_datadir}/icons/hicolor/32x32/apps/*.png
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/icons/hicolor/96x96/apps/*.png
%{_datadir}/icons/hicolor/256x256/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/appdata/subscription-manager-gui.appdata.xml
# gui system config files
%{_sysconfdir}/xdg/autostart/rhsm-icon.desktop
%if !0%{?sles_version}
%{_sysconfdir}/pam.d/subscription-manager-gui
%{_sysconfdir}/security/console.apps/subscription-manager-gui
%endif
%{_sysconfdir}/bash_completion.d/subscription-manager-gui
%doc
%{_mandir}/man8/subscription-manager-gui.8*
%{_mandir}/man8/rhsm-icon.8*
%doc LICENSE
%files -n subscription-manager-migration
%defattr(-,root,root,-)
%dir %{python_sitelib}/subscription_manager/migrate
%{python_sitelib}/subscription_manager/migrate/*.py*
%attr(755,root,root) %{_sbindir}/rhn-migrate-classic-to-rhsm
%doc
%{_mandir}/man8/rhn-migrate-classic-to-rhsm.8*
%doc LICENSE
%if 0%{?fedora} > 14
%doc README.Fedora
%endif
%files -n subscription-manager-plugin-container
%defattr(-,root,root,-)
%{_sysconfdir}/rhsm/pluginconf.d/container_content.ContainerContentPlugin.conf
%{rhsm_plugins_dir}/container_content.py*
%{python_sitelib}/subscription_manager/plugin/container.py*
# Copying Red Hat CA cert into each directory:
%attr(755,root,root) %dir %{_sysconfdir}/docker/certs.d/cdn.redhat.com
%attr(644,root,root) %{_sysconfdir}/rhsm/ca/redhat-entitlement-authority.pem
%attr(644,root,root) %{_sysconfdir}/docker/certs.d/cdn.redhat.com/redhat-entitlement-authority.crt
%if %has_ostree
%files -n subscription-manager-plugin-ostree
%defattr(-,root,root,-)
%{_sysconfdir}/rhsm/pluginconf.d/ostree_content.OstreeContentPlugin.conf
%{rhsm_plugins_dir}/ostree_content.py*
%{python_sitelib}/subscription_manager/plugin/ostree/*.py*
%endif
%if %use_initial_setup
%files -n subscription-manager-initial-setup-addon
%defattr(-,root,root,-)
%dir %{_datadir}/anaconda/addons/com_redhat_subscription_manager/
%dir %{_datadir}/anaconda/addons/com_redhat_subscription_manager/gui/
%dir %{_datadir}/anaconda/addons/com_redhat_subscription_manager/gui/spokes/
%dir %{_datadir}/anaconda/addons/com_redhat_subscription_manager/categories/
%dir %{_datadir}/anaconda/addons/com_redhat_subscription_manager/ks/
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/*.py*
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/gui/*.py*
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/gui/spokes/*.ui
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/gui/spokes/*.py*
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/categories/*.py*
%{_datadir}/anaconda/addons/com_redhat_subscription_manager/ks/*.py*
%endif
%if %use_firstboot
%files -n subscription-manager-firstboot
%defattr(-,root,root,-)
%{_datadir}/rhn/up2date_client/firstboot/rhsm_login.py*
%endif
%if %use_dnf
%files -n dnf-plugin-subscription-manager
%defattr(-,root,root,-)
%{python_sitelib}/dnf-plugins/*
%endif
%post
%if %use_systemd
%systemd_post rhsmcertd.service
%else
chkconfig --add rhsmcertd
%endif
if [ -x /bin/dbus-send ] ; then
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi
%if !%use_systemd
if [ "$1" -eq "2" ] ; then
/sbin/service rhsmcertd condrestart >/dev/null 2>&1 || :
fi
%endif
%post -n subscription-manager-gui
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
%preun
if [ $1 -eq 0 ] ; then
%if %use_systemd
%systemd_preun rhsmcertd.service
%else
/sbin/service rhsmcertd stop >/dev/null 2>&1
/sbin/chkconfig --del rhsmcertd
%endif
if [ -x /bin/dbus-send ] ; then
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi
fi
%postun
%if %use_systemd
%systemd_postun_with_restart rhsmcertd.service
%endif
%postun -n subscription-manager-gui
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
scrollkeeper-update -q || :
fi
%posttrans -n subscription-manager-gui
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Tue Nov 08 2016 Vritant Jain <[email protected]> 1.18.4-1
- Rev zanata version to 1.18.X ([email protected])
- 1389559: Parse log levels properly from config ([email protected])
- 1390549: Force input prompts to use stdout ([email protected])
- debrand so my Katello server errors don't point to real RHSM
* Mon Oct 17 2016 Vritant Jain <[email protected]> 1.18.3-1
- 1367128, 1367126: Add network.fqdn fact ([email protected])
- 1305729: Improve dnf-plugin package metadata ([email protected])
- 1382897: Don't always reenable register menu item ([email protected])
- 1382355: Don't swallow CLI autoattach exceptions ([email protected])
- 1245473: Add container-specific no-certs warning ([email protected])
- 1369577: Fix rct cat-manifest --no-content format ([email protected])
- 1379258: Fix alignment of GTK3 choose_server screen ([email protected])
- 1320371: Display user-friendly rate limit messages ([email protected])
- 1362731: Change titles when moving to subscription attachment
- 1163968: Use macro for service restart ([email protected])
- 1372779: Fix typo in "connection" ([email protected])
- 1259768: initial-setup: notify and block for async ([email protected])
- 1365472: Add keyboard mnemonics for initial-setup ([email protected])
- 1176219: Treat port as integer for GUI conn test ([email protected])
- 1366523: Ensure that each quantity spinner has proper settings
* Fri Sep 16 2016 Alex Wood <[email protected]> 1.18.2-1
- 1176219: Error out if bad proxy settings detected ([email protected])
- 1376014: Clear activation key list when checkbox unchecked
- 1367509: fix cert not found message, expand tilde ([email protected])
- 1373922: Add cat-manifest --no-content desc to man ([email protected])
- 1346368: Add server_timeout to rhsm.conf manpage ([email protected])
- 1374389: rm --no-content from stat-cert completion ([email protected])
- 1366799: Do not check for a releaseVer override when in container
- 1185914: migrate - handle legacy services/packages ([email protected])
- 1367657: Escape RestlibExceptions for gui display ([email protected])
- 1371632: Disallow connection test w/ missing info ([email protected])
- 1372673: Ensure user is able to skip auto attach during initial-setup
- 1330515: Account for keyboard interrupt ([email protected])
- 1371202: Make sub attach view expand in GTK3 ([email protected])
- 1370623: Fix text sorting for treeview columns ([email protected])
- 1369522: Add cat-manifest --no-content to bash completion
- 1298140: Set default window icon ([email protected])
- 1331739: Validate repo-override --remove non-empty [squashed]
- 1323271: Update compliance when facts update ([email protected])
- Disallow empty name for --add ([email protected])
- Make repo-override --add emit error same as remove ([email protected])
- 1368362: Do not display logging config error on upgrade ([email protected])
- 1366055: Add docs for the LOGGING section to rhsm.conf man page
- 1366301: Entitlement regeneration failure no longer aborts refresh
- 1336428: Check notification object before use ([email protected])
- 1365280: Change default log level back to INFO ([email protected])
- 1362138: Change method signature for Anaconda addon ([email protected])
- 1251516: Disable import when registered ([email protected])
- 1336880: Print virt_limit attributes with rct cat-manifest.
- 1336883: Add --no-content switch to cat-manifest to reduce output.
- Updated required python-rhsm version ([email protected])
- 1334916: Move logging configuration to rhsm.conf ([email protected])
- 1264108: Clear error message on back action ([email protected])
- Kill transient parent warnings from Register dialog ([email protected])
- 1333904: 1333906: Append accessible name to contain selected value
- 1360909: The refresh command now requests entitlement cert regeneration
- 1351009: Modify message to cover more scenarios ([email protected])
- 1351370: Ensure rhsmd exits on exceptions ([email protected])
- Don't warn about GTK_VERSION if SUBMAN_GTK_VERSION is set ([email protected])
- 1323276: Don't display or store 'None' in proxy values ([email protected])
- 1327179: Check proxy configuration at GUI startup ([email protected])
* Fri Jul 15 2016 Alex Wood <[email protected]> 1.18.1-1
- Bump version to 1.18 ([email protected])
* Tue Jul 12 2016 Vritant Jain <[email protected]> 1.17.9-1
- 1353662: Explicitly use ConsumerIdentity keypath and certpath methods
- 1268307, 1268043, 1257179: Disable back button on registration dialog when
there is no back ([email protected])
- 1335371: Allow auto-attach in GUI when system status is partial
* Wed Jun 22 2016 Vritant Jain <[email protected]> 1.17.8-1
- 1335537: Fix typo in proxy message ([email protected])
- Remove sys.path shenanigans that break yum imports. ([email protected])
- 1330054: Set hostname, port and prefix on default button clicked
- 1325083: Fix available sort order ([email protected])
- 874735: Support fact collection of multiple ips per interface
- Added basic SLES compatibility Tested against SLES 11 SP3
- drop xtraceback nose plugin usage as it is not available as an PRM
- Fix Flake8 Errors ([email protected])
- 1337817: The 'Start-End Date' of expired subscription is not in red status
when the subscription expired. ([email protected])
- 1319678: Alter the return message for removing entitlements at server
* Fri Jun 03 2016 Vritant Jain <[email protected]> 1.17.7-1
- 1297493, 1297485: Restrict visibility of subscription-manager caches.
- pull translations from zanata 1.17.X, after pushing 1.16.X translations to
1.17.X and pushing keys file ([email protected])
- update keys using make gettext ([email protected])
- pull translations from zanata 1.16.X ([email protected])
- 1328729: add registry.redhat.io to default registry_hostnames
- Add lxml requirement to test-requirements. ([email protected])
- Add noop implementation for deprecated Makefile target. ([email protected])
- Force version to be converted to a string. ([email protected])
- Correct incorrectly defined options for custom install command.
- Let setup.py handle populating version.py ([email protected])
- Eliminate loading modules from /usr/share/rhsm. ([email protected])
- Switch to using lxml for linting. ([email protected])
- Handle pep8/flake8 not being available in build environments.
- Exclude OSTree packages from installation by default. ([email protected])
- Make XPath searching 2.6 compatible. ([email protected])
- Fix errors found by new linters ([email protected])
- Don't use super() with ElementTree.XMLParser. ([email protected])
- Add some comments on build philosophy. ([email protected])
- Disable version.py generation via setup.py. ([email protected])
- Reorganize spec file. ([email protected])
- Address issue where Flake8 checked the same file multiple times.
- Makefile changes. ([email protected])
- Consolidate targets in Makefile. ([email protected])
- Pare down the Makefile. ([email protected])
- Remove items from Makefile now handled by setuptools. ([email protected])
- Align Makefile with changes made in setup.py. ([email protected])
- Remove docs for long deprecated program. ([email protected])
- Fix deprecated XPath expression. Remove call to missing command.
- Add icon and Glade files files into setup.py ([email protected])
- Add desktop files to setuptools build. ([email protected])
- Merge translations back into desktop file. ([email protected])
- Add linter to search for undefined Glade handlers. ([email protected])
- Check for use of undefined widgets ([email protected])
- Use *args for multiple glob searches. ([email protected])
- Scan .glade files not .ui files for problematic constructs.
- Detect debug imports and flag them. ([email protected])
- Use extensions that won't be confused for source files. ([email protected])
- Simplify AST checking and make it more flexible. ([email protected])
- Use AST parsing to find constructs that confuse xgettext. ([email protected])
- Add linting commands. ([email protected])
- Use some distutils provided utilities. Refactor. ([email protected])
- Begin process of moving to distutils for building. ([email protected])
- 1283749: Change some registration dialogs to error ([email protected])
* Mon May 09 2016 Vritant Jain <[email protected]> 1.17.6-1
- 1268094: Avoid traceback on unreg with >1 sub ([email protected])
- 1329397: github issue #1409 ([email protected])
- 1301215: Test proxy connection before making call 1176219: Stop before cache
is returned when using bad proxy options ([email protected])
- 1315591: Catches exception and allows process to continue
* Fri Apr 22 2016 Vritant Jain <[email protected]> 1.17.5-1
- Added RHEL 7.3 release target ([email protected])
- 1320507: Use config entry before default for port and prefix
- 1317613: Typo in selectsla.ui ([email protected])
- 1321831: Clear auto-attach dialog when consumer has been deleted
* Thu Mar 31 2016 Alex Wood <[email protected]> 1.17.4-1
- 1315859: Only show one proxy dialog ([email protected])
- 1309553: Stylish fixes for consumer fixes ([email protected])
- 1313631: Registration with one environment proceeds as normal
* Thu Mar 10 2016 Alex Wood <[email protected]> 1.17.3-1
- 1304427: Fixes system path to properly import from module
subscription_manager ([email protected])
- 1266935: Turn sub-man logging to INFO level. ([email protected])
- register screen -> reg screen and pkg profile ([email protected])
- 1264964: Always use cert auth for package profile ([email protected])
- 1309553: Do not fail on check for consumer["type"]["manifest"]
- 1304680: Include error detail in message ([email protected])
- 1312367: Progress bar needs to go away on repo update connection fail
- 1311935: Emits register-message instead of register-error for display of user
errors ([email protected])
- 1302564: Push 'Done' box as close to center of firstboot page as possible
- 1308523: Navigation buttons sensitivity matches the current_screen.ready
- 1302775: Navigate through all rhsm firstboot screens ([email protected])
- 1304280: Tab stop needed on cancel button ([email protected])
- 1303092: GUI issues in Repos and Help ([email protected])
* Fri Feb 19 2016 Alex Wood <[email protected]> 1.17.2-1
- 1308732: Leave hw fact virt.uuid unset if unknown ([email protected])
- 1290885: Display formatted error if no DISPLAY exists. ([email protected])
* Mon Feb 01 2016 Christopher Snyder <[email protected]> 1.17.1-1
- 1300259: Select service level label no longer overlaps dropdown box
- 1220283: Choose server text no longer overlapped by icon.
- 1300816: Add proc_cpuinfo facts for ppc64/le ([email protected])
- 1300791: Update man page footers ([email protected])
- 1300805: Add support for ppc64 virt.uuid ([email protected])
* Tue Jan 19 2016 Christopher Snyder <[email protected]> 1.16.8-1
- 1298586: Message needed for remove only invalid pool ([email protected])
- 1046132: rhsm_icon uses status from check_status ([email protected])
- 1282961: Update yum version to current RHEL 6.8 one ([email protected])
- 1046132: rhsm-icon pops up at annoying times - a second attempt
- 1298327: Handles exception in repolib ([email protected])
- 1297313: Fixed layout issues with the repository management dialog on GTK2
- 1292038: Changed adjustments to GtkAdjustment objects
- 1292013: Retain reference to backend for use in proxy config
* Fri Jan 08 2016 Alex Wood <[email protected]> 1.16.7-1
- 1263037: Change RHSM Icon reporting of unregistered system
- 1283749: Upgrade the dialogs to error when required fields are blank.
- 1222627: Allows removal of product certs with no active repos, given
temp_disabled_repos ([email protected])
- 1163398: Modify icon-rhsm man page to reflect the help text
- Install docs with mode 644 ([email protected])
- 1288626: Does not report pool ids as serial numbers, ignore duplicates
- 1061407: Avoid unwanted translations for subscription-manager by string
substitutions ([email protected])
- Output of errors now goes to stderr ([email protected])
- Use matches string to highlight the field(s) containing the match
* Fri Dec 04 2015 Alex Wood <[email protected]> 1.16.6-1
- 1285004: Adds check for access to the required manager capabilty
- 1278472: Change default registration url to subscription.rhsm.redhat.com
- 1275179: Do not allow quantity with auto attach ([email protected])
- 976859: Only check server version if asked. ([email protected])
- 1195003: Subscription manager man page mention of wild cards for repo enable
- Use the stock 'close' button for close button. ([email protected])
* Thu Oct 15 2015 Alex Wood <[email protected]> 1.16.4-1
- 1264964: Ignore uuid=None on package sync ([email protected])
- Set register-status in RegisterInfo init. ([email protected])
- Add glade for selectsla combobox for rhel6 ([email protected])
- 1254460: Fixed the credits button in the about dialog in subman GUI
- 1192120: Fixed remaining instances of "reregister" in the man pages
- 1270204: Crash report no longer sent when widget is none ([email protected])
- Cancel button is now labelled "Close" ([email protected])
- 1268088: Changes the rhsm spoke display message to end with "registered"
- Use class methods instead of redundant ad-hoc methods. ([email protected])
- 1251853: Fix errors if "manage_repos = " in cfg ([email protected])
- 1268102: Stop main window from opening duplicate dialogs. ([email protected])
- 1268095: Replace SLA radio buttons w/ combobox ([email protected])
- 1268060: Add 'cancel' back to s-m-gui register. ([email protected])
- 1268028: Fix skipped auto attach in registergui ([email protected])
- 1266929: Fix bug with exception reporting in register dialog.
- 1266480: Refresh TreeView selection after subscriptions are removed.
- Allow 'back' to go back multiple times. ([email protected])
- 1267034: Handle 401 with cert based auth ([email protected])
- 1262075,1267179: Fix back/cancel nav ([email protected])
- 1267287: Fix allsubs tab ui regression ([email protected])
- 1266994: Use our icon for initial-setup spoke icon ([email protected])
- 1261006: Handle multiple nav button clicks ([email protected])
- 1242998, 1254550: Fix "already reg'ed" in initial-setup ([email protected])
- 1265347, 1265371: Added translation updates and corrections from 1.15.X
* Fri Sep 25 2015 Alex Wood <[email protected]> 1.16.3-1
- 1249012: fix start-end date original color ([email protected])
- 884288: Make register widgets handle resizing. ([email protected])
- 1185958: Quieter ostree plugin sans ostree ([email protected])
- 1168268: Add rhsm.conf proxy info to ostree repo ([email protected])
- 1249012: Start-End Date of expired subscription is now in red status
- 1262989: Fix unregister action when consumer is already 'Gone' on server
- 1262919: Added convenience function for printing to stderr ([email protected])
- Add a note about GoneException handling. ([email protected])
- Fixed error message, removed mention of ghost --refresh ([email protected])
- Delete the 'release' status cache on clean all. ([email protected])
- Fixed error message, removed mention of ghost --refresh ([email protected])
- 1248833: Ensure the displayMessage is displayed regardless of success or
failure ([email protected])
- 1254550: Fix activation key usage in gui. ([email protected])
- Re-initialize() RegisterWidget on RegDialog show ([email protected])
- 1257943:Adding a warning to repo-override command when manage_repos = 0
- 1251853: Manage repos config entry needs to allow blank value
* Wed Sep 02 2015 Alex Wood <[email protected]> 1.16.2-1
- 884288: Better registergui for initial-setup ([email protected])
- 1254349: move Resgistering to message ([email protected])
- 1257460: Set text domain on Gtk.Builder widgets ([email protected])
- 1246680: Hide rhsm-debug --subscriptions options ([email protected])
- Set help file name for the Subscription Manager spoke
- 1246680: Remove subscriptions from rhsm-debug ([email protected])
- Enabled help options on first tab ([email protected])
- 1207247: Insecure parameter needs more explanation ([email protected])
- 1253275: Fix initial-setup ks mode ([email protected])
- Stopped --consumerid = distributor id ([email protected])
- 1246429: Stop spinbutton from blocking quantity ([email protected])
- 1185958: Remove ostree plugins req on ostree ([email protected])
- Do not allow using --force with --consumerid ([email protected])
- 1141128: Subscriptions need refresh after imported cert removed
- x86_64 and aarch /proc/cpuinfo module ([email protected])
* Thu Aug 13 2015 Alex Wood <[email protected]> 1.16.1-1
- 1150150: Ostree update report should log updates in proper section
- 1141128: Clean up and correct for style ([email protected])
- 1251610: Port and prefix were reversed in connection URL statement
- 1141128: Imported certificate in detatched scenario not getting deleted
- 1240553: Fix detection of cert dir changes ([email protected])
- Fixing All Subscriptions layout issues ([email protected])
- 1221273: Auto-attach failure should not short-circuit other parts of
registration ([email protected])
- Remove use of Widget.is_toplevel() ([email protected])
- Require initial-setup >= 0.3.9.24, no fb on el7 ([email protected])
- Fix spec file build errors ([email protected])
- search-disabled-repos: ignore failed temporarily enabled repos
- search-disabled-repos: replace CLI with API calls for enabling repos
permanently ([email protected])
- Add new api package to RPM. ([email protected])
- Turn off ga loading debug messages. ([email protected])
- Specify a thread name for any threads we start. ([email protected])
- 1248746: Fix layout of contract dialog (GTK3) ([email protected])
- 1248821: Add Gtk.Window to ga_gtk2.Gtk ([email protected])
- 1248821: All subs date picker was failing. ([email protected])
- 1249053: Fixed layout/blank button issues on owner selection dialog
- 1248729: All subs filter dialog was not focused. ([email protected])
- 1248664: Fix GtkAdjustment related warnings ([email protected])
- 1248546: Slightly better looking done screen. ([email protected])
- 1243704: Goto error screen on 'cancel' ([email protected])
- 1245557: Fix release and service level preferences ([email protected])
- Add GTK_COMPAT_VERSION to ga_gtk2/gtk_compat ([email protected])
- 1248773: Fixed proxy dialog layout (GTK3) ([email protected])
- 1248771: Fixing activation key dialog layout (GTK3) ([email protected])
- 1247723: Fixed layout issues in Facts dialog (GTK3) ([email protected])
- 1245283: Properly initialize AutobindWizard when auto-attach is clicked
- 1248546: Refine the aesthics of register dialog. ([email protected])
- 1243260: Make proxy config dialog work. ([email protected])
- 1161157,1155954: Improve performance of Repository Dialog ([email protected])
- 1185958: Make ostree plugin depend on ostree. ([email protected])
- 1165771: make content plugins require subman ([email protected])
- Move gtk_compat features to sub ga module. ([email protected])
- Use idle_add from ga_Object for 6.x ([email protected])
- Updated initial-setup-addon package requirement to initial-setup-gui
- Only build initial-setup rpm on rhel > 7.1 ([email protected])
* Fri Jul 24 2015 Alex Wood <[email protected]> 1.16.0-1
- Bump version to 1.16 ([email protected])
- Changed initial-setup-addon package requirement from subman to subman-gui
- Cast product.id to int for sort in cat-cert ([email protected])
- 1136163: Ignore pythonpath to avoid selinux AVCs ([email protected])
- 985157: Display the URL that is the registration target ([email protected])
- 1234413: lower log level of rhsmd RHN messages ([email protected])
* Fri Jul 10 2015 Chris Rog <[email protected]> 1.15.7-1
- Merge pull request #1219 from candlepin/alikins/1241247_ga_ImportError
- Merge pull request #1211 from candlepin/awood/1232232-enable-repos
- 1241247: Fix ga ImportError in rhsmcertd ([email protected])
- Merge pull request #1214 from
candlepin/alikins/prevent_nose_loading_ga_impls_directly ([email protected])
- Add comment about the request_injection decorator. ([email protected])
- Prevent nose looking for tests in sub_manager/ ([email protected])
- Remove assertIn as that test is not in Python 2.6. ([email protected])