Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 94f2a9d499a2edf4f1d3bc6801f2430d > files > 3

lsb-build-base-2.0.4-2mdk.src.rpm

%define ver     2.0.4
%define realname  lsb-build-base
%define _provides_exceptions \\(lib\\(GL\\|ICE\\|SM\\|X11\\|Xext\\|Xt\\|c\\|crypt\\|dl\\|gcc_s\\|m\\|ncurses\\|pam\\|pthread\\|stdc++\\|util\\|z\\)\\|ld-lsb.*\\)\\.so    

Summary: 	LSB Build environment base package
Name: 		lsb-build-base
Version: 	%ver
Release: 	2mdk
License: 	LGPL
Group: 		Development/C
Source: 	ftp://ftp.freestandards.org/pub/lsb/lsbdev/released-2.0.0/source/lsb-build-base-%ver.tar.bz2
URL:    	http://www.linuxbase.org/build 
Patch0:         %{name}-rpmlint.patch.bz2
BuildRoot: 	%{_tmppath}/%{name}-%{version}-buildroot
Obsoletes: 	lsbdev-base

%description

The LSB Build environment base package provides stub libraries and
header files. These can be used to build LSB compliant applications.
Note that the version number of the package refers to the version
of the specification that the stub libraries and header files
have been generated for.

%package        -n %{name}-devel
Summary:        LSB Build environment base package
Group:          Development/C
Provides:       %{name} lsbdev-base-devel
Obsoletes: 	lsbdev-base-devel

%description -n %{name}-devel

The LSB Build environment base package provides stub libraries and
header files. These can be used to build LSB compliant applications.
Note that the version number of the package refers to the version
of the specification that the stub libraries and header files
have been generated for.

%prep
%setup -q
%patch0 -p1 -b .rpmlint

%build
make LSBVERSION=${RPM_PACKAGE_VERSION} LSBLIBCHK_VERSION=${RPM_PACKAGE_VERSION}-${RPM_PACKAGE_RELEASE}

%install
rm -rf $RPM_BUILD_ROOT
[[ "%{_lib}" != "lib" ]] && LIB64=64
%makeinstall_std INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} SUBDIR=%{realname} LIB64="$LIB64"
( cd $RPM_BUILD_ROOT/%{_prefix}/include/%{realname} ; ln -s curses.h ncurses.h )
( cd $RPM_BUILD_ROOT/%{_prefix}/include/%{realname} ; rm -fr All IA32 IA64 PPC32 PPC64 S390 S390X x86-64 )
( cd $RPM_BUILD_ROOT/%{_prefix}/%{_lib}/%{realname} ; ln -s libncurses.so libcurses.so )

%clean
rm -rf $RPM_BUILD_ROOT

#(sb) lsbdev-base has no files, only -devel
%files -n %{name}-devel
%defattr(-,root,root)
%doc README Licence
%{_libdir}/%{name}
%{_includedir}/%{name}

%changelog
* Thu Sep  2 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0.4-2mdk
- provides_exceptions from Gwenole

* Thu Aug 26 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0.4-1mdk
- 2.0.4, 64bit fixes

* Thu Aug 26 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0.3-2mdk
- fix %%install stanza

* Mon Jul 26 2004 Stew Benedict <sbenedict@mandrakesoft.com> 2.0.3-1mdk
- repackage for Mandrakelinux
- restructure dirs for rpmlint(patch0), split into -devel 
- use doc macro, License

* Thu Jun 10 2004 Mats Wichmann <mats@freestandards.org>
- make symlinks for curses header and library
- clean out excess directories in header tree

* Thu Jun 27 2002 Christopher Yeoh <cyeoh@samba.org>
- Mods for autobuild

* Thu Jun 20 2002 Christopher Yeoh <cyeoh@samba.org>
- Initial package