%define major 0 %define libname %mklibname %name %major Summary: Library for calling real mode BIOS routines under Linux Name: lrmi Version: 0.10 Release: %mkrel 15 License: MIT Group: System/Libraries URL: http://sourceforge.net/projects/lrmi/ Source0: http://prdownloads.sourceforge.net/lrmi/%{name}-%{version}.tar.bz2 Patch0: lrmi-0.10-makefile.patch Patch1: lrmi-no_strip.diff Patch2: lrmi-build_fix.diff Patch3: lrmi-shared_vbetest_fix.diff ExclusiveArch: %ix86 %description LRMI is a library for calling real mode BIOS routines under Linux. %package -n %{libname} Summary: Library for calling real mode BIOS routines under Linux Group: System/Libraries %description -n %{libname} LRMI is a library for calling real mode BIOS routines under Linux. %package -n %{libname}-devel Summary: Library for calling real mode BIOS routines under Linux Group: Development/C Requires: %{libname} = %{version} Provides: liblrmi-devel = %{version}-%{release} %description -n %{libname}-devel LRMI is a library for calling real mode BIOS routines under Linux. %package tools Summary: Library for calling real mode BIOS routines under Linux Group: System/Configuration %description tools LRMI is a library for calling real mode BIOS routines under Linux. %prep %setup -q %patch0 -p1 %patch1 -p0 %patch2 -p0 %patch3 -p0 %build make CFLAGS="%{optflags}" %install mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir} %makeinstall LIBDIR=%{buildroot}%{_libdir} INCDIR=%{buildroot}%{_includedir} install -D vbetest %{buildroot}%{_bindir}/vbetest %files tools %doc README %{_bindir}/* %files -n %{libname} %{_libdir}/liblrmi.so.%{major}* %files -n %{libname}-devel %{_libdir}/liblrmi.so %{_includedir}/lrmi.h %changelog * Wed Jan 23 2013 fwang <fwang> 0.10-15.mga3 + Revision: 391283 - update rpm group * Sat Jan 12 2013 umeabot <umeabot> 0.10-14.mga3 + Revision: 359017 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Feb 17 2011 ahmad <ahmad> 0.10-13.mga1 + Revision: 52839 - drop old/unneeded scriptlets - imported package lrmi