]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without selinux # build without SELinux support | |
4 | # | |
5 | Summary: Program to make and update /dev entries | |
6 | Summary(de.UTF-8): Script zum Erstellen und Aktualisieren von /dev-Einträgen | |
7 | Summary(es.UTF-8): Script para hacer y actualizar entradas referentes a dispositivos en /dev | |
8 | Summary(fr.UTF-8): Script pour créer et mettre à jour les entrées /dev | |
9 | Summary(pl.UTF-8): Program do tworzenia i poprawiania urządzeń z /dev | |
10 | Summary(pt_BR.UTF-8): Script para fazer e atualizar entradas referentes a dispositivos em /dev | |
11 | Summary(tr.UTF-8): Aygıt tanımı yapmak ve değiştirmek için bir araç | |
12 | Name: MAKEDEV | |
13 | Version: 3.24 | |
14 | Release: 1 | |
15 | License: GPL v2+ | |
16 | Group: Applications/System | |
17 | Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}-1.tar.gz | |
18 | # Source0-md5: 38546d1306ead17afbc34f60c06fcb20 | |
19 | Patch0: %{name}-ub.patch | |
20 | %if %{with selinux} | |
21 | BuildRequires: libselinux-devel >= 0:1.8 | |
22 | Requires: libselinux >= 0:1.8 | |
23 | %endif | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _bindir /sbin | |
27 | ||
28 | %description | |
29 | The /dev tree holds special files, each of which corresponds to a type | |
30 | of hardware device that Linux supports. This package contains a | |
31 | program which makes it easier to create and maintain the files which | |
32 | fill the /dev tree. | |
33 | ||
34 | %description -l de.UTF-8 | |
35 | Die /dev-Hierarchie enthält spezielle Dateien, von denen jede einem | |
36 | Hardwaregerättyp entspricht, der von Linux unterstützt wird. Dieses | |
37 | Paket enthält ein Skript, das die Erstellung und die Pflege der | |
38 | Dateien innerhalb dieser Hierarchie vereinfacht. | |
39 | ||
40 | %description -l es.UTF-8 | |
41 | El directorio /dev posee archivos especiales, cada uno de ellos | |
42 | correspondiendo a un tipo de dispositivo de hardware que Linux | |
43 | soporta. Este paquete contiene un script que hace más fácil la | |
44 | creación y manutención de los archivos en el directorio /dev. | |
45 | ||
46 | %description -l fr.UTF-8 | |
47 | L'arborescence /dev contient des fichiers spéciaux. Chacun d'eux | |
48 | correspond à un périphérique matériel gérable par Linux. Ce paquetage | |
49 | contient un script facilitant la création et la maintenance des | |
50 | fichiers qui remplissent l'arborescence /dev. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | Pliki specjalne znajdujące się w katalogu /dev odpowiadają | |
54 | urządzeniom, które są obsługiwane przez Linuksa. Pakiet ten zawiera | |
55 | program, który uczyni tworzenie i operowanie tymi plikami łatwiejszym. | |
56 | ||
57 | %description -l pt_BR.UTF-8 | |
58 | O diretório /dev possui arquivos especiais, cada um deles | |
59 | correspondendo a um tipo de dispositivo de hardware que o Linux | |
60 | suporta. Este pacote contém um script que torna mais fácil a criação | |
61 | e manutenção dos arquivos no diretório /dev. | |
62 | ||
63 | %description -l tr.UTF-8 | |
64 | Unix ve Unix benzeri sistemler (Linux da dahil olmak üzere), makinaya | |
65 | bağlı aygıtları göstermek için özel dosyalar kullanırlar. Bu özel | |
66 | dosyaların tümü /dev dizin yapısı altındadır. Bu paket en çok | |
67 | kullanılan /dev dosyalarını içerir. Bu dosyalar, bir sistemin düzgün | |
68 | olarak işleyebilmesi için temel gereksinimlerdendir. | |
69 | ||
70 | %prep | |
71 | %setup -q | |
72 | %patch0 -p1 | |
73 | ||
74 | %build | |
75 | %{__make} \ | |
76 | CC="%{__cc}" \ | |
77 | OPTFLAGS="%{rpmcflags} %{rpmldflags}" \ | |
78 | %{?with_selinux:SELINUX=1} | |
79 | ||
80 | %install | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT \ | |
86 | devdir=/dev \ | |
87 | makedevdir=/sbin | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %attr(755,root,root) %{_bindir}/MAKEDEV | |
95 | %attr(755,root,root) %{_sbindir}/* | |
96 | %{_mandir}/man8/* | |
97 | %config %{_sysconfdir}/makedev.d |