Author: glen Date: Wed Dec 29 15:41:20 2010 GMT Module: packages Tag: HEAD ---- Log message: - provide /lib/ld-lsb.so symlink - graphis and printing to subpackages - ver 4.0
---- Files affected: packages/lsb-release: lsb-release.spec (1.9 -> 1.10) ---- Diffs: ================================================================ Index: packages/lsb-release/lsb-release.spec diff -u packages/lsb-release/lsb-release.spec:1.9 packages/lsb-release/lsb-release.spec:1.10 --- packages/lsb-release/lsb-release.spec:1.9 Mon May 24 16:35:33 2010 +++ packages/lsb-release/lsb-release.spec Wed Dec 29 16:41:14 2010 @@ -1,48 +1,79 @@ # $Revision$, $Date$ -Summary: Linux Standard Base tools -Summary(pl.UTF-8): Narzędzia LSB (Linux Standard Base) -Name: lsb-release -Version: 3.1 -Release: 2 -License: GPL v2+ -Group: Base -#Source0: http://dl.sourceforge.net/lsb/%{name}-2.0.tar.gz -Source0: %{name}-2.0.tar.bz2 -# Source0-md5: cf40f5c02016bc61db03591cc3ea1ca2 -Patch0: %{name}-make.patch -URL: http://www.linuxbase.org/ -BuildRequires: help2man -BuildRequires: rpm >= 4.4.9-56 -BuildRequires: util-linux -Requires: util-linux -ExclusiveArch: %{ix86} ia64 %{x8664} ppc ppc64 s390 s390x -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -# no payload -%define _enable_debug_packages 0 +# Define this to link to which library version eg. /lib64/ld-lsb-x86-64.so.3 +%define lsbsover 3 %ifarch %{ix86} %define archname ia32 +%define ldso ld-linux.so.2 +%define lsbldso ld-lsb.so %endif %ifarch ia64 %define archname ia64 +%define ldso ld-linux-ia64.so.2 +%define lsbldso ld-lsb-ia64.so %endif %ifarch ppc %define archname ppc32 +%define ldso ld.so.1 +%define lsbldso ld-lsb-ppc32.so %endif %ifarch ppc64 %define archname ppc64 +%define ldso ld64.so.1 +%define lsbldso ld-lsb-ppc64.so %endif %ifarch s390 %define archname s390 +%define ldso ld.so.1 +%define lsbldso ld-lsb-s390.so %endif %ifarch s390x %define archname s390x +%define ldso ld64.so.1 +%define lsbldso ld-lsb-s390x.so %endif %ifarch %{x8664} %define archname amd64 +%define ldso ld-linux-x86-64.so.2 +%define lsbldso ld-lsb-x86-64.so %endif +%ifarch ia64 ppc64 s390x x86_64 +%define qual ()(64bit) +%else +%define qual %{nil} +%endif + +Summary: LSB base libraries support for PLD Linux +Summary(pl.UTF-8): Narzędzia LSB (Linux Standard Base) +Name: lsb-release +Version: 4.0 +Release: 1 +License: GPL v2+ +Group: Base +#Source0: http://dl.sourceforge.net/lsb/%{name}-2.0.tar.gz +Source0: %{name}-2.0.tar.bz2 +# Source0-md5: cf40f5c02016bc61db03591cc3ea1ca2 +Patch0: %{name}-make.patch +URL: http://www.linuxbase.org/ +BuildRequires: help2man +BuildRequires: rpm >= 4.4.9-56 +BuildRequires: util-linux +Requires: coreutils +Requires: glibc +Requires: util-linux +ExclusiveArch: %{ix86} ia64 %{x8664} ppc ppc64 s390 s390x +# dependency for primary LSB application for v1.3 +Provides: lsb = %{version} +# dependency for primary LSB application for v2.0 and v3.0 +Provides: lsb-core-%{archname} = %{version} +Provides: lsb-core-noarch = %{version} +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +# no payload +%define _enable_debug_packages 0 + %description LSB version query program. This program forms part of the required functionality of the LSB (Linux Standard Base) specification. @@ -62,6 +93,29 @@ Może także próbować wyświetlić nazwę i wersję dystrybucji wraz z identyfikatorem producenta. +%package graphics +Summary: LSB graphics libraries support for PLD Linux +Group: Base +Requires: %{name} = %{version}-%{release} +Provides: lsb-graphics-%{archname} = %{version} +Provides: lsb-graphics-noarch = %{version} + +%description graphics +The Linux Standard Base (LSB) Graphics Specifications define +components that are required to be present on an LSB conforming +system. + +%package printing +Summary: LSB printing libraries support for PLD Linux +Group: Base +Provides: lsb-printing-%{archname} = %{version} +Provides: lsb-printing-noarch = %{version} + +%description printing +The Linux Standard Base (LSB) Printing Specifications define +components that are required to be present on an LSB conforming +system. + %prep %setup -q -n %{name}-2.0 %patch0 -p1 @@ -95,16 +149,33 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/core-%{version}-noarch touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-%{archname} touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/graphics-%{version}-noarch +touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-%{archname} +touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/printing-%{version}-noarch + +install -d $RPM_BUILD_ROOT/%{_lib} +ln -s %{ldso} $RPM_BUILD_ROOT/%{_lib}/%{lsbldso}.%{lsbsover} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%attr(755,root,root) /%{_lib}/%{lsbldso}.%{lsbsover} %attr(755,root,root) %{_bindir}/lsb_release -%{_sysconfdir}/lsb-release -%{_sysconfdir}/%{name}.d %{_mandir}/man1/lsb_release.1* +%{_sysconfdir}/lsb-release +%dir %{_sysconfdir}/%{name}.d +# These files are needed because they shows which LSB we're supporting now, +# for example, if core-3.1-noarch exists, it means we are supporting LSB3.1 now +%{_sysconfdir}/%{name}.d/core* + +%files graphics +%defattr(644,root,root,755) +%{_sysconfdir}/%{name}.d/graphics* + +%files printing +%defattr(644,root,root,755) +%{_sysconfdir}/%{name}.d/printing* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -112,6 +183,11 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.10 2010/12/29 15:41:14 glen +- provide /lib/ld-lsb.so symlink +- graphis and printing to subpackages +- ver 4.0 + Revision 1.9 2010/05/24 14:35:33 glen - release 2 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lsb-release/lsb-release.spec?r1=1.9&r2=1.10&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
