]>
Commit | Line | Data |
---|---|---|
c3f9a510 JB |
1 | # |
2 | # Conditional build: | |
e6b2f419 | 3 | %bcond_without tests # do not perform "make check" |
b49dc522 | 4 | |
0e9602fc | 5 | Summary: A GNU stream text editor |
06413ad1 ER |
6 | Summary(de.UTF-8): GNU Stream-Text Editor |
7 | Summary(es.UTF-8): Editor de stream de la GNU | |
8 | Summary(fr.UTF-8): Éditeur de flot de GNU | |
9 | Summary(ja.UTF-8): GNU ストリームテキストエディター | |
10 | Summary(pl.UTF-8): Edytor GNU strumienia tekstu | |
11 | Summary(pt_BR.UTF-8): Editor de stream da GNU | |
12 | Summary(ru.UTF-8): Потоковый редактор текста GNU | |
13 | Summary(tr.UTF-8): GNU dosya işleme aracı | |
14 | Summary(uk.UTF-8): Потоковий редактор тексту GNU | |
373c0c71 | 15 | Name: sed |
b49dc522 ER |
16 | Version: 4.2.2 |
17 | Release: 1 | |
bc9ba30c | 18 | License: GPL v3+ |
8a4ed250 | 19 | Group: Applications/Text |
e639007d | 20 | Source0: http://ftp.gnu.org/gnu/sed/%{name}-%{version}.tar.gz |
b49dc522 | 21 | # Source0-md5: 4111de4faa3b9848a0686b2f260c5056 |
31717405 | 22 | Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2 |
3e677e2b | 23 | # Source1-md5: 5cd651063bfc00a82d820ba018672351 |
5fdf0e1c | 24 | Patch0: %{name}-info.patch |
f7777042 | 25 | BuildRequires: autoconf >= 2.59 |
a3ebfbc5 | 26 | BuildRequires: automake >= 1:1.8 |
f7777042 | 27 | BuildRequires: gettext-devel >= 0.14 |
82eb48c3 | 28 | BuildRequires: libselinux-devel |
0178feee | 29 | BuildRequires: texinfo |
f314a925 AF |
30 | %if %{with tests} |
31 | %if "%(locale -a | grep -q '^ru_RU\.utf8$' ; echo $?)" == "1" | |
54f42f1e | 32 | BuildRequires: glibc-localedb-all |
f314a925 AF |
33 | %endif |
34 | %endif | |
30d5f2a7 | 35 | Obsoletes: ssed |
159c00bf | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1c606ffe | 37 | |
890b9eba | 38 | %define _bindir /bin |
db7050d4 | 39 | |
1c606ffe | 40 | %description |
0e9602fc | 41 | The sed (Stream EDitor) editor is a stream or batch (non-interactive) |
890b9eba | 42 | editor. Sed takes text as input, performs an operation or set of |
43 | operations on the text and outputs the modified text. The operations | |
44 | that sed performs (substitutions, deletions, insertions, etc.) can be | |
45 | specified in a script file or from the command line. | |
1c606ffe | 46 | |
38219f67 | 47 | %description -l de.UTF-8 |
890b9eba | 48 | sed (Stream EDitor) ist ein Stream- oder Batch- (nicht-interaktiver) |
38219f67 JR |
49 | Editor. Sed nimmt als Eingabe einen Text, führt darauf Operationen |
50 | aus, und gibt einen veränderten Text aus. Die Operationen, die sed | |
51 | ausführt (Ersetzen, Löschen, Einfügen, usw.) können über eine | |
52 | Skriptdatei oder über die Kommandozeile angegeben werden. | |
53 | ||
54 | %description -l es.UTF-8 | |
55 | Sed copia los archivos nombrados (archivos de la entrada padrón por | |
56 | por defecto) para la salida padrón, editado de acuerdo con un script | |
f564f562 | 57 | de comandos. |
58 | ||
38219f67 JR |
59 | %description -l fr.UTF-8 |
60 | sed copie les fichiers indiqués (l'entrée standard par défaut), | |
61 | modifiés en fonction d'un script de commandes, vers la sortie | |
890b9eba | 62 | standard. |
1c606ffe | 63 | |
38219f67 | 64 | %description -l ja.UTF-8 |
f8a91deb | 65 | sed (Stream Editor) |
38219f67 JR |
66 | エディターはストリームまたはバッチ(非インタラクティブ) |
67 | エディターです。sed は入力としてテキストを用い、テキストの操作または | |
68 | 操作のセットをテキストとに対して行い、修正されたテキストを出力します。 | |
69 | sed が行う操作 (置換、削除、挿入、その他) はスクリプトファイルか、 | |
70 | コマンドラインから指定されます。 | |
f8a91deb | 71 | |
38219f67 | 72 | %description -l pl.UTF-8 |
890b9eba | 73 | Sed (Stream EDitor) jest edytorem strumieni lub wsadowym |
38219f67 JR |
74 | (nieinteraktywnym) edytorem. Sed pobiera tekst na wejściu, przetwarza |
75 | go według zestawu operacji i oddaje na wyjściu przetworzony tekst. | |
76 | Operacje, które ma wykonywać, mogą być zapisane w postaci skryptu lub | |
77 | podane w linii poleceń. | |
78 | ||
79 | %description -l pt_BR.UTF-8 | |
80 | O sed copia os arquivos indicados (ou a entrada padrão caso não | |
81 | especificado) para a saída padrão, editado de acordo com um roteiro de | |
f564f562 | 82 | comandos. |
83 | ||
38219f67 JR |
84 | %description -l ru.UTF-8 |
85 | sed (Stream EDitor) - это потоковый или пакетный (не-интерактивный) | |
86 | редактор. sed исполняет операции над подаваемым ему на вход текстом и | |
87 | выдает модифицированный текст. Операции, которые sed выполняет | |
88 | (подстановки, удаления, вставки и др.) могут быть заданы в файле | |
89 | сценария или с командной строки. | |
90 | ||
91 | %description -l tr.UTF-8 | |
92 | Sed, belirtilen dosyaları, verilen komutlara göre işleyerek standart | |
93 | çıktıya kopyalar. Genellikle, metin dosyalarında bir katarın yerine | |
94 | başka bir katar yazmakta kullanılır. | |
95 | ||
96 | %description -l uk.UTF-8 | |
97 | sed (Stream EDitor) - це потоковий чи пакетний (не-інтерактивний) | |
98 | редактор. sed виконує операції над текстом, що подається йому на вхід | |
99 | та виводить модифікований текст. Операції, які sed виконує | |
100 | (підстановки, видалення, вставки та ін.) можуть бути задані в файлі | |
101 | сценарію чи з командного рядка. | |
f564f562 | 102 | |
1c606ffe | 103 | %prep |
104 | %setup -q | |
06ced45d | 105 | %patch0 -p1 |
1c606ffe | 106 | |
107 | %build | |
f1cebcba | 108 | %{__aclocal} -I m4 |
17dd4a3b | 109 | %{__autoconf} |
0b046e4b | 110 | %{__autoheader} |
17dd4a3b | 111 | %{__automake} |
db7050d4 | 112 | %configure |
ed41cab6 | 113 | %{__make} |
1c606ffe | 114 | |
beb67eb8 | 115 | # LC_ALL=C overrides LANG which is required to run tests |
116 | unset LC_ALL | |
135a78a3 | 117 | %{?with_tests:%{__make} check} |
e2228770 | 118 | |
1c606ffe | 119 | %install |
120 | rm -rf $RPM_BUILD_ROOT | |
3e677e2b JB |
121 | %{__make} install \ |
122 | DESTDIR=$RPM_BUILD_ROOT | |
373c0c71 | 123 | |
5e31abb1 | 124 | bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} |
125 | ||
5fdf0e1c | 126 | %find_lang %{name} |
9f33911d | 127 | |
ef0f9239 ER |
128 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
129 | rm -f $RPM_BUILD_ROOT%{_mandir}/README.sed-non-english-man-pages | |
130 | ||
30d5f2a7 JB |
131 | %clean |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
ef0f9239 ER |
134 | %post -p /sbin/postshell |
135 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
1c606ffe | 136 | |
ef0f9239 ER |
137 | %postun -p /sbin/postshell |
138 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
1c606ffe | 139 | |
5fdf0e1c | 140 | %files -f %{name}.lang |
a317e044 | 141 | %defattr(644,root,root,755) |
03e6764d | 142 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS |
b49dc522 | 143 | %attr(755,root,root) %{_bindir}/sed |
8a8f219a | 144 | %{_mandir}/man1/* |
5e31abb1 | 145 | %lang(de) %{_mandir}/de/man1/* |
146 | %lang(fi) %{_mandir}/fi/man1/* | |
147 | %lang(hu) %{_mandir}/hu/man1/* | |
148 | %lang(ja) %{_mandir}/ja/man1/* | |
149 | %lang(pl) %{_mandir}/pl/man1/* | |
8a8f219a | 150 | %{_infodir}/sed.info* |