]> git.pld-linux.org Git - packages/MAKEDEV.git/blobdiff - MAKEDEV.spec
- tabs in preamble
[packages/MAKEDEV.git] / MAKEDEV.spec
index f5676a8e4cc1fd69823f86c5a5c1f28e147eb0fd..17bd7a439e4853c41cb46d9459fabc56e7a7b7bd 100644 (file)
-Summary:       Script to make and update /dev entries
-Summary(fr):   Script pour créer et mettre à jour les entrées /dev
-Summary(tr):   Aygýt tanýmý yapmak ve deðiþtirmek için bir araç
-Summary(pl):   Skrypt do tworzenia i poprawiania urz±dzeñ z /dev 
-Summary(de):   Script zum Erstellen und Aktualisieren von /dev-Einträgen
-Name:          MAKEDEV
-Version:       2.5
-Release:       2
-Copyright:     none
-Group:         Utilities/System
-Group(pl):     Narzêdzia/System
-Source:        ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.gz
-Requires:      fileutils 
-Requires:      setup
-BuildArch:     noarch
-BuildRoot:     /tmp/%{name}-%{version}-root
+#
+# Conditional build:
+%bcond_without selinux         # build without SELinux support
+#
+Summary:       Program to make and update /dev entries
+Summary(de.UTF-8):     Script zum Erstellen und Aktualisieren von /dev-Einträgen
+Summary(es.UTF-8):     Script para hacer y actualizar entradas referentes a dispositivos en /dev
+Summary(fr.UTF-8):     Script pour créer et mettre à jour les entrées /dev
+Summary(pl.UTF-8):     Program do tworzenia i poprawiania urządzeń z /dev
+Summary(pt_BR.UTF-8):  Script para fazer e atualizar entradas referentes a dispositivos em /dev
+Summary(tr.UTF-8):     Aygıt tanımı yapmak ve değiştirmek için bir araç
+Name:          MAKEDEV
+Version:       3.13
+Release:       2
+License:       GPL v2+
+Group:         Applications/System
+Source0:       %{name}-%{version}-1.tar.gz
+# Source0-md5: f8befaebd0813c6fa59c07ef3875f232
+Patch0:                %{name}-ub.patch
+%if %{with selinux}
+BuildRequires: libselinux-devel >= 0:1.8
+Requires:      libselinux >= 0:1.8
+%endif
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _bindir         /sbin
 
 %description
 The /dev tree holds special files, each of which corresponds to a type
-of hardware device that Linux supports. This package contains a script
-which makes it easier to create and maintain the files which fill the
-/dev tree.
-
-%description -l de
-Die /dev-Hierarchie enthält spezielle Dateien, von denen jede einem 
-Hardwaregerättyp entspricht, der von Linux unterstützt wird. Dieses 
-Paket enthält ein Skript, das die Erstellung und die Pflege der Dateien
-innerhalb dieser Hierarchie vereinfacht. 
-
-%description -l fr
-L'arborescence /dev contient des fichiers spéciaux. Chacun d'eux
-correspond à un périphérique matériel gérable par Linux. Ce paquetage
-contient un script facilitant la création et la maintenance des
+of hardware device that Linux supports. This package contains a
+program which makes it easier to create and maintain the files which
+fill the /dev tree.
+
+%description -l de.UTF-8
+Die /dev-Hierarchie enthält spezielle Dateien, von denen jede einem
+Hardwaregerättyp entspricht, der von Linux unterstützt wird. Dieses
+Paket enthält ein Skript, das die Erstellung und die Pflege der
+Dateien innerhalb dieser Hierarchie vereinfacht.
+
+%description -l es.UTF-8
+El directorio /dev posee archivos especiales, cada uno de ellos
+correspondiendo a un tipo de dispositivo de hardware que Linux
+soporta. Este paquete contiene un script que hace más fácil la
+creación y manutención de los archivos en el directorio /dev.
+
+%description -l fr.UTF-8
+L'arborescence /dev contient des fichiers spéciaux. Chacun d'eux
+correspond à un périphérique matériel gérable par Linux. Ce paquetage
+contient un script facilitant la création et la maintenance des
 fichiers qui remplissent l'arborescence /dev.
 
-%description -l pl
-Pliki specjalne znajduj±ce siê w katalogu /dev odpowiadaj± urz±dzeniom,
-które s± obs³ugiwane przez Linuxa. Pakiet ten zawiera skrypt, który
-uczyni tworzenie i operowanie tymi plikami ³atwiejszym.
+%description -l pl.UTF-8
+Pliki specjalne znajdujące się w katalogu /dev odpowiadają
+urządzeniom, które są obsługiwane przez Linuksa. Pakiet ten zawiera
+program, który uczyni tworzenie i operowanie tymi plikami łatwiejszym.
+
+%description -l pt_BR.UTF-8
+O diretório /dev possui arquivos especiais, cada um deles
+correspondendo a um tipo de dispositivo de hardware que o Linux
+suporta. Este pacote contém um script que torna mais fácil a criação
+e manutenção dos arquivos no diretório /dev.
 
-%description -l tr
-Unix ve Unix benzeri sistemler (Linux da dahil olmak üzere), makinaya baðlý
-aygýtlarý göstermek için özel dosyalar kullanýrlar. Bu özel dosyalarýn tümü
-/dev dizin yapýsý altýndadýr. Bu paket en çok kullanýlan /dev dosyalarýný
-içerir. Bu dosyalar, bir sistemin düzgün olarak iþleyebilmesi için temel
-gereksinimlerdendir.
+%description -l tr.UTF-8
+Unix ve Unix benzeri sistemler (Linux da dahil olmak üzere), makinaya
+bağlı aygıtları göstermek için özel dosyalar kullanırlar. Bu özel
+dosyaların tümü /dev dizin yapısı altındadır. Bu paket en çok
+kullanılan /dev dosyalarını içerir. Bu dosyalar, bir sistemin düzgün
+olarak işleyebilmesi için temel gereksinimlerdendir.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__make} \
+       CC="%{__cc}" \
+       OPTFLAGS="%{rpmcflags} %{rpmldflags}" \
+       %{?with_selinux:SELINUX=1}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{dev,usr/man/man8}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8}
 
-make ROOT=$RPM_BUILD_ROOT install
-
-gzip -9nf $RPM_BUILD_ROOT/usr/man/man8/*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       devdir=/dev \
+       makedevdir=/sbin
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(744,root,root) /dev/MAKEDEV
-/usr/man/man8/*
-
-%changelog
-* Tue Feb  9 1999 Micha³ Kuratczyk <kurkens@polbox.com>
-  [2.3.1-9]
-- added gzipping man page
-- added Group(pl)
-- cosmetic changes
-
-* Mon Sep  7 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [2.3.1-8]
-- removed %post wit adding floppy grouup (it is by default in setup),
-- changed permission to 744 on /dev/MAKEDEV,
-- added using %%{name} and %%{version} macros in Buildroot and Source.
-
-* Thu Aug 13 1998 Jeff Johnson <jbj@redhat.com>
-- build root
-
-* Mon Jun 29 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-- added pl translation.
-
-* Fri Apr 24 1998 Prospector System <bugs@redhat.com>
-- translations modified for de
-
-* Thu Apr 23 1998 Prospector System <bugs@redhat.com>
-- translations modified for fr, tr
-
-* Thu Apr 23 1998 Erik Troan <ewt@redhat.com>
-- fixed group add script (had -r instead of -o)
-
-* Fri Apr 17 1998 Erik Troan <ewt@redhat.com>
-- put -o option on groupadd after -g -- I hope Christian can tell me why
-
-* Thu Apr 09 1998 Cristian Gafton <gafton@redhat.com>
-- redirect groupadd call so that we're more quiet
-
-* Fri Oct 24 1997 Michael K. Johnson <johnsonm@redhat.com>
-- 2.3.1: use /usr/sbin/groupadd from new shadow utils
-
-* Mon Sep 29 1997 Michael K. Johnson <johnsonm@redhat.com>
-- Updated to 2.3, as Nick agreed to me making an interim release while
-  he figures out whether he wants to be the maintainer.
-
-* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
-- made a noarch package
-
-* Tue Jul 08 1997 Erik Troan <ewt@redhat.com>
-- added dependencies
+%attr(755,root,root) %{_bindir}/MAKEDEV
+%attr(755,root,root) %{_sbindir}/*
+%{_mandir}/man8/*
+%config %{_sysconfdir}/makedev.d
This page took 0.045091 seconds and 4 git commands to generate.