]>
Commit | Line | Data |
---|---|---|
ef7c4fcf | 1 | Summary: A fast compress utility |
9e47bcae ER |
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ı | |
0081781d | 6 | Name: ncompress |
1fefa794 | 7 | Version: 4.2.4.5 |
ab5bf210 | 8 | Release: 1 |
1fefa794 | 9 | License: Public Domain |
29aa7128 | 10 | Group: Applications/Archiving |
6459d17a | 11 | Source0: http://downloads.sourceforge.net/ncompress/%{name}-%{version}.tar.gz |
1fefa794 | 12 | # Source0-md5: 9ab5d54d764d38050e9256b635bf09a9 |
1236d4b0 | 13 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
1b32643d | 14 | # Source1-md5: 1f664b832aee8282bc50f54635b98130 |
29aa7128 | 15 | Patch0: %{name}-make.patch |
aa1fea18 | 16 | Patch1: %{name}-gcc34.patch |
ab5bf210 | 17 | URL: http://ncompress.sourceforge.net/ |
75e5ff2e | 18 | BuildRequires: rpmbuild(macros) >= 1.213 |
2536fb1e | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e4d890c2 | 20 | |
21 | %description | |
22 | ncompress is a utility that will do fast compression and decompression | |
e332b6fc | 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 | |
c0fe42b0 | 26 | exchange files with some really odd Unix variants, use gzip or bzip2 |
e332b6fc | 27 | instead. |
e4d890c2 | 28 | |
aede7a8e JR |
29 | %description -l de.UTF-8 |
30 | ncompress ist ein Utility zur Durchführung schneller Komprimierungen | |
e332b6fc | 31 | und Dekomprimierungen, das zu dem Original *nix-Komprimierungs-Utility |
aede7a8e | 32 | (.Z- Erweiterungen) kompatibel ist. gzip-Grafikdateien (.gz) können |
e332b6fc | 33 | damit nicht verarbeitet werden (obwohl gzip mit compress-Dateien |
34 | arbeiten kann). | |
e4d890c2 | 35 | |
aede7a8e | 36 | %description -l fr.UTF-8 |
9b834992 | 37 | ncompress est un utilitaire qui effectue une compression et une |
aede7a8e JR |
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). | |
e4d890c2 | 41 | |
aede7a8e JR |
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 | |
ef7c4fcf | 49 | lub bzip2. |
e4d890c2 | 50 | |
aede7a8e JR |
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) | |
e4d890c2 | 56 | |
57 | %prep | |
ef7c4fcf | 58 | %setup -q -a1 |
aa1fea18 | 59 | %patch0 -p1 |
60 | %patch1 -p1 | |
e4d890c2 | 61 | |
62 | %build | |
1fefa794 | 63 | %ifarch sparc sparc64 m68k %{arm} ppc ppc64 s390 |
7955e5e3 | 64 | ENDIAN="1234" |
1fefa794 JB |
65 | %else |
66 | ENDIAN="4321" | |
e4d890c2 | 67 | %endif |
68 | ||
7955e5e3 | 69 | %ifarch alpha ia64 %{x8664} ppc64 |
70 | OPTCFLAGS="-DNOALLIGN=0" | |
1fefa794 JB |
71 | %else |
72 | OPTCFLAGS="" | |
e4d890c2 | 73 | %endif |
74 | ||
ab5bf210 | 75 | %{__make} -f Makefile \ |
7955e5e3 | 76 | CC="%{__cc} %{rpmcflags} $OPTCFLAGS" \ |
77 | ENDIAN="$ENDIAN" | |
e4d890c2 | 78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
bacbdd83 | 81 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} |
e4d890c2 | 82 | |
29aa7128 | 83 | install compress $RPM_BUILD_ROOT%{_bindir} |
a1c2558d | 84 | ln -sf compress $RPM_BUILD_ROOT%{_bindir}/uncompress |
e4d890c2 | 85 | |
bacbdd83 | 86 | install compress.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
2181107c | 87 | echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1 |
bacbdd83 | 88 | |
75eddf4d | 89 | for a in de it pl ; do |
bacbdd83 | 90 | install -d $RPM_BUILD_ROOT%{_mandir}/$a/man1 |
1fefa794 | 91 | cp -p $a/man1/* $RPM_BUILD_ROOT%{_mandir}/$a/man1 |
bacbdd83 | 92 | echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/$a/man1/uncompress.1 |
ef7c4fcf | 93 | done |
0081781d | 94 | |
8691a518 | 95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
e4d890c2 | 98 | %files |
0081781d | 99 | %defattr(644,root,root,755) |
1fefa794 | 100 | %doc Acknowleds Changes LICENSE.txt LZW.INFO README.md UNLICENSE |
6459d17a JB |
101 | %attr(755,root,root) %{_bindir}/compress |
102 | %attr(755,root,root) %{_bindir}/uncompress | |
103 | %{_mandir}/man1/compress.1* | |
104 | %{_mandir}/man1/uncompress.1* | |
bacbdd83 | 105 | %lang(de) %{_mandir}/de/man1/* |
106 | %lang(it) %{_mandir}/it/man1/* | |
29aa7128 | 107 | %lang(pl) %{_mandir}/pl/man1/* |