]> git.pld-linux.org Git - packages/file.git/blob - file.spec
- outdated.
[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.35
8 Release:        3
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:        file.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}-magic5.patch
22 Patch4:         %{name}-fnovfl.patch
23 Patch5:         %{name}-elf.patch
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 %patch4 -p1
77 %patch5 -p1 -R
78
79 %build
80 aclocal
81 autoconf
82 rm -f install-sh missing mkinstalldirs
83 automake --copy --add-missing
84 %configure \
85         --disable-elf
86         
87 %{__make}
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 install -d $RPM_BUILD_ROOT%{_mandir}/pl/man{1,5}
92
93 %{__make} install DESTDIR=$RPM_BUILD_ROOT
94
95 cat %{SOURCE1} >>$RPM_BUILD_ROOT%{_datadir}/magic
96 install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}
97
98 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1/file.1
99 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/pl/man5/magick.5
100
101 ./file -m $RPM_BUILD_ROOT%{_datadir}/magic -c -C
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %files
107 %defattr(644,root,root,755)
108
109 %attr(755,root,root) %{_bindir}/*
110 %{_datadir}/*
111 %{_mandir}/man[15]/*
112 %lang(pl) %{_mandir}/pl/man[15]/*
This page took 0.030398 seconds and 3 git commands to generate.