]> git.pld-linux.org Git - packages/ncompress.git/blob - ncompress.spec
2ecb6a9d93fa987ba307b815bdf7e594510aa055
[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.5
8 Release:        1
9 License:        Public Domain
10 Group:          Applications/Archiving
11 Source0:        http://downloads.sourceforge.net/ncompress/%{name}-%{version}.tar.gz
12 # Source0-md5:  9ab5d54d764d38050e9256b635bf09a9
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 %ifarch sparc sparc64 m68k %{arm} ppc ppc64 s390
64 ENDIAN="1234"
65 %else
66 ENDIAN="4321"
67 %endif
68
69 %ifarch alpha ia64 %{x8664} ppc64
70 OPTCFLAGS="-DNOALLIGN=0"
71 %else
72 OPTCFLAGS=""
73 %endif
74
75 %{__make} -f Makefile \
76         CC="%{__cc} %{rpmcflags} $OPTCFLAGS" \
77         ENDIAN="$ENDIAN"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
82
83 install compress $RPM_BUILD_ROOT%{_bindir}
84 ln -sf compress $RPM_BUILD_ROOT%{_bindir}/uncompress
85
86 install compress.1 $RPM_BUILD_ROOT%{_mandir}/man1
87 echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/man1/uncompress.1
88
89 for a in de it pl ; do
90         install -d $RPM_BUILD_ROOT%{_mandir}/$a/man1
91         cp -p $a/man1/* $RPM_BUILD_ROOT%{_mandir}/$a/man1
92         echo ".so compress.1" > $RPM_BUILD_ROOT%{_mandir}/$a/man1/uncompress.1
93 done
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %doc Acknowleds Changes LICENSE.txt LZW.INFO README.md UNLICENSE
101 %attr(755,root,root) %{_bindir}/compress
102 %attr(755,root,root) %{_bindir}/uncompress
103 %{_mandir}/man1/compress.1*
104 %{_mandir}/man1/uncompress.1*
105 %lang(de) %{_mandir}/de/man1/*
106 %lang(it) %{_mandir}/it/man1/*
107 %lang(pl) %{_mandir}/pl/man1/*
This page took 0.073666 seconds and 2 git commands to generate.