LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File uml-utilities.spec of Package uml-utilities (Project openSUSE:Factory)

# spec file for package uml-utilities (Version 20070815)
# Copyright (c) 2010 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/

# norootforbuild

Name:           uml-utilities
BuildRequires:  fuse-devel readline-devel
Url:            http://user-mode-linux.sourceforge.net/
License:        GPL-2.0+
Group:          System/Management
AutoReqProv:    on
Version:        20070815
Release:        36
Summary:        User Mode Linux Utilities
Source0:        uml_utilities_%{version}.tar.bz2
Patch1:         uml-utilities-ia64.diff
Patch2:         uml-utilities.diff
Patch3:         tools-20070815-fdleak.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64
Requires:       tunctl

User mode Linux utilities.

    Jeff Dike <jdike@users.sourceforge.net>

%setup -q -n tools-%{version}
%patch1 -p1 -b ia64

export	CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -D_FILE_OFFSET_BITS=64"
make	BIN_DIR="%{_bindir}"		\
	LIB_DIR="%{_libdir}/uml"	\
	CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -D_FILE_OFFSET_BITS=64"		\

make	BIN_DIR="%{_bindir}"		\
	LIB_DIR="%{_libdir}/uml"	\
	DESTDIR="%{buildroot}"		\
install -d %{buildroot}/etc/sysconfig/uml
rm -f %{buildroot}%{_bindir}/tunctl

%dir %{_libdir}/uml
%dir /etc/sysconfig/uml
%doc Changelog

test "%{buildroot}" != "" -a "%{buildroot}" != "/" &&\
	rm -rf "%{buildroot}"