Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37536155
en ru br
Репозитории ALT
S:2.5.5-alt68
5.1: 2.5.5-alt13
4.1: 2.5.5-alt9
4.0: 2.5.5-alt5.M40.4
3.0: 2.5.2-alt3
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: evms

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

# vim: set ft=spec: -*- rpm-spec -*-
# $Id: evms,v 1.209 2004/12/22 12:55:03 tren Exp $
#
%def_with x

%define  patch_name kernel-feat-evms
%define  src_patches_dir kernel/2.4
%define  src_patches_dir_26 kernel/2.6
%define  klabel_24 2.4
%define  klabel_26 2.6
%define  klabel_265 10_apply_to_2.6.5

Name: evms
Version: 2.5.2
Release: alt3

Summary: Enterprise Volume Management System utilities
License: GPL
Group: System/Kernel and hardware
Url: http://www.sourceforge.net/projects/evms
Packager: Zhenja Kaluta <tren at altlinux.ru>

Source0: http://prdownloads.sourceforge.net/%name/%name-%version.tar.gz
Source1: startevms

Patch0: %name-2.3.2-pipe.patch
Patch1: %name-2.2.2-delayed_discovery.patch.bz2
Patch2: %name-2.4.0-cli-print_value.patch
Patch3: %name-2.1.0-noncurses.patch
Patch4: %name-2.1.1-alt-arm-nodirect.patch
Patch5: %name-2.4.0-raid1_discovery.patch
Patch6: %name-2.3.0-md_discover.patch
Patch7: %name-2.4.0-engine-is_mounted.patch
Patch8: %name-2.5.0-alt-fat.patch.bz2

%ifarch %ix86 x86_64
BuildPreReq: kernel-build-tools
%endif

BuildRequires: glib-devel libe2fs-devel libncurses-devel libreadline-devel libtinfo-devel
BuildRequires: kernel-headers-std26-up

%if_with x
BuildRequires: XFree86-devel gtk+-devel
%endif

Conflicts: lvm

%package -n lib%name
Summary: Enterprise Volume Management System libraries
Group: System/Libraries

%package -n lib%name-devel
Summary: Enterprise Volume Management System development part
Group: Development/C
Requires: lib%name = %version-%release
Provides: %name-devel = %version-%release

%package -n %name-cli
Summary: EVMS commandline tool
Group: System/Kernel and hardware
Requires: evms = %version-%release

%package -n %name-ncurses
Summary: EVMS UI
Group: System/Kernel and hardware
Requires: evms = %version-%release

%package -n %name-gui
Summary: EVMS GUI
Group: System/Kernel and hardware
Requires: evms = %version-%release

%package -n %patch_name
Summary: %patch_name kernel patch - Enterprise Volume Manager System
Group: Development/Other

%package -n %patch_name-nodm
Summary: %patch_name kernel patch - Enterprise Volume Manager System for nodm system
Group: Development/Other


%description
This package contains the user-space tools needed to manage EVMS (Enterprise
Volume Management System) volumes.

In order to use these user-space tools, you must also have your kernel patched
with the most recent EVMS code. This code is available in the source package
on the project web page http://www.sf.net/projects/evms/

Please see the EVMS-HOWTO on the project web page or in the source package
for detailed instructions on patching your kernel with EVMS and using the
tools after installation.

%description -n lib%name
This package contains libs needed to manage EVMS (Enterprise
Volume Management System) volumes.

%description -n lib%name-devel
This package contains develop tools needed to manage EVMS (Enterprise
Volume Management System) volumes.

%description -n %name-cli
Command line tool for EVMS

%description -n %name-ncurses
Ncurses ui tool for EVMS

%description -n %name-gui
GTK+ ui tool for EVMS

%description -n %patch_name
This patch adds support for EVMS, the Enterprise Volume Manager System.
It uses device mapper to work

%description -n %patch_name-nodm
This patch adds support for EVMS, the Enterprise Volume Manager System.
It uses device mapper to work in case w/o extra dm patches

%prep
%setup -q
%patch0 -p1
#patch1 -p1
%patch2 -p1
%patch3 -p1
%ifarch armv4b armv4l armv5b armv5l
%patch4 -p1
%endif
#patch5 -p1 # restructured source since 2.5.1
#patch6 -p1 # restructured source since 2.5.1
#patch7 -p1
%patch8 -p1

%build
%__autoconf
%add_optflags -DEVMS_DEBUG
%configure  --libdir=/%_lib --sbindir=/sbin \
--disable-s390 \
--disable-gpt \
--disable-aix \
--disable-os2 \
%ifarch armv4b armv4l armv5b armv5l
--disable-jfs \
--disable-reiser \
--disable-ha \
%endif
%if_without x
--disable-gui \
--disable-gtktest \
%endif
#

%__make LD_LIBRARY_PATH=%buildroot/%_lib

%install
%__mkdir_p %buildroot{%_sysconfdir,%_libdir,%_sbindir/sbin}
%__make DESTDIR=%buildroot prefix=%buildroot%_prefix install
%__install -p -m 0755 %SOURCE1 %buildroot/sbin

%__mv %buildroot/sbin/%{?_with_x:{evmsn,evmsgui}}%{!?_with_x:evmsn} %buildroot%_sbindir/
for f in %buildroot/%_lib/*.so; do
   %__ln_s -f ../../%_lib/`readlink $f` %buildroot%_libdir/${f##*/}
done

%__mkdir_p %buildroot%_sysconfdir/sysconfig
%__cat <<EOF > %buildroot%_sysconfdir/sysconfig/%name
# if 'yes' tune evms.conf during evms startup
# to avoid scans on nonexistent legacy devices
EVMS_RECONFIG=no
EOF

# {{{ kernel patches


%ifarch %ix86 x86_64
%__mkdir_p %patches_dir/%patch_name/{%klabel_24,%klabel_26}/01_kernel-fix-lvm
#################################################
# Kernel patches 2.4 #
#################################################

%define need_patches dm-snapshot.patch dm-mpath.patch dm-bbr.patch
pushd .
cd %src_patches_dir

#for i in %need_patches; do

# %__install -p -m 644 $i %patches_dir/%patch_name/%klabel_24/01_kernel-fix-lvm
#done
%__install -p -m 644 dm-snapshot.patch \
%patches_dir/%patch_name/%klabel_24/01_kernel-fix-lvm/01_dm-snapshot.patch
%__install -p -m 644 dm-bbr.patch \
%patches_dir/%patch_name/%klabel_24/01_kernel-fix-lvm/02_dm-bbr.patch
%__install -p -m 644 md-raid.patch \
%patches_dir/%patch_name/%klabel_24/01_kernel-fix-lvm/03_md-raid.patch
popd

#################################################

# Kernel patches 2.6 #
#################################################

#define need_patches bd-claim.patch  dm-bbr.patch  dm-origin.patch

%define need_patches dm-bbr.patch

%__mkdir_p %patches_dir/%patch_name/%klabel_26/
(cd %src_patches_dir_26
for i in %need_patches; do
%__install -p -m 644 $i %patches_dir/%patch_name/%klabel_26/
done
)

%define need_patches bd-claim.patch

%__mkdir_p %patches_dir/%patch_name-nodm/%klabel_26/

(cd %src_patches_dir_26
for i in %need_patches; do
%__install -p -m 644 $i %patches_dir/%patch_name-nodm/%klabel_26/
done
)

###############################################

%endif # ix86 x86_64

# }}}


%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig

%files
%doc doc/linuxrc ChangeLog INSTALL* README PLUGIN.IDS TERMINOLOGY
%config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/sysconfig/%name
/sbin/startevms
/sbin/%{name}_*
#/sbin/get_dev_num
%_man8dir/%{name}_*

%files -n lib%name
/%_lib/%name
#/%_lib/libdlist-*.so.*
/%_lib/lib%name-*.so.*
/%_lib/lib%name.so

%files -n lib%name-devel
#%_libdir/libdlist.so
%_libdir/lib%name.so
%_includedir/%name

%files -n %name-cli
/sbin/%name
%_man8dir/%name.*

%files -n %name-ncurses
%_sbindir/%{name}n

%if_with x
%files -n %name-gui
%_sbindir/%{name}gui
%endif

%ifarch %ix86 x86_64
%files -n %patch_name
%patches/%patch_name
%files -n %patch_name-nodm
%patches/%patch_name-nodm
%endif

%changelog

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

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