/[packages]/cauldron/lsb-release/current/SPECS/lsb-release.spec
ViewVC logotype

Contents of /cauldron/lsb-release/current/SPECS/lsb-release.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273158 - (show annotations) (download)
Sat Jul 21 17:42:31 2012 UTC (11 years, 8 months ago) by colin
File size: 1516 byte(s)
Update for usrmove
1 Summary: Linux Standard Base tools
2 Name: lsb-release
3 Version: 2.0
4 Release: %mkrel 38
5 License: GPL
6 Source: lsb-release-%{version}.tar.bz2
7 Patch0: lsb-release-%{version}-no-support.patch
8 Group: System/Base
9 URL: http://bzr.linuxfoundation.org/loggerhead/lsb/devel/si/files/head:/lsb_release/
10 Requires(pre): filesystem >= 2.1.9-18
11
12 %description
13 LSB version query program
14
15 This program forms part of the required functionality of
16 the LSB (Linux Standard Base) specification.
17
18 The program queries the installed state of the distribution
19 to display certain properties such as the version of the
20 LSB against which the distribution claims compliance as
21 well. It can also attempt to display the name and release
22 of the distribution along with an identifier of who produces
23 the distribution.
24
25 %prep
26
27 %setup -q
28 %patch0 -p1 -b .no-support
29
30 %build
31 make
32
33 %install
34 rm -rf %{buildroot}
35 make prefix=%{buildroot} mandir=%{buildroot}/%{_mandir} install
36 mkdir -p %{buildroot}/%{_sysconfdir}/%{name}.d
37 mkdir -p %{buildroot}/%{_sysconfdir}
38 cat > %{buildroot}/%{_sysconfdir}/lsb-release << EOF
39 LSB_VERSION=
40 DISTRIB_ID="%{distribution}"
41 DISTRIB_RELEASE=%{product_version}
42 DISTRIB_CODENAME=thornicroft
43 DISTRIB_DESCRIPTION="%{distribution} %{product_version}"
44 EOF
45
46 mkdir -p %{buildroot}%{_bindir}
47 mv %{buildroot}/bin/* %{buildroot}%{_bindir}
48 rmdir %{buildroot}/bin
49
50
51 %clean
52 rm -rf %{buildroot}
53
54 %files
55 %doc README
56 %{_bindir}/lsb_release
57 %{_mandir}/man1/lsb_release.1*
58 %config(noreplace) %{_sysconfdir}/%{name}
59 %dir %{_sysconfdir}/%{name}.d

  ViewVC Help
Powered by ViewVC 1.1.30