]> git.pld-linux.org Git - packages/ncompress.git/blob - ncompress.spec
- up to 4.2.4.3; project now is on sf.net
[packages/ncompress.git] / ncompress.spec
1 Summary:        A fast compress utility
2 Summary(de.UTF-8):      ein schnelles Komprimierungs-Dienstprogramm
3 Summary(fr.UTF-8):      Utilitaire rapide de compression
4 Summary(pl.UTF-8):      Narzędzie do szybkiego kompresowania plików
5 Summary(tr.UTF-8):      Hızlı bir sıkıştırma aracı
6 Name:           ncompress
7 Version:        4.2.4.3
8 Release:        1
9 License:        distributable
10 Group:          Applications/Archiving
11 Source0:        http://dl.sourceforge.net/ncompress/%{name}-%{version}.tar.gz
12 # Source0-md5:  5de31b5b5516f5d0abe26470a5b221e9
13 Source1:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
14 # Source1-md5:  1f664b832aee8282bc50f54635b98130
15 Patch0:         %{name}-make.patch
16 Patch1:         %{name}-gcc34.patch
17 URL:            http://ncompress.sourceforge.net/
18 BuildRequires:  rpmbuild(macros) >= 1.213
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ncompress is a utility that will do fast compression and decompression
23 compatible with the original *nix compress utility (.Z extensions). It
24 will not handle gzipped (.gz) images (although gzip can handle
25 compress images). It is pretty much obsolete - unless you need to
26 exchange files with some really odd Unix variants, use gzip or bzip2
27 instead.
28
29 %description -l de.UTF-8
30 ncompress ist ein Utility zur Durchführung schneller Komprimierungen
31 und Dekomprimierungen, das zu dem Original *nix-Komprimierungs-Utility
32 (.Z- Erweiterungen) kompatibel ist. gzip-Grafikdateien (.gz) können
33 damit nicht verarbeitet werden (obwohl gzip mit compress-Dateien
34 arbeiten kann).
35
36 %description -l fr.UTF-8
37 ncompress est un utilitaire qui effectue une compression et une
38 décompression rapide avec l'utilitaire de compression *nix original
39 (extension .Z). Il ne gère pas les images gzippées (.gz) (bien que
40 gzip puisse gérer les images compress).
41
42 %description -l pl.UTF-8
43 ncompress jest narzędziem umożliwiającym szybką kompresję i
44 dekompresję plików zgodnym z oryginalnym *niksowym narzędziem o nazwie
45 compress (tworzy pliki z rozszerzeniem .Z). ncompress nie obsługuje
46 plików .gz (ale gzip potrafi obsługiwać pliki ncompress-a). ncompress
47 jest raczej przestarzałym programem - o ile nie potrzebujesz
48 wymieniać plików z naprawdę starymi *niksami, używaj programów gzip
49 lub bzip2.
50
51 %description -l tr.UTF-8
52 ncompress, orijinal Un*X compress uygulaması ile uyumlu (.Z uzantılı)
53 hızlı sıkıştırma ve açma işlemleri yapılmasını sağlar. ncompress gzip
54 ile sıkıştırılmış dosyalarla işlem yapamaz. (gzip compress ile
55 sıkıştırılmış dosyalar üzerinde çalışabilir)
56
57 %prep
58 %setup -q -a1
59 %patch0 -p1
60 %patch1 -p1
61
62 %build
63 ENDIAN="4321"
64 %ifarch sparc sparc64 m68k armv4l ppc ppc64 s390
65 ENDIAN="1234"
66 %endif
67
68 OPTCFLAGS=""
69 %ifarch alpha ia64 %{x8664} ppc64
70 OPTCFLAGS="-DNOALLIGN=0"
71 %endif
72
73 %{__make} -f Makefile \
74         CC="%{__cc} %{rpmcflags} $OPTCFLAGS" \
75         ENDIAN="$ENDIAN"
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
80
81 install compress $RPM_BUILD_ROOT%{_bindir}
82 ln -sf compress $RPM_BUILD_ROOT%{_bindir}/uncompress
83
84 install compress.1 $RPM_BUILD_ROOT%{_mandir}/man1
85 echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
86
87 for a in de it pl ; do
88         install -d $RPM_BUILD_ROOT%{_mandir}/$a/man1
89         install $a/man1/* $RPM_BUILD_ROOT%{_mandir}/$a/man1/
90         echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/$a/man1/uncompress.1
91 done
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files
97 %defattr(644,root,root,755)
98 %doc LZW.INFO README
99 %attr(755,root,root) %{_bindir}/*
100 %{_mandir}/man1/*
101 %lang(de) %{_mandir}/de/man1/*
102 %lang(it) %{_mandir}/it/man1/*
103 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.095525 seconds and 3 git commands to generate.