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