File makedev.spec of Package makedev

#
# spec file for package makedev (Version 2.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#

# norootforbuild

Name:         makedev
License:      GPL
Group:        System/Fhs
Autoreqprov:  on
Version:      2.6
Release:      409
Source:       ftp://tsx-11.mit.edu/pub/linux/sources/sbin/MAKEDEV-%{version}.tar.bz2
Patch:        %{name}-%{version}.diff
Patch1:       %{name}-%{version}-chown.diff
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildArch:    noarch
Summary:      Script for Creating Device Files in /dev

%description
This package contains the MAKEDEV script, which makes it easy to create
and maintain the files in the /dev directory.

You do not need this script on SuSE Linux, but it is needed for FHS
2.1.



Authors:
--------
    Nick Holloway <Nick.Holloway@alfie.demon.co.uk>

%prep
%setup -n MAKEDEV-%{version}
%patch
%patch1

%build

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
make MANDIR=$RPM_BUILD_ROOT%{_mandir} ROOT=$RPM_BUILD_ROOT install

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/sbin/MAKEDEV
%doc %{_mandir}/man8/MAKEDEV.8.gz

%changelog -n makedev
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 22 2006 - olh@suse.de
- build as noarch
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Thu Aug 14 2003 - tcrhak@suse.cz
- use : instead of . in chown (bug #28771, patch chown)
* Mon Jan 07 2002 - tcrhak@suse.cz
- update to version 2.6
- fixed man page
* Fri May 05 2000 - kukuk@suse.de
- Initial package, needed by FHS
openSUSE Build Service is sponsored by