SPECS: lrmi.spec - rel 5 - added klibc-devel subpackage

baggins baggins at pld-linux.org
Mon Apr 6 14:20:16 CEST 2009


Author: baggins                      Date: Mon Apr  6 12:20:16 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 5
- added klibc-devel subpackage

---- Files affected:
SPECS:
   lrmi.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/lrmi.spec
diff -u SPECS/lrmi.spec:1.10 SPECS/lrmi.spec:1.11
--- SPECS/lrmi.spec:1.10	Sat Nov  1 11:10:05 2008
+++ SPECS/lrmi.spec	Mon Apr  6 14:20:11 2009
@@ -1,18 +1,28 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	klibc	# use klibc for initrd/initramfs purposes
+#
 Summary:	Library for calling real mode BIOS routines under Linux
 Summary(pl.UTF-8):	Biblioteka do wywoływania funkcji BIOS w trybie rzeczywistym pod Linuksem
 Name:		lrmi
 Version:	0.10
-Release:	4
+Release:	5
 License:	BSD-like/Public Domain (see source)
 Group:		Libraries
 Source0:	http://dl.sourceforge.net/lrmi/%{name}-%{version}.tar.gz
 # Source0-md5:	fc1d9495e8f4563fca471bb65f34a5da
 Patch0:		%{name}-update-v86d.patch
 URL:		http://sourceforge.net/projects/lrmi/
+%{?with_klibc:BuildRequires:	klibc-devel}
 ExclusiveArch:	%{ix86}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%if %{with klibc}
+%define		_klibdir	%{_prefix}/%{_lib}/klibc
+%define		_kincludedir	%{_prefix}/include/klibc
+%endif
+
 %description
 LRMI is a library for calling real mode BIOS routines under Linux.
 
@@ -44,11 +54,33 @@
 %description static -l pl.UTF-8
 Statyczna biblioteka lrmi.
 
+%package klibc-devel
+Summary:	Header files and static lrmi library for klibc
+Summary(pl.UTF-8):	Pliki nagłówkowe i statyczna biblioteka lrmi dla klibc
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description klibc-devel
+Header files and static lrmi library for klibc.
+
+%description klibc-devel -l pl.UTF-8
+Pliki nagłówkowe i statyczna biblioteka lrmi dla klibc.
+
 %prep
 %setup -q
 %patch0 -p1
 
 %build
+%if %{with klibc}
+%{__make} liblrmi.a \
+	CC="klcc" \
+	CFLAGS="%{rpmcflags} -Os -static -Wall"
+
+mkdir -p klibc
+cp liblrmi.a klibc/
+%{__make} clean
+%endif
+
 %{__make} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags} -Wall"
@@ -65,6 +97,12 @@
 install *.so *.a $RPM_BUILD_ROOT%{_libdir}
 install vbe.h lrmi.h $RPM_BUILD_ROOT%{_includedir}/%{name}
 
+%if %{with klibc}
+install -d $RPM_BUILD_ROOT{%{_klibdir},%{_kincludedir}/%{name}}
+install *.a $RPM_BUILD_ROOT%{_klibdir}
+install vbe.h lrmi.h $RPM_BUILD_ROOT%{_kincludedir}/%{name}
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -84,12 +122,23 @@
 %defattr(644,root,root,755)
 %{_libdir}/liblrmi.a
 
+%if %{with klibc}
+%files klibc-devel
+%defattr(644,root,root,755)
+%{_kincludedir}/%{name}
+%{_klibdir}/liblrmi.a
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2009/04/06 12:20:11  baggins
+- rel 5
+- added klibc-devel subpackage
+
 Revision 1.10  2008/11/01 10:10:05  qboosh
 - updated update-v86d patch (from v86d 0.1.9)
 - release 4
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lrmi.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list