Пакет lsb: Specfile

  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
# All LSB releases starting with version 3.0 are compatible with previous releases
%define compat_version 3.0

%ifarch %ix86
%define lsb_arch ia32
%define lib_suffix %nil
%endif
%ifarch x86_64
%define lsb_arch amd64
%define lib_suffix ()(64bit)
%endif
%ifarch %e2k
%define lsb_arch e2k
%define lib_suffix ()(64bit)
%endif
%ifarch aarch64
%define lsb_arch aarch64
%define lib_suffix ()(64bit)
%endif
%ifarch armh
%define lsb_arch armh
%define lib_suffix %nil
%endif
%ifarch mipsel
%define lsb_arch mipsel
%define lib_suffix %nil
%endif
%ifarch ppc64le
%define lsb_arch ppc64
%define lib_suffix ()(64bit)
%endif

Name: lsb
Version: 5.0
Release: alt2.qa1

Summary: The skeleton package defining packages needed for LSB compliance

License: GPL-2.0
Url: http://www.linuxbase.org/
Group: System/Base

Source1: README.alt

# 22.4 Installation and Removal of Init Scripts
Source11: install_initd
Source12: remove_initd

# B.2 Commands And Utilities
# lsbinstall -- installation tool for various types of data
Source21: lsbinstall

ExclusiveArch: %ix86 x86_64 %e2k aarch64 armh mipsel ppc64le

Requires: lsb-core = %version
Requires: lsb-desktop = %version
Requires: lsb-languages = %version
Requires: lsb-imaging = %version

%description
LSB metapackage. This package provides an implementation of all mandatory
modules of the Linux Standard Base:
Core, C++, Desktop, Interpreted Languages, Imaging.

Necessary tools, links, and dependencies for the Linux Standard Base (LSB).

The Linux Standard Base (http://www.linuxbase.org/) is a standard core
system that third-party applications written for Linux can depend
upon.

##############################
##############################
# LSB 5.0 defines next modules
# MODULE      ARCHITECTURE DEPENDENT/INDEPENDENT
# * Core      dependent
# * Desktop   dependent
# * Languages independent
# * Imaging   independent
# * TrialUse  independent
# https://refspecs.linuxfoundation.org/lsb.shtml
# define for each separate package
##############################
##############################

#############
# Module Core
# ###########
%package core
Summary: Linux Standard Base %version core support package
Group: System/Base

# 25.6 Package Dependencies
#
# lsb-core-arch
#      This dependency is used to indicate that the application is dependent on
#      features contained in the LSB-Core specification.
#
# lsb-core-noarch
#      This dependency is used to indicate that the application is dependent on
#      features contained in the LSB-Core specification and that the package does
#      not contain any architecture specific files.
#
#      These dependencies shall have a version of 5.0.
Provides: lsb-core-noarch = %version
Provides: lsb-core-%lsb_arch = %version
Provides: lsb-core-noarch = %compat_version
Provides: lsb-core-%lsb_arch = %compat_version

Provides: %name-cxx = %EVR
Obsoletes: %name-cxx < %EVR

Requires: lsb-init = %version

# Table 17-1. Commands And Utilities
# Commands with predefined path
Requires: /bin/cat
Requires: /bin/chgrp
Requires: /bin/chmod
Requires: /bin/chown
Requires: /bin/cp
Requires: /bin/cpio
Requires: /bin/date
Requires: /bin/dd
Requires: /bin/df
Requires: /bin/dmesg
Requires: /bin/echo
Requires: /bin/ed
Requires: /bin/false
Requires: /usr/sbin/groupadd
Requires: /usr/sbin/groupdel
Requires: /usr/sbin/groupmod
Requires: /bin/gunzip
Requires: /bin/gzip
Requires: /bin/hostname
# Requires: /usr/lib/lsb/install_initd supplied by lsb-core package
Requires: /bin/kill
Requires: /bin/ln
Requires: /bin/ls
Requires: /usr/bin/lsb_release
Requires: /bin/mkdir
Requires: /bin/mknod
Requires: /bin/more
Requires: /bin/mount
Requires: /bin/mv
Requires: /bin/ps
Requires: /bin/pwd
# Requires: /usr/lib/lsb/remove_initd supplied by lsb-core package
Requires: /bin/rm
Requires: /bin/rmdir
Requires: /bin/sed
Requires: /usr/sbin/sendmail
Requires: /bin/sh
Requires: /sbin/shutdown
Requires: /bin/su
Requires: /bin/sync
Requires: /bin/tar
Requires: /bin/true
Requires: /bin/umount
Requires: /bin/uname
Requires: /usr/sbin/useradd
Requires: /usr/sbin/userdel
Requires: /usr/sbin/usermod
Requires: /bin/zcat
# Commands without predefined path
Requires: /usr/bin/ar
Requires: /usr/bin/at
Requires: /bin/awk
Requires: /bin/basename
Requires: /usr/bin/batch
Requires: /usr/bin/bc
Requires: /usr/bin/chfn
Requires: /usr/bin/chsh
Requires: /usr/bin/cksum
Requires: /usr/bin/cmp
Requires: /usr/bin/col
Requires: /usr/bin/comm
Requires: /usr/bin/crontab
Requires: /usr/bin/csplit
Requires: /bin/cut
Requires: /usr/bin/diff
Requires: /usr/bin/dirname
Requires: /bin/du
Requires: /usr/bin/env
Requires: /usr/bin/expand
Requires: /usr/bin/expr
Requires: /usr/bin/file
Requires: /bin/find
Requires: /usr/bin/fold
Requires: /sbin/fuser
Requires: /usr/bin/gencat
Requires: /usr/bin/getconf
Requires: /usr/bin/gettext
Requires: /bin/grep
Requires: /usr/bin/groups
Requires: /bin/head
Requires: /usr/bin/iconv
Requires: /usr/bin/id
Requires: /usr/bin/infocmp
Requires: /bin/install
Requires: /usr/bin/ipcrm
Requires: /usr/bin/ipcs
Requires: /usr/bin/join
Requires: /usr/bin/killall
Requires: /usr/bin/locale
Requires: /usr/bin/localedef
Requires: /usr/bin/logger
Requires: /usr/bin/logname
Requires: /usr/bin/lp
Requires: /usr/bin/lpr
Requires: /usr/bin/m4
Requires: /usr/bin/mailx
Requires: /usr/bin/make
Requires: /usr/bin/man
Requires: /usr/bin/md5sum
Requires: /bin/mkfifo
Requires: /bin/mktemp
Requires: /usr/bin/msgfmt
Requires: /usr/bin/newgrp
Requires: /bin/nice
Requires: /usr/bin/nl
Requires: /usr/bin/nohup
Requires: /usr/bin/od
Requires: /usr/bin/passwd
Requires: /usr/bin/paste
Requires: /usr/bin/patch
Requires: /usr/bin/pathchk
Requires: /usr/bin/pax
Requires: /bin/pidof
Requires: /usr/bin/pr
Requires: /usr/bin/printf
Requires: /usr/bin/renice
Requires: /usr/bin/seq
Requires: /bin/sleep
Requires: /bin/sort
Requires: /usr/bin/split
Requires: /usr/bin/strings
Requires: /usr/bin/strip
Requires: /bin/stty
Requires: /bin/tail
Requires: /usr/bin/tee
Requires: /usr/bin/test
Requires: /usr/bin/tic
Requires: /usr/bin/time
Requires: /bin/tput
Requires: /bin/touch
Requires: /usr/bin/tr
Requires: /usr/bin/tsort
Requires: /usr/bin/tty
Requires: /usr/bin/unexpand
Requires: /usr/bin/uniq
Requires: /bin/wc
Requires: /bin/xargs

# Required libs for LSB_Core:
# Table 3-1. Standard Library Names
# http://refspecs.linux-foundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic.html#RLIBRARIES
# Common for %ix86 x86_64
Requires: libcrypt.so.1%lib_suffix
Requires: libdl.so.2%lib_suffix
Requires: libgcc_s.so.1%lib_suffix
Requires: libncurses.so.5%lib_suffix
Requires: libncurses.so.5%lib_suffix
Requires: libncursesw.so.5%lib_suffix
Requires: libnspr4.so%lib_suffix
Requires: libnss3.so%lib_suffix
Requires: libpam.so.0%lib_suffix
Requires: libpthread.so.0%lib_suffix
Requires: librt.so.1%lib_suffix
Requires: libssl3.so%lib_suffix
Requires: libstdc++.so.6%lib_suffix
Requires: libutil.so.1%lib_suffix
Requires: libz.so.1%lib_suffix
# Table 3-2. Standard Library Names defined in the Architecture Specific Parts of the LSB Core Specification
Requires: libc.so.6%lib_suffix
Requires: libm.so.6%lib_suffix
# proginterp
%ifarch %ix86
# see %install section Requires: /lib/ld-lsb.so.3
Requires: ld-linux.so.2%lib_suffix
%endif
%ifarch x86_64
# see %install section Requires: /lib64/ld-lsb-x86-64.so.3
Requires: ld-linux-x86-64.so.2%lib_suffix
%endif
%ifarch %e2k
# see %install section Requires: /lib64/ld-lsb.so.3
Requires: ld-linux.so.2%lib_suffix
%endif
%ifarch mipsel
Requires: ld.so.1%lib_suffix
%endif
%ifarch ppc64le
Requires: ld64.so.2%lib_suffix
%endif

%description core
This is the Core module of the Linux Standard Base (LSB), ISO/IEC 23360
Part 1. This module provides the fundamental system interfaces,
libraries, and runtime environment upon which all conforming
applications and libraries depend.
Core interfaces may be supplemented by other modules; all modules are
built upon the core.
#################
# END Module Core
#################

################
# Module Desktop
################
%package desktop
Summary: Linux Standard Base %version desktop support package
Group: System/Base
Requires: %name-core = %version

Provides: lsb-desktop-noarch = %version
Provides: lsb-desktop-%lsb_arch = %version
Provides: lsb-desktop-noarch = %compat_version
Provides: lsb-desktop-%lsb_arch = %compat_version

# XXX@stanv: graphics is submodule of desktop module:
# http://dev.linuxfoundation.org/navigator/browse/module.php

Provides: lsb-graphics-noarch = %version
Provides: lsb-graphics-%lsb_arch = %version
Provides: lsb-graphics-noarch = %compat_version
Provides: lsb-graphics-%lsb_arch = %compat_version

# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Desktop-generic/LSB-Desktop-generic/requirements.html
Requires: libX11.so.6%lib_suffix
Requires: libXt.so.6%lib_suffix
Requires: libGL.so.1%lib_suffix
Requires: libGLU.so.1%lib_suffix
Requires: libXext.so.6%lib_suffix
Requires: libICE.so.6%lib_suffix
Requires: libSM.so.6%lib_suffix
Requires: libXi.so.6%lib_suffix
Requires: libXtst.so.6%lib_suffix

Requires: libfontconfig.so.1%lib_suffix
Requires: libpng12.so.0%lib_suffix
Requires: libjpeg.so.62%lib_suffix
Requires: libXrender.so.1%lib_suffix
Requires: libfreetype.so.6%lib_suffix
Requires: libtiff.so.5%lib_suffix
Requires: libxcb.so.1%lib_suffix

# GTK
Requires: libatk-1.0.so.0%lib_suffix
Requires: libcairo.so.2%lib_suffix
Requires: libcairo-gobject.so.2%lib_suffix
Requires: libcairo-script-interpreter.so.2%lib_suffix
Requires: libgdk-x11-2.0.so.0%lib_suffix
Requires: libgdk_pixbuf-2.0.so.0%lib_suffix
Requires: libgdk_pixbuf_xlib-2.0.so.0%lib_suffix
Requires: libgio-2.0.so.0%lib_suffix
Requires: libglib-2.0.so.0%lib_suffix
Requires: libgmodule-2.0.so.0%lib_suffix
Requires: libgobject-2.0.so.0%lib_suffix
Requires: libgthread-2.0.so.0%lib_suffix
Requires: libgtk-x11-2.0.so.0%lib_suffix
Requires: libpango-1.0.so.0%lib_suffix
Requires: libpangocairo-1.0.so.0%lib_suffix
Requires: libpangoft2-1.0.so.0%lib_suffix
Requires: libpangoxft-1.0.so.0%lib_suffix

# Qt
Requires: libQtCore.so.4%lib_suffix
Requires: libQtGui.so.4%lib_suffix
Requires: libQtNetwork.so.4%lib_suffix
Requires: libQtOpenGL.so.4%lib_suffix
Requires: libQtSql.so.4%lib_suffix
Requires: libQtSvg.so.4%lib_suffix
Requires: libQtXml.so.4%lib_suffix

# ALSA
Requires: libasound.so.2%lib_suffix

# Table 21-1. Commands And Utilities
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Desktop-generic/LSB-Desktop-generic/deskcmd.html#AEN171419
Requires: /usr/bin/xdg-desktop-icon
Requires: /usr/bin/xdg-desktop-menu
Requires: /usr/bin/xdg-email
Requires: /usr/bin/xdg-icon-resource
Requires: /usr/bin/xdg-mime
Requires: /usr/bin/xdg-open
Requires: /usr/bin/xdg-screensaver

%description desktop
The desktop requirements for LSB compliance.
####################
# END Module Desktop
####################

##################
# Module Languages
##################
%package languages
Summary: Linux Standard Base %version languages support package
Group: System/Base
Requires: %name-core = %version

Provides: lsb-languages-noarch = %version
Provides: lsb-languages-noarch = %compat_version

# Table 3-1. Standard Library Names
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Languages/LSB-Languages/requirements.html#RLIBRARIES
Requires: libxml2.so.2%lib_suffix
Requires: libxslt.so.1%lib_suffix

# Python
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Languages/LSB-Languages/python.html
Requires: %__python
#Requires: python2-base >= 2.4.2
Requires: python-modules

# Perl
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Languages/LSB-Languages/perlymodules.html
Requires: perl-base >= 5.8.8
Requires: /usr/bin/perl
Requires: perl-Attribute-Handlers
Requires: perl-autodie
Requires: perl-base
Requires: perl-B-Debug
Requires: perl-bignum
Requires: perl-B-Lint
Requires: perl-CGI
Requires: perl-CPAN
Requires: perl-DBM
Requires: perl-devel
Requires: perl-Encode
Requires: perl-Encode-CN
Requires: perl-Encode-JP
Requires: perl-Encode-KR
Requires: perl-Encode-TW
Requires: perl-Filter
Requires: perl-Filter-Simple
Requires: perl-I18N-Collate
Requires: perl-I18N-LangTags
Requires: perl-libnet
Requires: perl-Locale-Codes
Requires: perl-Locale-Maketext
Requires: perl-Math-BigInt
Requires: perl-Math-BigRat
Requires: perl-Math-Complex
Requires: perl-Memoize
Requires: perl-Net-Ping
Requires: perl-NEXT
Requires: perl-Pod-Checker
Requires: perl-Pod-LaTeX
Requires: perl-podlators
Requires: perl-Pod-Parser
Requires: perl-Pod-Perldoc
Requires: perl-Pod-Usage
Requires: perl-Term-ANSIColor
Requires: perl-Term-ReadLine-Gnu
Requires: perl-Text-Balanced
Requires: perl-Text-Soundex
Requires: perl-Tie-File
Requires: perl-Tie-RefHash
Requires: perl-Unicode-Collate
Requires: perl-Unicode-Normalize
Requires: perl-unicore
Requires: perl-CGI-Apache
Requires: perl-Devel-SelfStubber
Requires: perl-File-CheckTree
#perl module Math::BigInt::CalcEmu is deprecated: 
#perl-Math-BigInt 1.999815 2018-10-19
#
# * Move bitwise operators signed and, signed or, and signed xor from
#   lib/Math/BigInt/CalcEmu.pm into lib/Math/BigInt/Lib.pm. The file
#   lib/Math/BigInt/CalcEmu.pm is no longer needed and thus removed.

%description languages
The languages requirements for LSB compliance.
######################
# END Module Languages
######################

#################
# Module Imaging
#################
%package imaging
Summary: Linux Standard Base %version imaging support package
Group: System/Base
Requires: %name-core = %version

Provides: lsb-imaging-noarch = %version
Provides: lsb-imaging-noarch = %compat_version

Provides: lsb-printing = %EVR
Obsoletes: lsb-printing < %EVR

# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Imaging/LSB-Imaging/requirements.html#XLIBRARIES
Requires: libcups.so.2%lib_suffix
Requires: libcupsimage.so.2%lib_suffix
Requires: libsane.so.1%lib_suffix

# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Imaging/LSB-Imaging/printcommand.html
Requires: /usr/bin/foomatic-rip
Requires: /usr/bin/gs

%description imaging
The imaging requirements for LSB compliance.
#####################
# END Module Printing
#####################

#################
# Module TrialUse
# Have next submodules:
# * TUM
# * Gtk3
#################
%package trialuse
Summary: Linux Standard Base %version trialuse support package
Group: System/Base
Requires: %name-core = %version

Provides: lsb-trialuse-noarch = %version
Provides: lsb-trialuse-noarch = %compat_version

# TUM Libraries
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-TrialUse/LSB-TrialUse/requirements.html
Requires: libpng15.so.15%lib_suffix

# Gtk3 Libraries
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-TrialUse/LSB-TrialUse/gtk3libraries.html
Requires: libgdk-3.so.0%lib_suffix
Requires: libgtk-3.so.0%lib_suffix

%description trialuse
The trialuse requirements for LSB compliance.
#####################
# END Module TrialUse
#####################

%prep
%build
%install
%define docdir %_docdir/%name-%version
install -d -pm 755 %buildroot%docdir
install -m644 %SOURCE1 %buildroot%docdir

install -d -pm 755 %buildroot%_sysconfdir/lsb-release.d

%define lsbrel %buildroot%_sysconfdir/lsb-release

install -d -pm755 %buildroot/usr/lib/lsb
install -m755 %SOURCE11 %buildroot/usr/lib/lsb
install -m755 %SOURCE12 %buildroot/usr/lib/lsb
install -m755 %SOURCE21 %buildroot/usr/lib/lsb

echo -n "LSB_VERSION=\"core-%compat_version-noarch:core-%version-noarch:" > %lsbrel
echo "core-%compat_version-%lsb_arch:core-%version-%lsb_arch\"" >>  %lsbrel

# ALT Linux Sisyphus (20081222)
# ALT Linux 1.0.0 Server Light r1 (Lycoris Radiata)

cat <<EOF >>%lsbrel
DISTRIB_ID="ALT"
LSB_VERSION="%version"
#
# Examples:
#
# DISTRIB_ID - single word, ID of DISTRIBUTOR
# DISTRIB_RELEASE="5.0.0"
# DISTRIB_CODENAME="Lycoris Radiata"
# DISTRIB_DESCRIPTION="ALT Linux Sisyphus (20081222)"
# DISTRIB_DESCRIPTION="ALT Linux 1.0.0 Server Light r1 (Lycoris Radiata)"
EOF

# Required libs for LSB_Core:
# https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-AMD64/LSB-Core-AMD64/baselib.html#PROGINTERP
# The Program Interpreter shall be ......
mkdir -p "%buildroot/%_lib"
%ifarch %ix86
ln -sf "/lib/ld-linux.so.2" "%buildroot/lib/ld-lsb.so.3"
%endif
%ifarch x86_64
ln -sf "/lib64/ld-linux-x86-64.so.2" "%buildroot/lib64/ld-lsb-x86-64.so.3"
%endif
%ifarch %e2k
ln -sf "/lib64/ld-linux.so.2" "%buildroot/lib64/ld-lsb.so.3"
%endif
%ifarch mipsel
ln -sf "/lib/ld.so.1" "%buildroot/lib/ld-lsb-mipsel.so.3"
%endif
%ifarch ppc64le
ln -sf "/lib64/ld64.so.2" "%buildroot/lib64/ld-lsb-ppc64.so.3"
%endif

touch %buildroot%_sysconfdir/lsb-release.d/core-%compat_version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/core-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/core-%version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/core-%version-noarch

touch %buildroot%_sysconfdir/lsb-release.d/desktop-%compat_version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/desktop-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/desktop-%version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/desktop-%version-noarch

touch %buildroot%_sysconfdir/lsb-release.d/graphics-%compat_version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/graphics-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/graphics-%version-%lsb_arch
touch %buildroot%_sysconfdir/lsb-release.d/graphics-%version-noarch

touch %buildroot%_sysconfdir/lsb-release.d/languages-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/languages-%version-noarch

touch %buildroot%_sysconfdir/lsb-release.d/imaging-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/imaging-%version-noarch

touch %buildroot%_sysconfdir/lsb-release.d/trialuse-%compat_version-noarch
touch %buildroot%_sysconfdir/lsb-release.d/trialuse-%version-noarch

%files
%files core
%docdir
%dir %_sysconfdir/lsb-release.d/
%_sysconfdir/lsb-release.d/core-%compat_version-%lsb_arch
%_sysconfdir/lsb-release.d/core-%compat_version-noarch
%_sysconfdir/lsb-release.d/core-%version-%lsb_arch
%_sysconfdir/lsb-release.d/core-%version-noarch
%ifarch %ix86
/lib/ld-lsb.so.3
%endif
%ifarch x86_64
/lib64/ld-lsb-x86-64.so.3
%endif
%ifarch %e2k
/lib64/ld-lsb.so.3
%endif
%ifarch mipsel
/lib/ld-lsb-mipsel.so.3
%endif
%ifarch ppc64le
/lib64/ld-lsb-ppc64.so.3
%endif
%dir %prefix/lib/lsb
%prefix/lib/lsb/install_initd
%prefix/lib/lsb/remove_initd
%prefix/lib/lsb/lsbinstall
%_sysconfdir/lsb-release

%files desktop
%_sysconfdir/lsb-release.d/desktop-%compat_version-%lsb_arch
%_sysconfdir/lsb-release.d/desktop-%compat_version-noarch
%_sysconfdir/lsb-release.d/desktop-%version-%lsb_arch
%_sysconfdir/lsb-release.d/desktop-%version-noarch

# XXX@stanv see above note about lsb-graphics:
%_sysconfdir/lsb-release.d/graphics-%compat_version-%lsb_arch
%_sysconfdir/lsb-release.d/graphics-%compat_version-noarch
%_sysconfdir/lsb-release.d/graphics-%version-%lsb_arch
%_sysconfdir/lsb-release.d/graphics-%version-noarch

%files languages
%_sysconfdir/lsb-release.d/languages-%compat_version-noarch
%_sysconfdir/lsb-release.d/languages-%version-noarch

%files imaging
%_sysconfdir/lsb-release.d/imaging-%compat_version-noarch
%_sysconfdir/lsb-release.d/imaging-%version-noarch

%files trialuse
%_sysconfdir/lsb-release.d/trialuse-%compat_version-noarch
%_sysconfdir/lsb-release.d/trialuse-%version-noarch

%changelog
* Fri Apr 29 2022 Dmitry V. Levin <ldv@altlinux.org> 5.0-alt2.qa1
- NMU.
- Removed obsolescent dependencies on /bin/egrep and /bin/fgrep.

* Tue Oct 05 2021 Gleb F-Malinovskiy <glebfm@altlinux.org> 5.0-alt2
- Fixed ppc64le support.

* Sat Jul 31 2021 Andrey Cherepanov <cas@altlinux.org> 5.0-alt1
- New version of LSB.
- lsb-cxx is now part of lsb-core.
- lsb-printing is renamed to lsb-imaging.
- Add ppc64le support.

* Wed Sep 02 2020 Anton Midyukov <antohami@altlinux.org> 4.0-alt12
- added armh

* Tue Feb 11 2020 Vitaly Lipatov <lav@altlinux.ru> 4.0-alt11
- remove obsoleted packager line
- use __python instead of /usr/bin/python2
- drop python2-base require

* Tue Feb 11 2020 Vitaly Lipatov <lav@altlinux.ru> 4.0-alt10
- fix licence name
- require python2

* Wed Oct 02 2019 Ivan A. Melnikov <iv@altlinux.org> 4.0-alt9
- mipsel support

* Mon Sep 30 2019 Anton V. Boyarshinov <boyarsh@altlinux.org> 4.0-alt8
- added aarch64

* Fri Jun 22 2018 Michael Shigorin <mike@altlinux.org> 4.0-alt7
- E2K: initial support

* Thu Feb 01 2018 Igor Vlasenko <viy@altlinux.ru> 4.0-alt6
- NMU: bumped java version to 1.8

* Tue Jul 12 2011 Andriy Stepanov <stanv@altlinux.ru> 4.0-alt5
- #25877

* Fri Apr 16 2010 Andriy Stepanov <stanv@altlinux.ru> 4.0-alt4
- Require lsb-init

* Tue Apr 13 2010 Andriy Stepanov <stanv@altlinux.ru> 4.0-alt3
- Correct /etc/lsb-release

* Tue Apr 13 2010 Andriy Stepanov <stanv@altlinux.ru> 4.0-alt2
- Add suffix for x86_64 libs, correnct java package name.

* Tue Apr 13 2010 Andriy Stepanov <stanv@altlinux.ru> 4.0-alt1
- Switch to new version.

* Wed Jan 14 2009 Andriy Stepanov <stanv@altlinux.ru> 3.2-alt3
- Update Requires tags using lib_suffix, ex: libc.so.6()(64bit)

* Tue Jan 13 2009 Andriy Stepanov <stanv@altlinux.ru> 3.2-alt2
- Add metapackage lsb (ALT#18501)

* Mon Nov 10 2008 Andriy Stepanov <stanv@altlinux.ru> 3.2-alt1
- Init package for LSB 3.2

* Fri Feb 24 2006 Vitaly Lipatov <lav@altlinux.ru> 3.0-alt0.1
- initial build for ALT Linux Sisyphus (thanks SuSE and Debian)
- remove per arch links to ld.so
- do not require X client dir
- adopted paths to nice, basename, fuser
- fix lsb_release to detect Sisyphus version