Search
j0ke.net Open Build Service
>
Projects
>
J0KE.NET
:
infrastructure
>
util-linux
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 32
[-]
[+]
Added
util-linux.spec
@@ -0,0 +1,700 @@ +# +# spec file for package util-linux (Version 2.16) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + + +Name: util-linux +BuildRequires: audit-devel gettext-devel pkg-config +BuildRequires: libselinux-devel libsepol-devel ncurses-devel pam-devel readline-devel zlib-devel +Url: http://userweb.kernel.org/~kzak/util-linux-ng/ +Provides: util rawio raw base schedutils uuid-runtime +Obsoletes: util rawio raw base schedutils uuid-runtime +Supplements: filesystem(minix) +PreReq: %install_info_prereq permissions +License: BSD 3-clause (or similar) ; GPL v2 or later +Group: System/Base +AutoReqProv: on +Version: 2.16 +Release: 4 +Requires: %name-lang = %{version} +Summary: A collection of basic system utilities +Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%version.tar.bz2 +Source1: util-linux-rpmlintrc +Source2: nologin.c +Source3: nologin.8 +Source4: raw.init +Source5: etc.raw +Source6: etc_filesystems +%define time_ver 1.7 +%define which_ver 2.19 +%define adjtimex_ver 1.20 +Source9: adjtimex-%{adjtimex_ver}.tar.bz2 +Source10: freeramdisk.tar.bz2 +Source11: klogconsole.tar.bz2 +Source12: which-%{which_ver}.tar.bz2 +Source13: time-%{time_ver}.tar.bz2 +Source15: cryptoloop.txt +Source22: setctsid.c +Source23: setctsid.8 +Source26: README.raw +Source28: mkzimage_cmdline.8 +Source29: mkzimage_cmdline.c +Source30: README.largedisk +Source31: addnote.c +Source50: uuidd.rc +Source51: blkid.conf +## +## util-linux patches +## +# add hostid +Patch0: util-linux-2.12-misc_utils_hostid.patch +# 241372 - remove legacy warnings from fdisk +Patch1: util-linux-2.12r-fdisk_remove_bogus_warnings.patch +# bnc#447036 +Patch2: util-linux-2.14.1-mount_skip_sync.patch +# crypto patch +Patch3: util-linux-mount_losetup_crypto.patch +## +## adjtimex +## +Patch50: adjtimex-1.20-nosyscall.diff +## +## klogconsole +## +Patch55: klogconsole-quiet.patch +Patch56: klogconsole.diff +## +## time +## +Patch60: time-1.7.dif +## +## which +## +Patch70: which-lib64.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +PreReq: %insserv_prereq %fillup_prereq /bin/sed + +%description +This package contains a large variety of low-level system utilities +that are necessary for a Linux system to function. It contains the +mount program, the fdisk configuration tool, and more. + +%package -n libblkid1 +License: GPL v2 or later +Summary: Filesystem detection library +Group: System/Filesystems +AutoReqProv: on + +%description -n libblkid1 +Library for filesystem detection. + +%package -n libblkid-devel +License: GPL v2 or later +Summary: Development files for the filesystem detection library +Group: Development/Libraries/C and C++ +AutoReqProv: on +Requires: libblkid1 = %version libuuid-devel + +%description -n libblkid-devel +Files needed to develop applications using the library for filesystem +detection. + +%package -n uuidd +License: GPL v2 or later +Summary: Utilities for the Second Extended File System +Group: System/Filesystems +AutoReqProv: on +PreReq: %fillup_prereq %insserv_prereq permissions pwdutils + +%description -n uuidd +Utilities needed to create and maintain ext2 and ext3 file systems +under Linux. Included in this package are: chattr, lsattr, mke2fs, +mklost+found, tune2fs, e2fsck, resize2fs, and badblocks. + +%package -n libuuid1 +License: GPL v2 or later +Summary: Library to generate UUIDs +Group: System/Filesystems +AutoReqProv: on + +%description -n libuuid1 +A library to generate universally unique IDs (UUIDs). + +%package -n libuuid-devel +License: GPL v2 or later +Summary: Development files for libuuid1 +Group: Development/Libraries/C and C++ +AutoReqProv: on +Requires: libuuid1 = %version + +%description -n libuuid-devel +Files to develop applications using the library to generate universally +unique IDs (UUIDs). + +%lang_package +%prep +%setup -q -a 9 -b 10 -b 11 -b 12 -b 13 -n %name-ng-%version +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +# +cd adjtimex-* +%patch50 -p1 +cd - +# setctsid +cp %{S:22} %{S:23} . +# nologin +cp %{S:2} %{S:3} %{S:15} %{S:26} %{S:30} . +cd ../klogconsole +%patch55 -p1 -b .quiet +%patch56 -p1 +cd ../time-* +%patch60 +cd ../which-* +%patch70 + +%build +# adjtimex build +cd adjtimex-%{adjtimex_ver} +CFLAGS="$RPM_OPT_FLAGS" ./configure +make +cd .. +pushd ../ +# freeramdisk build +cd freeramdisk +make CFLAGS="$RPM_OPT_FLAGS" freeramdisk +cd .. +# which build +cd which-%{which_ver} +#autoreconf -fi +aclocal --force +autoconf --force +automake --force-missing --add-missing --foreign +%{?suse_update_config:%{suse_update_config}} +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + %{_target_cpu}-suse-linux +make +cd .. +# time build +cd time-%{time_ver} +%{?suse_update_config:%{suse_update_config}} +CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE " INSTALL_PROGRAM='$(INSTALL)' \ + ./configure --prefix=/usr \