Репозитории ALT
Последнее обновление в Чт, 26 нояб. 2020, 01:29:37 +0000 | Пакетов: 9785
en ru
Исходные пакеты в ветвях
свернуть окно
  • 0.9-alt11.132626.13.M51.46
  • 0.9-alt11.132626.11
Группа :: Система/Ядро и оборудование
Исходный пакет: kernel-modules-subfs-ovz-rhel
Необработанный spec-файл

%define module_name subfs
%define module_version 0.9

%define kversion 2.6.18
%define krelease alt13.M51.46
%define flavour ovz-rhel

%define module_release alt11
Packager: Kernel Maintainer Team <kernel@packages.altlinux.org>

Name: kernel-modules-%module_name-%flavour
Version: %module_version
Release: %module_release.132626.13.M51.46
%define module_dir /lib/modules/%kversion-%flavour-%krelease/kernel/fs/%module_name

Group: System/Kernel and hardware
Summary: %module_name kernel module for submount
URL: http://submount.sourceforge.net/
License: GPL

Patch1: subfs-0.9-alt-i_mutex.patch
Patch2: submount-0.9-2.6.18.patch
Patch3: submount-0.9-2.6.19.patch
Patch4: submount-0.9-2.6.20.patch
Patch5: submount-0.9-2.6.25.patch
Patch6: submount-0.9-2.6.27.patch
Patch7: subfs-ovz-rhel-remove-another-i_blksize.patch

ExclusiveOS: Linux
BuildRequires: kernel-build-tools >= 0.7
BuildRequires: kernel-headers-modules-%flavour = %kversion-%krelease
BuildRequires: kernel-source-%module_name = %module_version
BuildRequires: rpm-build-licenses
ExclusiveArch: %ix86 x86_64

Provides: kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

Prereq: coreutils
Prereq: kernel-image-%flavour = %kversion-%krelease
Requires(postun):
kernel-image-%flavour = %kversion-%krelease
Requires: submount

%description
Subfs is the kernel portion of the submount removable media handling system.
For submount to function, it needs both the subfs kernel module and the
submount package to be installed.

Submount is a system for automatically mounting and unmounting
removable media drives like CD-ROMs, flash and floppy disk drives. Once
installed, it allows removable media drives to be accessed as if they
were permanently mounted.


%prep
rm -rf kernel-source-%module_name-%{module_version}*
tar xfz %kernel_src/kernel-source-%module_name-%module_version.tar.*
%setup -D -T -n kernel-source-%module_name-%module_version

# %if "%kversion" >= "2.6.16"

# %patch1 -p1

# %patch2 -p1

# %endif

# %if "%kversion" >= "2.6.19"

# %patch3 -p1

# %endif

# %if "%kversion" >= "2.6.20"

# %patch4 -p1

# %endif

# %if "%kversion" >= "2.6.25"

%patch5 -p1
# %endif

%if "%kversion" >= "2.6.27"
%patch6 -p1
%endif
%patch7 -p0

%build
. %_usrsrc/linux-%kversion-%flavour/gcc_version.inc
%make -C %_usrsrc/linux-%kversion-%flavour TEMP_DIR=$(pwd) V=1 SUBDIRS=$(pwd) modules


%install
install -D -m 0644 %module_name.ko %buildroot/%module_dir/%module_name.ko


%post
%post_kernel_modules %kversion-%flavour-%krelease

%postun
%postun_kernel_modules %kversion-%flavour-%krelease

%files
%dir %module_dir
%module_dir/*

%changelog
* Mon Oct 31 2016 Gleb F-Malinovskiy <glebfm at altlinux.org> 0.9-alt11.132626.13.M51.46
- Build for kernel-image-ovz-rhel-2.6.18-alt13.M51.46.

* Fri May 22 2009 Anton Protopopov <aspsk at altlinux.org> 0.9-alt11
- Fake release

* Thu May 21 2009 Anton Protopopov <aspsk at altlinux.org> 0.9-alt10.4
- Add patch that removes i_blksize from subfs.c

* Sat Nov 01 2008 Michail Yakushin <silicium at altlinux.ru> 0.9-alt10.3
- build for 2.6.27

* Mon Jun 02 2008 Michail Yakushin <silicium at altlinux.ru> 0.9-alt10.2
- build for 2.6.25

* Wed Mar 12 2008 Led <led at altlinux.ru> 0.9-alt10
- build for std-def-2.6.24-alt4

* Thu Feb 14 2008 Led <led at altlinux.ru> 0.9-alt10
- rebuild with new kernel-source-%module_name
- cleaned up spec

* Thu Oct 25 2007 Led <led at altlinux.ru> 0.9-alt10
- added:
+ submount-0.9-2.6.19.patch
+ submount-0.9-2.6.20.patch

* Mon Jan 29 2007 Sergey Vlasov <vsu at altlinux.ru> 0.9-alt9
- Removed unneeded "Prereq: modutils".

* Sun Dec 10 2006 L.A. Kostis <lakostis at altlinux.ru> 0.9-alt8.132626.8
- Added:
+ submount-0.9-2.6.18.patch: fix compatibility with kernel 2.6.18
(tnx to dsd at gentoo.org).

* Sat Mar 11 2006 Sergey Vlasov <vsu at altlinux.ru> 0.9-alt7
- Added:
+ subfs-0.9-alt-i_mutex.patch: fix compatibility with kernel 2.6.16.

* Sun Dec 26 2004 Sergey Vlasov <vsu at altlinux.ru> 0.9-alt6
- Rebuild for kernel 2.4.28.

* Wed Nov 24 2004 Sergey V Turchin <zerg at altlinux dot org> 0.9-alt5
- add requires to submount

* Sun Oct 17 2004 Sergey Vlasov <vsu at altlinux.ru> 0.9-alt4
- Rebuild for kernel 2.4.27.

* Tue Aug 03 2004 Sergey Vlasov <vsu at altlinux.ru> 0.9-alt3
- Use %%post_kernel_modules and %%postun_kernel_modules macros in scripts.

* Wed Jul 14 2004 Sergey V Turchin <zerg at altlinux dot org> 0.9-alt2
- update package description

* Wed May 12 2004 Sergey V Turchin <zerg at altlinux dot org> 0.9-alt1
- initial.spec
 
Проект Geyser основан на коде из проекта Prometheus 2.0, который был доступен по лицензии MIT