SPECS: lsb-release.spec - bits from mandriva/fedora
glen
glen at pld-linux.org
Mon Dec 31 02:21:03 CET 2007
Author: glen Date: Mon Dec 31 01:21:03 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- bits from mandriva/fedora
---- Files affected:
SPECS:
lsb-release.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/lsb-release.spec
diff -u SPECS/lsb-release.spec:1.2 SPECS/lsb-release.spec:1.3
--- SPECS/lsb-release.spec:1.2 Mon Dec 31 01:53:52 2007
+++ SPECS/lsb-release.spec Mon Dec 31 02:20:57 2007
@@ -1,22 +1,56 @@
# $Revision$, $Date$
-Summary: LSB support for PLD Linux
+
+%define lsbver 3.1
+%ifarch %{ix86}
+%define archname ia32
+%endif
+%ifarch ia64
+%define archname ia64
+%endif
+%ifarch ppc
+%define archname ppc32
+%endif
+%ifarch ppc64
+%define archname ppc64
+%endif
+%ifarch s390
+%define archname s390
+%endif
+%ifarch s390x
+%define archname s390x
+%endif
+%ifarch %{x8664}
+%define archname amd64
+%endif
+
+Summary: Linux Standard Base tools
Name: lsb-release
-Version: 2.0
-Release: 0.1
-License: GPL v2 or later
+Version: 3.1
+Release: 0.3
+License: GPL v2+
+#Source0: http://dl.sourceforge.net/lsb/%{name}-2.0.tar.gz
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-make.patch
Group: Base
URL: http://www.linuxbase.org/
BuildRequires: help2man
+ExclusiveArch: %{ix86} ia64 %{x8664} ppc ppc64 s390 s390x
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-The Linux Standards Base (LSB) is an attempt to develop a set of
-standards that will increase compatibility among Linux distributions.
+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
+%setup -q -n %{name}-2.0
%patch0 -p1
%build
@@ -27,12 +61,23 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/lsb-release << 'EOF'
+LSB_VERSION=lsb-%{lsbver}-%{arch_name}:lsb-%{lsbver}-noarch
+DISTRIB_ID=PLD
+DISTRIB_RELEASE=3.0
+DISTRIB_CODENAME=Th
+DISTRIB_DESCRIPTION="PLD"
+EOF
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/lsb_release
+%{_sysconfdir}/lsb-release
+%dir %{_sysconfdir}/%{name}.d
%{_mandir}/man1/lsb_release.1*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -41,8 +86,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007-12-31 01:20:57 glen
+- bits from mandriva/fedora
+
Revision 1.2 2007-12-31 00:53:52 glen
-- 2.0 tarball (can't find original but suse/fc have same contents so this must be it)
+- 2.0 tarball (can't find original but suse/fc have same contents so this must
+ be it)
Revision 1.1 2007-12-31 00:52:42 glen
- very initial
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lsb-release.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list