-
Notifications
You must be signed in to change notification settings - Fork 0
/
lsb-release.spec
216 lines (164 loc) · 6 KB
/
lsb-release.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
Summary: Linux Standard Base tools
Name: lsb-release
Version: 2.0
Release: 37
License: GPL
Source: lsb-release-%{version}.tar.bz2
Patch0: lsb-release-%{version}-no-support.patch
Group: System/Base
URL: http://bzr.linuxfoundation.org/loggerhead/lsb/devel/si/files/head:/lsb_release/
BuildRoot: %{_tmppath}/%{name}-root
%define debug_package %{nil}
%description
LSB version query program
This program forms part of the required functionality of
the LSB (Linux Standard Base) specification.
The program queries the installed state of the distribution
to display certain properties such as the version of the
LSB against which the distribution claims compliance as
well. It can also attempt to display the name and release
of the distribution along with an identifier of who produces
the distribution.
%prep
%setup -q
%patch0 -p1 -b .no-support
%build
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=%buildroot mandir=%buildroot/%{_mandir} install
mkdir -p %buildroot/%{_sysconfdir}/%{name}.d
mkdir -p %buildroot/%{_sysconfdir}
# set codename accordingly to https://wiki.openmandriva.org/en/Codename
cat > %buildroot/%{_sysconfdir}/lsb-release << EOF
LSB_VERSION=
DISTRIB_ID=OpenMandrivaLinux
DISTRIB_RELEASE=%{product_version}
DISTRIB_CODENAME=Einsteinium
DISTRIB_DESCRIPTION="%{distribution} %{product_version} alpha"
EOF
mkdir -p %buildroot/usr/bin
pushd %buildroot/usr/bin
ln -sf /bin/lsb_release lsb_release
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc README
/bin/lsb_release
%_bindir/lsb_release
%{_mandir}/man1/lsb_release.1*
%config(noreplace) %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}.d
%changelog
* Wed May 04 2011 Oden Eriksson <[email protected]> 2.0-34mdv2011.0
+ Revision: 666098
- mass rebuild
* Fri Apr 01 2011 Per Øyvind Karlsen <[email protected]> 2.0-33
+ Revision: 649746
- from Stew Benedict:
o remove lsb support level from this package, handle in lsb
o leave LSB_VERSION empty, quote DISTRIB_ID
* Fri Jan 07 2011 Antoine Ginies <[email protected]> 2.0-30mdv2011.0
+ Revision: 629592
- need a codename
* Thu Jan 06 2011 Leonardo Coelho <[email protected]> 2.0-29mdv2011.0
+ Revision: 629080
- Fix old binary path but keeping both.
* Sat Oct 02 2010 Anssi Hannula <[email protected]> 2.0-28mdv2011.0
+ Revision: 582621
- replace hardcoded distribution version with a build-time one
- clear codename for now (lsb-release will guess 'Cooker' from
/etc/release until it is refilled)
* Tue May 25 2010 Antoine Ginies <[email protected]> 2.0-27mdv2010.1
+ Revision: 545911
- update codename
* Tue May 18 2010 Antoine Ginies <[email protected]> 2.0-26mdv2010.1
+ Revision: 545113
- back to 2.0, because this is the version of the script, not the version of the LSB
- new codename, LSB 4 no more 2.X
* Wed Apr 28 2010 Antoine Ginies <[email protected]> 2.0-25mdv2010.1
+ Revision: 540448
- new codename
* Wed Mar 31 2010 Antoine Ginies <[email protected]> 2.0-24mdv2010.1
+ Revision: 530345
- beta1
* Fri Feb 26 2010 Antoine Ginies <[email protected]> 2.0-23mdv2010.1
+ Revision: 511505
- new lsb-release (2010 spring)
* Thu Oct 29 2009 Anne Nicolas <[email protected]> 2.0-22mdv2010.0
+ Revision: 460076
- change release name, lsb version
* Tue Aug 11 2009 Antoine Ginies <[email protected]> 2.0-21mdv2010.0
+ Revision: 414796
- release 2010.0
* Thu Apr 23 2009 Antoine Ginies <[email protected]> 2.0-20mdv2009.1
+ Revision: 368782
- final release name
* Thu Apr 02 2009 Antoine Ginies <[email protected]> 2.0-19mdv2009.1
+ Revision: 363481
- change release name
* Mon Mar 09 2009 Antoine Ginies <[email protected]> 2.0-18mdv2009.1
+ Revision: 353073
- update codename
* Fri Feb 06 2009 Antoine Ginies <[email protected]> 2.0-17mdv2009.1
+ Revision: 338155
- 2009.1 release
* Wed Oct 01 2008 Antoine Ginies <[email protected]> 2.0-16mdv2009.0
+ Revision: 290346
- codename zarapha
* Mon Sep 22 2008 Antoine Ginies <[email protected]> 2.0-15mdv2009.0
+ Revision: 286964
- sophie release
* Mon Sep 01 2008 Antoine Ginies <[email protected]> 2.0-14mdv2009.0
+ Revision: 278114
- prepare rc1
* Tue Aug 19 2008 Antoine Ginies <[email protected]> 2.0-13mdv2009.0
+ Revision: 273682
- change codename to okapi (beta2)
* Thu Jul 24 2008 Frederic Crozat <[email protected]> 2.0-12mdv2009.0
+ Revision: 245612
- Rebuild for 2009.0
* Tue Jun 17 2008 Thierry Vignaud <[email protected]> 2.0-11mdv2009.0
+ Revision: 223130
- rebuild
* Wed Apr 02 2008 Antoine Ginies <[email protected]> 2.0-10mdv2008.1
+ Revision: 191719
- final name
* Wed Mar 05 2008 Antoine Ginies <[email protected]> 2.0-9mdv2008.1
+ Revision: 180086
- update DISTRIBNAME
* Tue Jan 15 2008 Thierry Vignaud <[email protected]> 2.0-8mdv2008.1
+ Revision: 152874
- rebuild
- rebuild
- kill re-definition of %%buildroot on Pixel's request
+ Olivier Blin <[email protected]>
- restore BuildRoot
* Fri Sep 07 2007 Antoine Ginies <[email protected]> 2.0-6mdv2008.0
+ Revision: 81439
- fill empty field in /etc/lsb-release
* Thu Jan 18 2007 Frederic Crozat <[email protected]> 2.0-5mdv2007.0
+ Revision: 110311
-Use mkrel
-fix url
- Import lsb-release
* Sat Apr 01 2006 Stew Benedict <[email protected]> 2.0-4mdk
- change the ident standard - now lsb-version-arch/noarch
* Tue Feb 21 2006 Stew Benedict <[email protected]> 2.0-3mdk
- move graphics ident files to lsb-graphics
* Wed Jan 18 2006 Stew Benedict <[email protected]> 2.0-2mdk
- leave DISTRIB_CODENAME blank, lsb_release can find it
* Wed Jun 01 2005 Stew Benedict <[email protected]> 2.0-1mdk
- 2.0 - cvs snapshot
- conform to the new requirements for lsb-release format
* Sat Apr 23 2005 Stew Benedict <[email protected]> 1.4-8mdk
- LSB3.0, use variables to populate lsb-release
- leave DISTRIB_RELEASE blank, lsb_release can find it
* Fri Mar 11 2005 Stew Benedict <[email protected]> 1.4-7mdk
- 10.2 (Bugzilla #14491)
* Tue Jun 22 2004 Stew Benedict <[email protected]> 1.4-6mdk
- LSB2.0
* Mon Apr 05 2004 Stew Benedict <[email protected]> 1.4-5mdk
- Mandrakelinux 10.1, codename Cooker