forked from candlepin/subscription-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscription-manager.spec
3557 lines (3326 loc) · 180 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
%global rhel7_minor %(%{__grep} -o "7.[0-9]*" /etc/redhat-release |%{__sed} -s 's/7.//')
%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
%global use_dnf (0%{?fedora} && 0%{?fedora} >= 22)
%global _hardened_build 1
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro -Wl,-z,now}
# A couple files are for RHEL 5 only:
%if 0%{?rhel} == 5
%global el5 1
%endif
%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.16.4
Release: 1%{?dist}
Summary: Tools and libraries for subscription and repository management
Group: System Environment/Base
License: GPLv2
# 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
URL: http://www.candlepinproject.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: python-ethtool
Requires: python-iniparse
Requires: virt-what
Requires: python-rhsm >= 1.16.0
Requires: dbus-python
Requires: yum >= 3.2.19-15
Requires: usermode
Requires: python-dateutil
%if %use_gtk3
Requires: gobject-introspection
Requires: pygobject3-base
%else
Requires: pygobject2
%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
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
%endif
BuildRequires: python-devel
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: libnotify-devel
BuildRequires: desktop-file-utils
BuildRequires: redhat-lsb
BuildRequires: scrollkeeper
BuildRequires: GConf2-devel
%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.
%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.
%files -n subscription-manager-plugin-ostree
%defattr(-,root,root,-)
%{_sysconfdir}/rhsm/pluginconf.d/ostree_content.OstreeContentPlugin.conf
%{rhsm_plugins_dir}/ostree_content.py*
%{_datadir}/rhsm/subscription_manager/plugin/ostree/*.py*
%endif
%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.
%files -n subscription-manager-plugin-container
%defattr(-,root,root,-)
%{_sysconfdir}/rhsm/pluginconf.d/container_content.ContainerContentPlugin.conf
%{rhsm_plugins_dir}/container_content.py*
%{_datadir}/rhsm/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
%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.
%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
%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
Subscription Manager plugins for DNF, contains subscription-manager and product-id plugins.
%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} MANPATH=%{_mandir} PYTHON_SITELIB=%{python_sitelib} \
OS_VERSION=%{?fedora}%{?rhel} 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 them 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
# The normal redhat-uep.pem is actually a bundle of three CAs. Docker does not handle bundles well
# and only reads the first CA in the bundle. We need to put the right CA a file by itself.
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
%post -n subscription-manager-gui
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
%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 || :
%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,-)
# executables
%attr(755,root,root) %{_sbindir}/subscription-manager
# symlink to console-helper
%{_bindir}/subscription-manager
%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}/rhsm
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/rhsm/rhsm.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/rhsm/logging.conf
%attr(755,root,root) %dir %{_sysconfdir}/rhsm/facts
%attr(755,root,root) %dir %{_sysconfdir}/pki/consumer
%attr(755,root,root) %dir %{_sysconfdir}/pki/entitlement
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.SubscriptionManager.conf
# PAM config
%{_sysconfdir}/pam.d/subscription-manager
%{_sysconfdir}/security/console.apps/subscription-manager
# 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
# /var
%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(755,root,root) %dir %{_var}/lib/rhsm
%attr(755,root,root) %dir %{_var}/lib/rhsm/facts
%attr(755,root,root) %dir %{_var}/lib/rhsm/packages
%attr(755,root,root) %dir %{_var}/lib/rhsm/cache
# bash completion scripts
%{_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
# code
# python package dirs
%dir %{_datadir}/rhsm
%dir %{_datadir}/rhsm/subscription_manager
%dir %{_datadir}/rhsm/subscription_manager/api
%dir %{_datadir}/rhsm/subscription_manager/branding
%dir %{_datadir}/rhsm/subscription_manager/model
%dir %{_datadir}/rhsm/subscription_manager/plugin
# code, python modules and packages
%{_datadir}/rhsm/subscription_manager/*.py*
%{_datadir}/rhsm/subscription_manager/api/*.py*
%{_datadir}/rhsm/subscription_manager/branding/*.py*
# our gtk2/gtk3 compat modules
%dir %{_datadir}/rhsm/subscription_manager/ga_impls
%{_datadir}/rhsm/subscription_manager/ga_impls/__init__.py*
%if %use_gtk3
%{_datadir}/rhsm/subscription_manager/ga_impls/ga_gtk3.py*
%else
%dir %{_datadir}/rhsm/subscription_manager/ga_impls/ga_gtk2
%{_datadir}/rhsm/subscription_manager/ga_impls/ga_gtk2/*.py*
%endif
%{_datadir}/rhsm/subscription_manager/model/*.py*
%{_datadir}/rhsm/subscription_manager/plugin/*.py*
# 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 %{_datadir}/rhsm/rct
%{_datadir}/rhsm/rct/__init__.py*
%{_datadir}/rhsm/rct/cli.py*
%{_datadir}/rhsm/rct/*commands.py*
%{_datadir}/rhsm/rct/printing.py*
%{_datadir}/rhsm/rct/version.py*
%attr(755,root,root) %{_bindir}/rct
# Include consumer debug CLI tool
%dir %{_datadir}/rhsm/rhsm_debug
%{_datadir}/rhsm/rhsm_debug/__init__.py*
%{_datadir}/rhsm/rhsm_debug/cli.py*
%{_datadir}/rhsm/rhsm_debug/*commands.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
%{_bindir}/subscription-manager-gui
%{_bindir}/rhsm-icon
%dir %{_datadir}/rhsm/subscription_manager/gui
%dir %{_datadir}/rhsm/subscription_manager/gui/data
%dir %{_datadir}/rhsm/subscription_manager/gui/data/ui
%dir %{_datadir}/rhsm/subscription_manager/gui/data/glade
%dir %{_datadir}/rhsm/subscription_manager/gui/data/icons
%{_datadir}/rhsm/subscription_manager/gui/data/ui/*.ui
%{_datadir}/rhsm/subscription_manager/gui/data/glade/*.glade
%{_datadir}/rhsm/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
# code and modules
%{_datadir}/rhsm/subscription_manager/gui/*.py*
# gui system config files
%{_sysconfdir}/xdg/autostart/rhsm-icon.desktop
%{_sysconfdir}/pam.d/subscription-manager-gui
%{_sysconfdir}/security/console.apps/subscription-manager-gui
%{_sysconfdir}/bash_completion.d/subscription-manager-gui
%doc
%{_mandir}/man8/subscription-manager-gui.8*
%{_mandir}/man8/rhsm-icon.8*
%doc LICENSE
%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
%files -n subscription-manager-migration
%defattr(-,root,root,-)
%dir %{_datadir}/rhsm/subscription_manager/migrate
%{_datadir}/rhsm/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
#only install this file on Fedora
%if 0%{?fedora} > 14
%doc README.Fedora
%endif
%if %use_dnf
%files -n dnf-plugin-subscription-manager
%defattr(-,root,root,-)
%{python_sitelib}/dnf-plugins/*
%endif
%post
%if %use_systemd
/bin/systemctl enable rhsmcertd.service >/dev/null 2>&1 || :
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
/bin/systemctl try-restart rhsmcertd.service >/dev/null 2>&1 || :
%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
%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
%changelog
* 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])
- Move API dependency injection out of module scope. ([email protected])
- 1232232: Add supported API to enable content repositories. ([email protected])
* Wed Jul 08 2015 Chris Rog <[email protected]> 1.15.6-1
- 1241184: Updated Makefile to prevent version string clobbering
* Tue Jul 07 2015 Adrian Likins <[email protected]> 1.15.5-1
- 1240801: Use latest initial-setup API ([email protected])
* Tue Jul 07 2015 Adrian Likins <[email protected]> 1.15.4-1
- Make initial-setup rpm Obsolete firstboot rpm. ([email protected])
* Mon Jul 06 2015 Adrian Likins <[email protected]> 1.15.3-1
- 1232508: file_monitor is no longer a gobject ([email protected])
- Add 'subscription-manager-initial-setup-addon' sub package ([email protected])
- Make 'subscription-manager-firstboot' optional ([email protected])
- Make 'firstboot' and 'initial-setup' RHEL version dependent ([email protected])
- Add initial-setup modules. ([email protected])
- Port gui from gtk2 to gtk3 via 'ga' ([email protected])
- Make gui support gtk2 and gtk3 ([email protected])
- Add module 'ga' ('gtk any') as Gtk ver abstraction ([email protected])
- Add search-disabled-repos plugin. ([email protected])
* Mon Jun 22 2015 Chris Rog <[email protected]> 1.15.2-1
- Added release target for RHEL 7.2 ([email protected])
- Move po compile/install for faster 'install-files' ([email protected])
- Stop using deprecated Tito settings. ([email protected])
* Thu Jun 11 2015 Alex Wood <[email protected]> 1.15.1-1
- Don't try to set file attrs on symlinks in spec ([email protected])
- 1228807: Make disabling proxy via gui apply ([email protected])
- Use find_lang --with-gnome for the gnome help ([email protected])
- Cast return daemon() to void to quiet warnings. ([email protected])
- Make the 'compile-po' step in the build quiet. ([email protected])
- Make desktop-file-validate warnings. ([email protected])
- rpm spec file reorg ([email protected])
- 1224806: Prevent yum blocking on rhsm locks ([email protected])
- 1092564: Add LDFLAGS to makefile so RPM can modify them. ([email protected])
- Update registergui.py ([email protected])
- Bump version to 1.15 ([email protected])
- Remove spurious debug logging about content labels ([email protected])
- Revert "1189953: Replaced usage of "startup" with "start-up""
- Revert "1149098: Removed uses of the non-word "unregister"" ([email protected])
- Revert "1189937: Added hypens to instances of the non-word "wildcard""
- Revert "1200507: Hyphenated uses of the non-word "plugin."" ([email protected])
- 1225435: Use LC_ALL instead of LANG for lscpu. ([email protected])
- Remove mutable default args in stubs ([email protected])
- Add notes about how register/firstboot interact. ([email protected])
- 1189953: Replaced usage of "startup" with "start-up" ([email protected])
- 1194453: Fixed typos and grammar issues in the rhsmcertd man page
- 1192646: Fixed typos and grammar issues in the RHSM conf man page
- 1192574: Fixed typos and grammar issues in subman GUI man page
- 1192120: Fixed typos and grammar issues in subman man page ([email protected])
- 1192094: Fixed erroneous usage of "servicelevel" for the subman command
- 1194468: Fixed typos and grammar in rhsm-debug man page ([email protected])
- 1193991: Fixed typos and header for RCT man page. ([email protected])
- 1200507: Hyphenated uses of the non-word "plugin." ([email protected])
- 1189946: Removed extraneous hyphens from instances of "pre-configure"
- 1189937: Added hypens to instances of the non-word "wildcard"
- 1149098: Removed uses of the non-word "unregister" ([email protected])
- 1189880: Removed the non-word "unentitle" from error messages
* Tue Jun 02 2015 William Poteat <[email protected]> 1.14.9-1
- 1223038: Fix API used by openshift clients. ([email protected])
- 1195824: Latest strings from zanata ([email protected])
* Tue May 26 2015 William Poteat <[email protected]> 1.14.8-1
- 1223860: Revert to default value on remove command ([email protected])
- translation sync from zanata ([email protected])
- 1223852: fix 'Deletedfd' string in repo report ([email protected])
- Remove gnome-python2-canvas,gnome-python2 deps ([email protected])
* Tue May 19 2015 William Poteat <[email protected]> 1.14.7-1
- 1220287: Proxy Save accel fix with latest strings. ([email protected])
- 1212515: Print error message for missing systemid file. ([email protected])
- Added missing option to the migration manual page ([email protected])
- Specified error codes on system_exit in rhn-migrate-classic-to-rhsm
- Updated the manual pages for the attach command ([email protected])
- Remove locale based DatePicker tests. ([email protected])
- Make rhsm-debug test cases clean up better. ([email protected])
* Fri May 01 2015 William Poteat <[email protected]> 1.14.6-1
- 1149095: Fix error when yum updates subman modules ([email protected])
- 1159163: Fix prod id del because of --disablerepo ([email protected])
- 1180273: Migrate from RHN Classic without credentials ([email protected])
- 1213418: Message agreement between GUI and CLI in disconnected system
- 1199597: Fix UnicodeError from repolib's report ([email protected])
- 1209519: Removed excerpt from man page listing --auto as a requirement
* Tue Apr 14 2015 William Poteat <[email protected]> 1.14.5-1
- 1211557: Fix crash when rsyslog not running. ([email protected])
* Tue Apr 14 2015 William Poteat <[email protected]> 1.14.4-1
- 1141257: Fix wrapping of subscription name in contract dialog
- 1147404: Fixed firstboot title length issues ([email protected])
- 1207306: Revert DBus compliance status code. ([email protected])
- 1195501: Properly refresh repo file on override deletion ([email protected])
- Add Fedora 22 to Fedora releaser branches. ([email protected])
* Thu Apr 09 2015 Alex Wood <[email protected]> 1.14.3-1
- 1170314: Clarify that manage_repos 0 will delete redhat.repo.
- 1207958: Fix traceback when contract # is None ([email protected])
- 1117525,1189950,1188961 latest strings from zanata ([email protected])
- 1200972: Fixed grammar issue with error message in the attach command
- Bumping required python-rhsm version ([email protected])
- 1204012: Added missing documentation for the --release option
- 1209519: Removed erroneous information in help message for subman
- 1198369: refresh_compliance_status now has a default value for state
- 1180273: Allow migration without requiring RHN credentials ([email protected])
- 1201727: Handle reasons with expired ent id ([email protected])
* Mon Mar 09 2015 Alex Wood <[email protected]> 1.14.2-1
- Move to fileConfig based logging. ([email protected])
- Ignore glib warnings about class properties. ([email protected])
- log level updates, mostly info->debug. ([email protected])
- Condense virt fact logging to one info level entry. ([email protected])
- Log to info when we update facts. ([email protected])
- Change branding 'nothing-happened' logs to debug. ([email protected])
- Condense cert_sorter logged info. ([email protected])
- Change most cache related log msgs to debug level. ([email protected])
- Make D-Bus related log entries debug level. ([email protected])
- Change heal logging to be more concise. ([email protected])
- Add log friendy str version of Identity ([email protected])
- 1133647: Fix messageWindow deprecation warning. ([email protected])
- 1183382: Fix test case to work with dateutil 2. ([email protected])
- Revert "Added check for /etc/oracle-release in hwprobe" ([email protected])
- 1196416: Migration should not need credentials with activation keys
- 1196385: Add --activation-key option to migration man page.
- 1196418: Add bash completion for --activation-key in migration.
- Update spec to point to github / new project website. ([email protected])
- Quiet "Whoever translated calendar*" warnings. ([email protected])
- Stop 'recently-used.xbel' warnings, disable mru ([email protected])
- 1154375: Allow use of activation keys during migration. ([email protected])
- 1191237: Fix proxy "test connection" in firstboot. ([email protected])
- 1191237: Make proxy config "save" work in firstboot. ([email protected])
- 1191241: Handle network starting after subman does. ([email protected])
- 1145077, disabled column wrapping during redirects ([email protected])
- Add syslog logging handler. ([email protected])
- 1191237: Fix problems exitting firstboot on errors ([email protected])
- 1163398, fixing rhsm-icon --help descriptions ([email protected])
* Fri Feb 06 2015 Devan Goodwin <[email protected]> 1.14.1-1
- 976855: populate a "version.py" at build time ([email protected])
- Fixed typo in subscription-manager-gui ([email protected])
- 1186386: Provide one and only one Red Hat CA to Docker. ([email protected])
- 1114117: Stop collecting subs info by default. ([email protected])
- 1184940: Update container plugin config. ([email protected])
- 1183122: Fix KeyErrors building dbus ent status ([email protected])
- 884285: Needs to maintain loop for dbus calls ([email protected])
* Wed Jan 14 2015 William Poteat <[email protected]> 1.13.13-1
- 1175284: Show warning for crossdev --noarchive ([email protected])
- Add missing import of GMT() ([email protected])
- 1180400: "Status Details" are now populated on CLI ([email protected])
- 1180395: Added "Provides Management" to subman list output ([email protected])
- Bumping required python-rhsm version ([email protected])
- Don't fail when product cache has an old format. ([email protected])
- Use custom JSON encoding function to encode sets. ([email protected])
- Make 'attach' auto unless otherwise specified. ([email protected])
- Add product tag reporting to client. ([email protected])
- 1175185: Removed extra slash from rhsm-debug output ([email protected])
- 1175291: Fixed a bug with attaching pools via empty file ([email protected])
- 1070585: Changed button label from "Ok" to "Save" ([email protected])
- 1122530: Updated man page examples ([email protected])
- 1132981: Reverted removal of warning message ([email protected])
- 1058231: Adjusted "last update" label positioning ([email protected])
* Thu Dec 11 2014 William Poteat <[email protected]> 1.13.12-1
- Latest strings from zanata. ([email protected])
- 1122530: Removed/updated more obsoleted documentation, dates and versions
- 1159348: Improved list error output when using list criteria
- 1142918: Fixed proxy config button labels ([email protected])
- Move repolibs release fetch to the last minute. ([email protected])
* Tue Dec 09 2014 Devan Goodwin <[email protected]> 1.13.11-1
- 1132981: Fixed exit code when registering system with no products installed
- Add 'list --matches' example to man page. ([email protected])
- 1149286: Removed obsolete CLI options from auto-completion ([email protected])
- 990183: Spelling errors in man pages ([email protected])
* Wed Dec 03 2014 Devan Goodwin <[email protected]> 1.13.10-1
- 1103824: Add a catchall excepthook for rhsmd ([email protected])
- 1119688: Improved exit code usage ([email protected])
* Fri Nov 21 2014 William Poteat <[email protected]> 1.13.9-1
- Move ostree config to /etc/ostree/remotes.d/redhat.conf ([email protected])
- 1147463: Log py.warnings to shutup gobject warning ([email protected])
- 1159266: rhsm-icon -i fails with "TypeError: 'NoneType' object has no
attribute '__getitem__'" ([email protected])
- 1145833: Do not package sat5to6 with subscription-manager. ([email protected])
- 1156627: Fix list consumed matching no service level to "".
- 1162331: Changed how debug_commands.py prints errors. ([email protected])
- 1160150: Repos --list leads to deletion of certificates imported to a system
- 1162170: Added error output when --pool-only is used with --installed.
- 990183: Fix typos in the new man page ([email protected])
- 1161694: Modify the --pool-id-only to be --pool-only in bash completion and
man page ([email protected])
- Use .format strings for --ondate example message ([email protected])
- 1113741: Fix rhsmd traceback on 502 errors. ([email protected])
- 1157387: Fix incorrect no installed products detected status in GUI.
* Fri Nov 07 2014 Unknown name <[email protected]> 1.13.8-1
- Added support for attaching pools from a file/stdin. ([email protected])
- Revert "1046132: Makes rhsm-icon slightly less annoying."
- Further improved exit code standardization ([email protected])
- 1119688: Improved output of the status module ([email protected])
- Make repolib tag matching use model.find_content ([email protected])
- Added the --pool-only option to subman's list command. ([email protected])
- 1157761: Fixed incorrect option usage in migration tool. ([email protected])
- 1157761: revert to "--servicelevel" ([email protected])
- 1119688: Improved error code usage in subman. ([email protected])
* Mon Oct 27 2014 Devan Goodwin <[email protected]> 1.13.7-1
- Add content/product tag matching for content plugins. ([email protected])
- Remove ostree 'unconfigured' after configuring. ([email protected])
- Symlink to redhat-uep.pem if we seem to be syncing a CDN hostname cert dir.
- Add a test for removing 'unconfigured-state' from origin ([email protected])
- Case insensitive content type searching. ([email protected])
- Added container plugin for configuring Docker. ([email protected])
* Thu Oct 23 2014 Alex Wood <[email protected]> 1.13.6-1
- 1093325: Prevent rhsm-debug from throwing tbs ([email protected])
- Send list of compliance reasons on dbus ([email protected])
- 1149286: Updated autocompletion for RHN migration script. ([email protected])
- Fix file name for rhsm.conf.5 in spec file ([email protected])
- 1120772: Don't traceback on missing /ostree/repo ([email protected])
- 1094747: add appdata metdata file ([email protected])
- 1122107: Clarify registration --consumerid option in manpage.
- 1149636: Specify OS_VERSION to make in spec file. ([email protected])
- Added client-side support for --matches on the list command.
- 1151925: Improved filtered listing output when results are empty.
- 990183: Add a manpage for rhsm.conf ([email protected])
- 1122530: Improved grammar and abbreviation usage. ([email protected])
- 1120576: Added additional testing of version parsing ([email protected])
* Fri Oct 03 2014 Alex Wood <[email protected]> 1.13.5-1
- Use wildcards in the spec file. ([email protected])
* Thu Oct 02 2014 Alex Wood <[email protected]> 1.13.4-1
- Latest strings from zanata. ([email protected])
- 1122001: Reg with --consumerid no longer checks subs ([email protected])
- 1119648: Added additional functionality to repo listing. ([email protected])
- Move find content method off entitlement source. ([email protected])
- More generic search for content method on entitlment source.