File makedev.spec of Package makedev
#
# spec file for package makedev (Version 2.6)
#
# 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/
#
# norootforbuild
Url: http://www.lanana.org/docs/device-list/
Name: makedev
License: GPL v2 or later
Group: System/Fhs
AutoReqProv: on
Version: 2.6
Release: 542
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
* 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