2 # Define this to link to which library version eg. /lib64/ld-lsb-x86-64.so.3
7 %define ldso ld-linux.so.2
8 %define lsbldso ld-lsb.so
12 %define ldso ld-linux-ia64.so.2
13 %define lsbldso ld-lsb-ia64.so
16 %define archname ppc32
18 %define lsbldso ld-lsb-ppc32.so
21 %define archname ppc64
22 %define ldso ld64.so.1
23 %define lsbldso ld-lsb-ppc64.so
28 %define lsbldso ld-lsb-s390.so
31 %define archname s390x
32 %define ldso ld64.so.1
33 %define lsbldso ld-lsb-s390x.so
36 %define archname amd64
37 %define ldso ld-linux-x86-64.so.2
38 %define lsbldso ld-lsb-x86-64.so
43 %define ldso ld-linux-x32.so.2
44 %define lsbldso ld-lsb-x32.so
47 %ifarch ia64 ppc64 s390x x86_64
48 %define qual ()(64bit)
51 %define qual ()(x32bit)
57 Summary: LSB base libraries support for PLD Linux
58 Summary(pl.UTF-8): Narzędzia LSB (Linux Standard Base)
64 #Source0: http://dl.sourceforge.net/lsb/%{name}-2.0.tar.gz
65 Source0: %{name}-2.0.tar.bz2
66 # Source0-md5: cf40f5c02016bc61db03591cc3ea1ca2
67 Patch0: %{name}-make.patch
68 URL: http://www.linuxbase.org/
69 BuildRequires: help2man
70 BuildRequires: rpm >= 4.4.9-56
71 BuildRequires: util-linux
75 ExclusiveArch: %{ix86} ia64 %{x8664} x32 ppc ppc64 s390 s390x
76 # dependency for primary LSB application for v1.3
77 Provides: lsb = %{version}
78 # dependency for primary LSB application for v2.0 and v3.0
79 Provides: lsb-core-%{archname} = %{version}
80 Provides: lsb-core-noarch = %{version}
81 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84 %define _enable_debug_packages 0
87 LSB version query program. This program forms part of the required
88 functionality of the LSB (Linux Standard Base) specification.
90 The program queries the installed state of the distribution to display
91 certain properties such as the version of the LSB against which the
92 distribution claims compliance as well. It can also attempt to display
93 the name and release of the distribution along with an identifier of
94 who produces the distribution.
96 %description -l pl.UTF-8
97 Program do sprawdzania wersji LSB. Stanowi część wymaganej
98 funkcjonalności specyfikacji LSB (Linux Standard Base).
100 Program sprawdza stan instalacji dystrybucji, wyświetlając określone
101 właściwości, takie jak wersja LSB z którą zgodna ma być dystrybucja.
102 Może także próbować wyświetlić nazwę i wersję dystrybucji wraz z
103 identyfikatorem producenta.
106 Summary: LSB graphics libraries support for PLD Linux
108 Requires: %{name} = %{version}-%{release}
109 Provides: lsb-graphics-%{archname} = %{version}
110 Provides: lsb-graphics-noarch = %{version}
112 %description graphics
113 The Linux Standard Base (LSB) Graphics Specifications define
114 components that are required to be present on an LSB conforming
118 Summary: LSB printing libraries support for PLD Linux
120 Provides: lsb-printing-%{archname} = %{version}
121 Provides: lsb-printing-noarch = %{version}
123 %description printing
124 The Linux Standard Base (LSB) Printing Specifications define
125 components that are required to be present on an LSB conforming
129 %setup -q -n %{name}-2.0
136 rm -rf $RPM_BUILD_ROOT
138 DESTDIR=$RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d
141 cat > $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release << 'EOF'
142 LSB_VERSION=lsb-%{version}-%{archname}:lsb-%{version}-noarch
144 DISTRIB_DESCRIPTION="PLD Linux"
145 %if "%{pld_release}" == "ac"
149 %if "%{pld_release}" == "th"
154 %if "%{pld_release}" == "ti"
157 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/core-%{version}-%{archname}
158 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/core-%{version}-noarch
159 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-%{archname}
160 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-noarch
161 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-%{archname}
162 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-noarch
164 install -d $RPM_BUILD_ROOT/%{_lib}
165 ln -s %{ldso} $RPM_BUILD_ROOT/%{_lib}/%{lsbldso}.%{lsbsover}
168 rm -rf $RPM_BUILD_ROOT
171 %defattr(644,root,root,755)
172 %attr(755,root,root) /%{_lib}/%{lsbldso}.%{lsbsover}
173 %attr(755,root,root) %{_bindir}/lsb_release
174 %{_mandir}/man1/lsb_release.1*
175 %{_sysconfdir}/lsb-release
176 %dir %{_sysconfdir}/%{name}.d
177 # These files are needed because they shows which LSB we're supporting now,
178 # for example, if core-3.1-noarch exists, it means we are supporting LSB3.1 now
179 %{_sysconfdir}/%{name}.d/core*
182 %defattr(644,root,root,755)
183 %{_sysconfdir}/%{name}.d/graphics*
186 %defattr(644,root,root,755)
187 %{_sysconfdir}/%{name}.d/printing*