1 # Define this to link to which library version eg. /lib64/ld-lsb-x86-64.so.3
6 %define ldso ld-linux.so.2
7 %define lsbldso ld-lsb.so
11 %define ldso ld-linux-ia64.so.2
12 %define lsbldso ld-lsb-ia64.so
15 %define archname ppc32
17 %define lsbldso ld-lsb-ppc32.so
20 %define archname ppc64
21 %define ldso ld64.so.1
22 %define lsbldso ld-lsb-ppc64.so
27 %define lsbldso ld-lsb-s390.so
30 %define archname s390x
31 %define ldso ld64.so.1
32 %define lsbldso ld-lsb-s390x.so
35 %define archname amd64
36 %define ldso ld-linux-x86-64.so.2
37 %define lsbldso ld-lsb-x86-64.so
42 %define ldso ld-linux-x32.so.2
43 %define lsbldso ld-lsb-x32.so
46 %ifarch ia64 ppc64 s390x x86_64
47 %define qual ()(64bit)
50 %define qual ()(x32bit)
56 Summary: LSB base libraries support for TLD Linux
57 Summary(pl.UTF-8): Narzędzia LSB (Linux Standard Base)
63 #Source0: http://dl.sourceforge.net/lsb/%{name}-2.0.tar.gz
64 Source0: %{name}-2.0.tar.bz2
65 # Source0-md5: cf40f5c02016bc61db03591cc3ea1ca2
66 Patch0: %{name}-make.patch
67 URL: http://www.linuxbase.org/
68 BuildRequires: help2man
69 BuildRequires: rpm >= 4.4.9-56
70 BuildRequires: util-linux
74 ExclusiveArch: %{ix86} ia64 %{x8664} x32 ppc ppc64 s390 s390x
75 # dependency for primary LSB application for v1.3
76 Provides: lsb = %{version}
77 # dependency for primary LSB application for v2.0 and v3.0
78 Provides: lsb-core-%{archname} = %{version}
79 Provides: lsb-core-noarch = %{version}
80 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83 %define _enable_debug_packages 0
86 LSB version query program. This program forms part of the required
87 functionality of the LSB (Linux Standard Base) specification.
89 The program queries the installed state of the distribution to display
90 certain properties such as the version of the LSB against which the
91 distribution claims compliance as well. It can also attempt to display
92 the name and release of the distribution along with an identifier of
93 who produces the distribution.
95 %description -l pl.UTF-8
96 Program do sprawdzania wersji LSB. Stanowi część wymaganej
97 funkcjonalności specyfikacji LSB (Linux Standard Base).
99 Program sprawdza stan instalacji dystrybucji, wyświetlając określone
100 właściwości, takie jak wersja LSB z którą zgodna ma być dystrybucja.
101 Może także próbować wyświetlić nazwę i wersję dystrybucji wraz z
102 identyfikatorem producenta.
105 Summary: LSB graphics libraries support for TLD Linux
107 Requires: %{name} = %{version}-%{release}
108 Provides: lsb-graphics-%{archname} = %{version}
109 Provides: lsb-graphics-noarch = %{version}
111 %description graphics
112 The Linux Standard Base (LSB) Graphics Specifications define
113 components that are required to be present on an LSB conforming
117 Summary: LSB printing libraries support for TLD Linux
119 Provides: lsb-printing-%{archname} = %{version}
120 Provides: lsb-printing-noarch = %{version}
122 %description printing
123 The Linux Standard Base (LSB) Printing Specifications define
124 components that are required to be present on an LSB conforming
128 %setup -q -n %{name}-2.0
135 rm -rf $RPM_BUILD_ROOT
137 DESTDIR=$RPM_BUILD_ROOT
139 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d
140 cat > $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release << 'EOF'
141 LSB_VERSION=lsb-%{version}-%{archname}:lsb-%{version}-noarch
143 DISTRIB_RELEASE=2015.01
145 DISTRIB_DESCRIPTION="TLD Linux"
147 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/core-%{version}-%{archname}
148 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/core-%{version}-noarch
149 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-%{archname}
150 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-noarch
151 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-%{archname}
152 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-noarch
154 install -d $RPM_BUILD_ROOT/%{_lib}
155 ln -s %{ldso} $RPM_BUILD_ROOT/%{_lib}/%{lsbldso}.%{lsbsover}
158 rm -rf $RPM_BUILD_ROOT
161 %defattr(644,root,root,755)
162 %attr(755,root,root) /%{_lib}/%{lsbldso}.%{lsbsover}
163 %attr(755,root,root) %{_bindir}/lsb_release
164 %{_mandir}/man1/lsb_release.1*
165 %{_sysconfdir}/lsb-release
166 %dir %{_sysconfdir}/%{name}.d
167 # These files are needed because they shows which LSB we're supporting now,
168 # for example, if core-3.1-noarch exists, it means we are supporting LSB3.1 now
169 %{_sysconfdir}/%{name}.d/core*
172 %defattr(644,root,root,755)
173 %{_sysconfdir}/%{name}.d/graphics*
176 %defattr(644,root,root,755)
177 %{_sysconfdir}/%{name}.d/printing*