Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37843541
en ru br
ALT Linux repos
S:0.10-alt5
5.0: 0.10-alt3
4.1: 0.10-alt2
4.0: 0.10-alt2

Group :: System/Libraries
RPM: lrmi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_enable static
%def_with vbetest

Name: lrmi
%define lname lib%name
Version: 0.10
Release: alt3
Summary: Linux Real Mode Interface
License: Public domain
Group: System/Libraries
URL: http://sourceforge.net/projects/%name
Source: %name-%version.tar
Patch0: %name-0.10-link.patch
Patch1: %name-0.10-linux-defs.patch
ExclusiveArch: %ix86

%description
Linux Real Mode Interface library provides a DPMI like interface under
Linux and *BSD systems using vm86.
%if_with vbetest
There is also some VBE (VESA Bios Extension) interface utility called
vbetest.
%endif


%package -n %lname
Summary: Linux Real Mode Interface library
Group: System/Libraries
Provides: %name = %version-%release

%description -n %lname
Linux Real Mode Interface library provides a DPMI like interface under
Linux and *BSD systems using vm86.


%package -n %lname-devel
Summary: Linux Real Mode Interface library header
Group: Development/C
Requires: %lname = %version-%release

%description -n %lname-devel
Linux Real Mode Interface library provides a DPMI like interface under
Linux and *BSD systems using vm86.
This package contains header file for development with %lname.


%if_enabled static
%package -n %lname-devel-static
Summary: Linux Real Mode Interface static library
Group: Development/C
Requires: %lname-devel = %version-%release

%description -n %lname-devel-static
Linux Real Mode Interface library provides a DPMI like interface under
Linux and *BSD systems using vm86.
This package contains static library for development with %lname.
%endif


%if_with vbetest
%package -n vbetest
Summary: VBE interface utility
Group: System/Configuration/Hardware
Requires: %lname = %version

%description -n vbetest
VBE (VESA Bios Extension) interface utility.
%endif


%prep
%setup
%patch0 -p1
%patch1 -p1


%build
%add_optflags %optflags_shared
%make_build CFLAGS="%optflags" CC=%__cc %lname.so %{?_enable_static:%lname.a} %{?_with_vbetest:vbetest}


%install
install -d -m 0755 %buildroot{%_libdir,%_includedir}
install -m 0644 %lname.so.0.* %{?_enable_static:%lname.a} %buildroot%_libdir/
ln -sf %lname.so.0 %buildroot%_libdir/%lname.so
install -m 0644 %name.h %buildroot%_includedir/
%{?_with_vbetest:install -D -m 0755 {,%buildroot%_sbindir/}vbetest}


%post -n %lname  -p %post_ldconfig
%postun -n %lname -p %postun_ldconfig


%files -n %lname
%doc README
%_libdir/*.so.*


%files -n %lname-devel
%_includedir/*
%_libdir/*.so


%if_enabled static
%files -n %lname-devel-static
%_libdir/*.a
%endif


%if_with vbetest
%files -n vbetest
%_sbindir/*
%endif


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin