]> git.pld-linux.org Git - packages/file.git/blob - file.spec
- s/Distibutable/distributable/ in License
[packages/file.git] / file.spec
1 Summary:        file(1) command
2 Summary(de):    Befehl file(1)
3 Summary(fr):    Commande file(1)
4 Summary(pl):    komenda file(1)
5 Summary(tr):    Dosya tipini belirleme aracý
6 Name:           file
7 Version:        3.37
8 Release:        1
9 License:        distributable
10 Group:          Applications/File
11 Group(de):      Applikationen/Datei
12 Group(pl):      Aplikacje/Pliki
13 Source0:        ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
14 Source1:        zisofs.magic
15 Source2:        magic.mime
16 Source3:        %{name}.1.pl
17 Source4:        magic.5.pl
18 Patch0:         %{name}-sparc.patch
19 Patch1:         %{name}-tfm.patch
20 Patch2:         %{name}-ia64.patch
21 Patch3:         %{name}-elf.patch
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Conflicts:      xdelta < 1.0.0
26
27 %define         _datadir        %{_prefix}/share/misc
28
29 %description
30 This package is useful for finding out what type of file you are
31 looking at on your system. For example, if an fsck results in a file
32 being stored in lost+found, you can run file on it to find out if it's
33 safe to 'more' it or if it's a binary. It recognizes many file types,
34 including ELF binaries, system libraries, RPM packages, and many
35 different graphics formats.
36
37 %description -l de
38 Sie können dieses Paket verwenden, um zu bestimmen, welches Format
39 eine bestimmte Datei hat. Wird durch fsck eine Datei in lost+found
40 gespeichert, können Sie 'file' ausführen, um herauszufinden, ob Sie
41 sie mit 'more' einsehen können, oder ob es sich um ein Binärprogramm
42 handelt Das Programm erkennt u.a. ELF-Binärprogramme,
43 System-Libraries, RPM-Pakete und viele Grafikformate.
44
45 %description -l fr
46 Ce paquetage sert à trouver le type du fichier que vous recherchez sur
47 votre système. Par exemple, si un fsck fait qu'un fichier a été stocké
48 dans lost+found, vous pouvez lancer file dessus pour savoir si on peut
49 faire un more, ou s'il s'agit d'un binaire. Il reconnaît de nombreux
50 types de fichiers dont les binaires ELF, les bibliothèques systèmes,
51 les paquetages RPM et de nombreux formats graphiques différents.
52
53 %description -l pl
54 Pakiet ten jest przydatny je¿eli chcesz rozpoznaæ typ plików w twoim
55 systemie. Na przyk³ad je¿eli fsck zdeponuje jakie¶ pliki w katalogu
56 lost+found, mo¿esz uruchomiæ file na zdeponowanym pliku i zobaczyæ
57 jaki to jest typ pliku, jest to metoda bezpieczniejsza ni¿ 'more', ze
58 wzglêdu na to, ¿e to mo¿e byæ plik binarny. File potrafi rozpoznaæ
59 wiele typów plików np. binarny ELF, biblioteki systemowe, pakiety RPM
60 oraz wiele ró¿nych formatów graficznych i d¼wiêkowych.
61
62 %description -l tr
63 file, bir dosyayý inceleyerek ne tür bir dosya olduðu konusunda size
64 bir fikir verebilir. Böylece uzantýsýndan ve adýndan ne olduðunu
65 çýkaramadýðýnýz bir dosyayý hangi yazýlým ile kullanabileceðinize ya
66 da ne yapacaðýnýza karar verebilisiniz. file, temel dosya tiplerini,
67 çoðu grafik formatýný, çalýþtýrýlabilir dosyalarý, sistem
68 kitaplýklarýný vs. tanýyabilir.
69
70 %prep
71 %setup  -q
72 %patch0 -p1
73 %patch1 -p1
74 %patch2 -p1
75 %patch3 -p1
76
77 %build
78 aclocal
79 autoconf
80 rm -f install-sh missing mkinstalldirs
81 automake -a -c
82 %configure \
83         --enable-fsect-man5
84         
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man{1,5}
90
91 %{__make} install DESTDIR=$RPM_BUILD_ROOT
92
93 cat %{SOURCE1} >>$RPM_BUILD_ROOT%{_datadir}/magic
94 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}
95
96 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1/file.1
97 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/pl/man5/magic.5
98
99 ./file -m $RPM_BUILD_ROOT%{_datadir}/magic -c -C
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files
105 %defattr(644,root,root,755)
106
107 %attr(755,root,root) %{_bindir}/*
108 %{_datadir}/*
109 %{_mandir}/man[15]/*
110 %lang(pl) %{_mandir}/pl/man[15]/*
This page took 0.040964 seconds and 4 git commands to generate.