Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37694886
en ru br
Репозитории ALT
S:0.10-alt5
5.1: 0.10-alt3
4.1: 0.10-alt2
4.0: 0.10-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: lrmi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_enable static
%def_with vbetest

Name: lrmi
%define lname lib%name
Version: 0.10
Release: alt2
Summary: Linux Real Mode Interface
License: Public domain
Group: System/Libraries
URL: http://sourceforge.net/projects/%name
Source: %name-%version.tar.gz
ExclusiveArch: %ix86

# Automatically added by buildreq on Wed Jul 12 2006

BuildRequires: linux-libc-headers

%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

%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

%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

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


%prep
%setup -q


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


%install
install -d -m 0755 %buildroot%_libdir
install -m 0644 %lname.so.%version %lname.a %buildroot%_libdir/
ln -s %lname.so.%version %buildroot%_libdir/%lname.so.0
ln -s %lname.so.0 %buildroot%_libdir/%lname.so
install -pD -m 0644 %name.h %buildroot%_includedir/%name.h
%{?_with_vbetest:install -pD -m 0755 vbetest %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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin