-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
1099 lines (1009 loc) · 45.6 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RPM Spec Wizard</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.24.0/css/patternfly.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.24.0/css/patternfly-additions.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/patternfly/3.24.0/js/patternfly.min.js"></script>
<script src="rpm-spec-wizard.js"></script>
</head>
<body>
<nav class="navbar navbar-default">
<div class="container">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">
<img src="img/fedora-logo.png">
<span>RPM Spec Wizard</span>
</a>
</div>
<ul class="nav navbar-nav navbar-right">
<li class="launch">
<a href="#"
class="wizard-pf-open wizard-pf-complete"
data-target="#complete">Launch
</a>
</li>
<li><a href="https://github.com/xsuchy/rpm-spec-wizard">Code</a></li>
<li><a href="https://github.com/xsuchy/rpm-spec-wizard/issues">Issues</a></li>
<li><a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">Documentation</a></li>
</ul>
</div>
</div>
</nav>
<div class="container" id="content">
<div id="header">
<h1>RPM Spec Wizard</h1>
<p>An interactive guide for creating RPM spec files</p>
</div>
<div class="info pull-right">
<ul>
<li>No previous knowledge required</li>
<li>No backend - your data stay in your web browser</li>
<li>Running a self-hosted instance is easy</li>
<li>Contact us at
<a href="https://libera.chat/guides/connect">#fedora-buildsys</a> or
<a href="https://lists.fedoraproject.org/archives/list/[email protected]/">
</a>
</li>
</ul>
</div>
<div id="screenshot">
<a href="#"
class="wizard-pf-open wizard-pf-complete"
data-target="#complete">
<img src="img/screenshot.png">
</a>
</div>
</div>
<!-- Wizard modal interface -->
<div class="modal" id="complete" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg wizard-pf">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" aria-label="Close">
<span class="pficon pficon-close"></span>
</button>
<h4 class="modal-title">RPM Spec file Wizard</h4>
</div>
<div class="modal-body wizard-pf-body clearfix">
<div class="wizard-pf-steps hidden">
<ul class="wizard-pf-steps-indicator">
<li class="wizard-pf-step active" data-tabgroup="1">
<a>
<span class="wizard-pf-step-number">1</span>
<span class="wizard-pf-step-title">Preamble</span>
</a>
</li>
<li class="wizard-pf-step" data-tabgroup="2">
<a>
<span class="wizard-pf-step-number">2</span>
<span class="wizard-pf-step-title">Body</span>
</a>
</li>
<li class="wizard-pf-step" data-tabgroup="3">
<a>
<span class="wizard-pf-step-number">3</span>
<span class="wizard-pf-step-title">Scriptlets</span>
</a>
</li>
<li class="wizard-pf-step" data-tabgroup="4">
<a>
<span class="wizard-pf-step-number">4</span>
<span class="wizard-pf-step-title">Your SPEC File</span>
</a>
</li>
</ul>
</div>
<div class="wizard-pf-row">
<div class="wizard-pf-sidebar hidden">
<ul class="list-group">
<li class="list-group-item active">
<a href="#">
<span class="wizard-pf-substep-number">1A.</span>
<span class="wizard-pf-substep-title">Package Name</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1B.</span>
<span class="wizard-pf-substep-title">Version</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1C.</span>
<span class="wizard-pf-substep-title">Summary</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1D.</span>
<span class="wizard-pf-substep-title">Description</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1E.</span>
<span class="wizard-pf-substep-title">License</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1F.</span>
<span class="wizard-pf-substep-title">URL</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1G.</span>
<span class="wizard-pf-substep-title">Source0</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1H.</span>
<span class="wizard-pf-substep-title">Patch0</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1I.</span>
<span class="wizard-pf-substep-title">BuildArch</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1J.</span>
<span class="wizard-pf-substep-title">BuildRequires</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1K.</span>
<span class="wizard-pf-substep-title">Requires</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">1L.</span>
<span class="wizard-pf-substep-title">ExcludeArch</span>
</a>
</li>
</ul>
<ul class="list-group hidden">
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">2A.</span>
<span class="wizard-pf-substep-title">Prep</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">2B.</span>
<span class="wizard-pf-substep-title">Build</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">2C.</span>
<span class="wizard-pf-substep-title">Install</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">2D.</span>
<span class="wizard-pf-substep-title">Files</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">2E.</span>
<span class="wizard-pf-substep-title">Changelog</span>
</a>
</li>
</ul>
<ul class="list-group hidden">
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3A.</span>
<span class="wizard-pf-substep-title">General</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3B.</span>
<span class="wizard-pf-substep-title">Pretrans</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3C.</span>
<span class="wizard-pf-substep-title">Pre</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3D.</span>
<span class="wizard-pf-substep-title">Post</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3E.</span>
<span class="wizard-pf-substep-title">Preun</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3F.</span>
<span class="wizard-pf-substep-title">Postun</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">3G.</span>
<span class="wizard-pf-substep-title">Posttrans</span>
</a>
</li>
</ul>
<ul class="list-group hidden">
<li class="list-group-item">
<a>
<span class="wizard-pf-substep-number">4A.</span>
<span class="wizard-pf-substep-title">Result</span>
</a>
</li>
<li class="list-group-item">
<a href="#">
<span class="wizard-pf-substep-number">4B.</span>
<span class="wizard-pf-substep-title">Next steps</span>
</a>
</li>
</ul>
</div> <!-- /.wizard-pf-sidebar -->
<div class="wizard-pf-main">
<div class="wizard-pf-loading blank-slate-pf">
<div class="spinner spinner-lg blank-slate-pf-icon"></div>
<h3 class="blank-slate-pf-main-action">Loading Wizard</h3>
<p class="blank-slate-pf-secondary-action">Wait a moment please. </p>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<!-- replacing id with data-id to pass build errors -->
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-name-input">Package Name</label>
<div class="col-sm-10">
<input type="text" data-id="textInput-markup" class="form-control"
id="package-name-input" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
Package names should be in lower case and use
dashes in preference to underscores
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/Naming/">
Guidelines for Naming Fedora Packages
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-version-input">Version</label>
<div class="col-sm-10">
<input type="text" id="package-version-input"
class="form-control" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
Provide information about the upstream version of
the packaged software to users.
</p>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="package-release-input">Release</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="package-release-input"
placeholder="1%{?dist}" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
Use an integer beginning with 1 and increasing for
each revision of the package.<br>
Put <code>%{?dist}</code> after the number.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/">
Guidelines for Versioning Fedora Packages
</a>
and an
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_examples">
examples
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-summary-input">Summary</label>
<div class="col-sm-10">
<input type="text" id="package-summary-input"
class="form-control" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
The summary should be a short and concise
description of the package.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_summary_and_description">
summary guidelines</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-description-input">Description</label>
<div class="col-sm-10">
<textarea input id="package-description-input" class="form-control" rows="5"
placeholder="Lorem ipsum dolor sit amet, consectetur adipiscing elit. \nCras dictum augue eros, ac rutrum eros elementum quis. \nMaecenas quis gravida ante.Quisque consectetur odio ut facilisis iaculis."
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The description expands previously defined
Summary. This can be one or few paragraphs. Do not
include installation instructions in the
description; it is not a manual. If the package
requires some manual configuration or there are
other important instructions to the user, refer
the user to the documentation in the package. Add
a <code>README.Fedora</code>, or similar, if you feel this is
necessary.
</p>
<p>For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_summary_and_description">
description guidelines</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-license-input">License</label>
<div class="col-sm-10">
<input type="text" id="package-license-input" class="form-control"
placeholder="GPLv2" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
This field must be filled with the appropriate
license Short Names(s) from the "Good License"
tables on the
<a href="https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Software_License_List">
Fedora Licensing page
</a>.
</p>
<p>
When your package is not licensed under one of
"Good License" you can put here whatever you
want. E.g., "Proprietary" or "Distributable", but
you should really check that you are not violating
upstream copyright.
</p>
<p>
Good start to check license of your package is to
search sources for files like <code>LICENSE</code>,
<code>COPYING</code>. Additionaly, you can use
<a href="http://search.cpan.org/dist/App-Licensecheck/bin/licensecheck">
licensecheck
</a>
(package <a hfre="https://src.fedoraproject.org/rpms/licensecheck">licensecheck</a>):
<br>
<code>licensecheck $(find -type f)</code>
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/">
Licensing Guidelines</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-url-input">URL</label>
<div class="col-sm-10">
<input type="text" id="package-url-input" class="form-control"
placeholder="https://some.project.org/" onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>Link to the software homepage.</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-source0-input">Source0</label>
<div class="col-sm-10">
<input type="text" id="package-source0-input" class="form-control"
placeholder="https://some.project.org/releases/project-1.1.tar.gz"
onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
Link to the compressed archive of the upstream
source code.
</p>
<p>
If needed, more SourceX directives can be added,
incrementing the number each time.
</p>
<p>
This should point to an accessible and reliable
storage of the archive, for example, the upstream
page and not the packager’s local storage.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/">
Source URL
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-url-input">Patch0</label>
<div class="col-sm-10">
<input type="text" id="package-patch0-input" class="form-control"
placeholder="security.patch, fix_header.patch, and so on..."
onchange="refreshSpec()">
</div>
</div>
<div class="wizard-instructions">
<p>
The name of the first patch to apply to the source
code if necessary.
</p>
<p>
If needed, more PatchX directives can be added,
incrementing the number each time.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_patch_guidelines">
Patch Guidelines</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="psckage-buildArch-input">BuildArch</label>
<div class="col-sm-10">
<select input size="1" id="package-buildArch-input"
class="form-control" onchange="refreshSpec()">
<option value="">Automatic</option>
<option value="noarch">noarch (Architecture independent)</option>
</select>
</div>
</div>
<div class="wizard-instructions">
<p>
If set to Automatic, the package automatically
inherits the Architecture of the machine on which
it is built, for example x86_64. If the package is
not architecture dependent, for example, if
written entirely in an interpreted programming
language, set this to noarch.
</p>
<p>
For more information see
<a href="https://fedoraproject.org/wiki/PackagingDrafts/BuildOnPrimaryArchitecture">
Build on primary architecture
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="psckage-buildRequires-input">
BuildRequires
</label>
<div class="col-sm-10">
<textarea input id="package-buildRequires-input" class="form-control" rows="5"
placeholder="foo >= 3.3 \n# or \nfoo >= 3.3"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
A comma- or whitespace-separated list of packages
required for building the program written in a
compiled language.
</p>
<p>
There can be multiple entries of BuildRequires,
each on its own line in the SPEC file.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#buildrequires">
Build Requires
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="psckage-requires-input">Requires</label>
<div class="col-sm-10">
<textarea input id="package-requires-input" class="form-control" rows="5"
placeholder="# The automatic dependency on libfubar.so.1 is insufficient, \n# as we strictly need at least the release that fixes two segfaults. \nlibfubar >= 0:1.2.3-7"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
A comma- or whitespace-separated list of packages
required by the software to run once installed.
</p>
<p>
There can be multiple entries of Requires, each on
its own line in the SPEC file.
</p>
<p>
For more information see
<a href="https://fedoraproject.org/wiki/PackagingDrafts/ExplicitRequires">
Explicit Requires
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-excludeArch-input">ExcludeArch</label>
<div class="col-sm-10">
<textarea input id="package-excludeArch-input" class="form-control" rows="5"
placeholder="noarch \n# List the arches that the dependent package builds on below \n%{ix86} %{arm} x86_64 noarch"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
If a piece of software can not operate on a
specific processor architecture, you can exclude
that architecture here.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures">
Architecture build failures
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-prep-input">Prep</label>
<div class="col-sm-10">
<textarea input id="package-prep-input" class="form-control" rows="5"
placeholder="%setup -q\n" onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
Command or series of commands to prepare the
software to be built, for example, unpacking the
archive in Source0. This directive can contain a
shell script.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">
guidelines
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-build-input">Build</label>
<div class="col-sm-10">
<textarea input id="package-build-input" class="form-control" rows="5"
placeholder="%configure --with-cheese \n%make_build"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
Command or series of commands for actually
building the software into machine code (for
compiled languages) or byte code (for some
interpreted languages).
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">
guidelines
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-install-input">Install</label>
<div class="col-sm-10">
<textarea input id="package-install-input" class="form-control" rows="5"
placeholder="%make_install \n%find_lang %{name} \n%find_lang bar --with-man"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
Command or series of commands for copying the
desired build artifacts from the <code>%builddir</code>
(where the build happens) to the <code>%buildroot</code>
directory (which contains the directory structure with the
files to be packaged). This usually means copying
files from <code>~/rpmbuild/BUILD</code> to
<code>~/rpmbuild/BUILDROOT</code> and creating the necessary
directories in <code>~/rpmbuild/BUILDROOT</code>. This is only
run when creating a package, not when the end-user
installs the package.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">
guidelines
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-files-input">Files</label>
<div class="col-sm-10">
<textarea input id="package-files-input" class="form-control" rows="5"
placeholder="%license LICENSE \n%doc README \n%{_bindir}/%{name} \n%{_mandir}/man1/bar.1*"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The list of files that will be installed in the
end user’s system.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">
guidelines
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-changelog-input">Full name</label>
<div class="col-sm-10">
<input type="text" id="userName" class="form-control"
placeholder="John Q. Public" onchange="changelogCopy()">
</div>
</div>
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-changelog-input">Email</label>
<div class="col-sm-10">
<input type="text" id="emailAddress" class="form-control"
placeholder="[email protected]" onchange="changelogCopy()">
</div>
</div>
<div class="wizard-instructions">
<b onclick="selectText('dateAndName')";changelogCopy()>Formated today's date, name and email (click to select):</b><p><span id=dateAndName style="background-color:lightgrey;" onclick="selectText('dateAndName')"></span></p>
</div>
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-changelog-input">Changelog</label>
<div class="col-sm-10">
<textarea input id="package-changelog-input" class="form-control" rows="7"
placeholder="* Fri Jan 13 2012 John Q. Public <[email protected]> - 0.1-2 \n- Add man pages \n\n* Thu May 4 2006 Jane Q. Citizen <[email protected]> - 0.1-1 \n- Initial package"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
A record of changes that have happened to the
package between different Version or Release
builds.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/">
guidelines
</a>.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="wizard-instructions">
<p>
RPM spec files have several sections which allow
packages to run code on installation and
removal. These bits of code are called scriptlets
and are mostly used to update the running system
with information from the package.
</p>
<p>
For more information see
<a href="https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/">
Fedora Packaging Guidelines for RPM Scriptlets
</a>.
</p>
<p>All scriptlets are optional.</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="wizard-instructions">
<p>
The <code>%pretrans</code> scriptlet will, in the particular
case of system installation, run before anything
at all has been installed. This implies that it
cannot have any dependencies at all. Not even
shell. For this reason, <code>%pretrans</code> is best avoided,
but if used it MUST (by necessity) be written in
Lua. See
<a href="http://rpm.org/user_doc/lua.html">
Lua in RPM
</a>
for more information.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-pre-input">Pre</label>
<div class="col-sm-10">
<textarea input id="package-pre-input" class="form-control" rows="5"
placeholder="if [ $1 -gt 1 ] ; then\nfi" onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The <code>%pre</code> scriptlet executes just before the
package is to be installed.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-post-input">Post</label>
<div class="col-sm-10">
<textarea input id="package-post-input" class="form-control" rows="5"
placeholder="%systemd_post apache-httpd.service"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The <code>%post</code> scriptlet executes just after the
package is to be installed.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-preun-input">Preun</label>
<div class="col-sm-10">
<textarea input id="package-preun-input" class="form-control" rows="5"
placeholder="%systemd_preun apache-httpd.service"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The <code>%preun</code> scriptlet executes just before the
package is to be erased.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-postun-input">Postun</label>
<div class="col-sm-10">
<textarea input id="package-postun-input" class="form-control" rows="5"
placeholder="%systemd_postun_with_restart apache-httpd.service"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The <code>%postun</code> scriptlet executes just after the
package is to be erased.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<form class="form-horizontal">
<div class="form-group required">
<label class="col-sm-2 control-label" for="package-posttrans-input">Posttrans</label>
<div class="col-sm-10">
<textarea input id="package-posttrans-input" class="form-control" rows="5"
onchange="refreshSpec()"></textarea>
</div>
</div>
<div class="wizard-instructions">
<p>
The <code>%posttrans</code> scriptlet executes after all RPM
package transactions.
</p>
</div>
</form>
</div>
<div class="wizard-pf-contents hidden">
<div class="wizard-pf-review-steps">
<!--<SPEC file>-->
<div class="result">
<!--<clicking the text will select it>-->
<pre id="spec" onclick="selectText('spec')" class="prettyprint">
Name: <span class="package-name"></span>
Version: <span class="package-version"></span>
Release: <span class="package-release"></span>
Summary: <span class="package-summary"></span>
License: <span class="package-license"></span>
URL: <span class="package-url"></span><span class="package-source0"></span><span class="package-patch0"></span>
<span class="package-buildArch"></span><span class="package-buildRequires"></span><span class="package-requires"></span><span class="package-excludeArch"></span><span class="package-description"></span>
<span class="package-prep"></span><span class="package-build"></span><span class="package-install"></span><span class="package-pre"></span><span class="package-post"></span><span class="package-preun"></span><span class="package-postun"></span><span class="package-posttrans"></span><span class="package-files"></span><span class="package-changelog"></span>
</pre>
</div>
<script>
changelogCopy()
</script>
<script>
//trick to make multilane placeholders work
var textAreas = document.getElementsByTagName('textarea');
Array.prototype.forEach.call(textAreas, function(elem) {
elem.placeholder = elem.placeholder.replace(/\\n/g, '\n');
});
</script>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
</div>
</div>