]>
Commit | Line | Data |
---|---|---|
add7e176 | 1 | # |
4a4a5e30 | 2 | # Conditional build: |
bfa33011 JB |
3 | %bcond_without canlock # - build without Cancel-Lock support |
4 | %bcond_without ssl # - build without SSL support (snews://) | |
0a726668 | 5 | %bcond_without uudeview # - build without uudeview support |
add7e176 | 6 | # |
a15a7854 | 7 | Summary: The world's best newsreader |
d60665c4 ER |
8 | Summary(da.UTF-8): Verdens bedste nyhedslæser |
9 | Summary(de.UTF-8): Der weltbeste Newsreader | |
10 | Summary(es.UTF-8): El mejor lector de news del mundo | |
11 | Summary(fr.UTF-8): Le meilleur lecteur de news du monde | |
12 | Summary(pl.UTF-8): Łatwy w obsłudze czytnik artykułów news | |
13 | Summary(pt_BR.UTF-8): O melhor leitor de notícias do mundo | |
14 | Summary(tr.UTF-8): Görüşüne göre dünyanın en iyi haber grubu okuyucusu | |
36240349 | 15 | Name: slrn |
e8c28b50 | 16 | Version: 0.9.9 |
63e6f698 | 17 | Release: 1 |
e8c28b50 | 18 | License: GPL v2+ |
36240349 | 19 | Group: Applications/News |
63e6f698 JB |
20 | Source0: http://slrn.org/downloads/%{name}-%{version}.tar.gz |
21 | # Source0-md5: 87c0172887bf6e020759bf6241c003fc | |
3ffe1b43 | 22 | Source1: %{name}.1.pl |
185f0ad4 | 23 | Source2: %{name}.desktop |
24 | Source3: %{name}.png | |
b8b18906 | 25 | Source4: %{name}-pull.logrotate |
8741f94d | 26 | Patch0: %{name}-keymap.patch |
e8c28b50 JB |
27 | Patch1: %{name}-user-agent.patch |
28 | Patch2: %{name}-sort_visible_headers.patch | |
29 | Patch3: %{name}-home_etc.patch | |
30 | Patch4: %{name}-pl.po-update.patch | |
2a771cc2 | 31 | URL: http://www.slrn.org/ |
e8c28b50 | 32 | BuildRequires: autoconf >= 2.50 |
4274ac7d | 33 | %{?with_canlock:BuildRequires: canlock-devel >= 2a} |
ac5a17b7 | 34 | BuildRequires: gettext-devel |
408c0386 | 35 | %{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d} |
7330b022 | 36 | BuildRequires: slang-devel >= 2.0.0 |
4274ac7d | 37 | %{?with_uudeview:BuildRequires: uudeview-devel} |
8cab1ffa | 38 | Obsoletes: slrn-pl |
480ea541 | 39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c87a63f1 | 40 | |
41 | %description | |
ac5a17b7 | 42 | Slrn is an easy to use but powerful full-screen NNTP based newsreader. |
3ffe1b43 | 43 | It relies extensively on the S-Lang programmer's library for many of |
ac5a17b7 | 44 | its features. Slrn works particularly well over slow network |
3ffe1b43 | 45 | connections. |
c87a63f1 | 46 | |
6e5df0ba JR |
47 | %description -l da.UTF-8 |
48 | Slrn er en bekvæm og kraftig nyhedslæser. Programmet skylder S-Lang | |
49 | biblioteket sin funktionalitet. Slrn er godt især ved brug igennem | |
50 | langsomme netværk forbindelser. | |
ac5a17b7 | 51 | |
6e5df0ba JR |
52 | %description -l de.UTF-8 |
53 | Slrn ist ein einfach zu bedienender und dennoch äußerst | |
54 | leistungsfähiger Voll-Bildschirm-Newsreader auf NNTP-Basis. Viele | |
3ffe1b43 | 55 | seiner Funktionen bezieht er aus der S-Lang-Programmierer-Library. |
6e5df0ba | 56 | Seine besondere Stärke ist die Arbeit über langsame Netzwerke. |
c87a63f1 | 57 | |
6e5df0ba JR |
58 | %description -l es.UTF-8 |
59 | Slrn es un lector de news basado en NNTP fácil de usar, pero potente | |
b586d6ff | 60 | con pantalla llena. Utiliza la biblioteca de programadores S-Lang para |
6e5df0ba | 61 | varias de sus características. Slrn trabaja en especial con conexiones |
b586d6ff TP |
62 | lentas de red. |
63 | ||
6e5df0ba JR |
64 | %description -l fr.UTF-8 |
65 | Slrn et un lecteur de news NNTP plein écran facile à utiliser mais | |
66 | puissant. Il s'appuie beaucoup sur la bibliothèque S-Lang pour ses | |
67 | caractéristiques. Slrn fonctionne particulièrement bien avec des | |
68 | connexions réseau lentes. | |
c87a63f1 | 69 | |
6e5df0ba JR |
70 | %description -l pl.UTF-8 |
71 | Slrn jest wygodnym w obsłudze i ergonomicznym czytnikiem artykułów | |
72 | news. Swą funkcjonalność program zawdzięcza bibliotece S-Lang. Slrn | |
73 | znakomicie sprawdza się zwłaszcza na zapchanych i wolnych łączach. | |
c87a63f1 | 74 | |
6e5df0ba JR |
75 | %description -l pt_BR.UTF-8 |
76 | Slrn é um leitor de notícias baseado em NNTP fácil de usar mas | |
b586d6ff | 77 | poderoso com tela cheia. Ele utiliza a biblioteca de programadores |
6e5df0ba JR |
78 | S-Lang para várias das suas características. Slrn trabalha |
79 | particularmente bem com conexões lentas de rede. | |
a15a7854 | 80 | |
6e5df0ba JR |
81 | %description -l tr.UTF-8 |
82 | Slrn, kullanımı kolay, çok yetenekli, tam ekran bir haber okuyucudur. | |
83 | Yavaş ağ bağlantılarında gayet iyi çalışır. | |
c87a63f1 | 84 | |
85 | %package pull | |
36240349 | 86 | Summary: Offline news reading support for slrn |
d60665c4 ER |
87 | Summary(da.UTF-8): Programmet udstyrer slrn med offline-egenskaber |
88 | Summary(es.UTF-8): Soporte para lectura de noticias "offline" para slm | |
89 | Summary(pl.UTF-8): Program ściągający artykuły z serwera news | |
90 | Summary(pt_BR.UTF-8): Suporte para leitura de notícias "offline" para o slrn | |
36240349 | 91 | Group: Applications/News |
ac5a17b7 | 92 | Requires: %{name} |
f906f464 | 93 | Obsoletes: slrn-pl-pull |
c87a63f1 | 94 | |
95 | %description pull | |
3ffe1b43 | 96 | This package provides slrnpull, which allows set up of a small news |
97 | spool for offline news reading. | |
c87a63f1 | 98 | |
6e5df0ba JR |
99 | %description pull -l da.UTF-8 |
100 | Programmet henter indlæg ned til et lokalt newsspool for at brugeren | |
101 | kan læse og svare på dem uden at være online. | |
ac5a17b7 | 102 | |
6e5df0ba | 103 | %description pull -l es.UTF-8 |
a15a7854 | 104 | Soporte para lectura de noticias "offline" para slm |
105 | ||
6e5df0ba JR |
106 | %description pull -l pl.UTF-8 |
107 | Slrnpull umożliwia ściągnięcie artykułów, a następnie czytanie ich bez | |
108 | konieczności utrzymywania stałego połączenia z serwerem news. | |
c87a63f1 | 109 | |
6e5df0ba JR |
110 | %description pull -l pt_BR.UTF-8 |
111 | Este pacote provê o slrnpull, que permite a configuração de um pequeno | |
112 | spool de notícias, para leitura "offline". | |
a15a7854 | 113 | |
c87a63f1 | 114 | %prep |
63e6f698 | 115 | %setup -q |
8741f94d JB |
116 | %patch0 -p1 |
117 | %patch1 -p1 | |
118 | %patch2 -p1 | |
119 | %patch3 -p1 | |
120 | %patch4 -p1 | |
e8c28b50 JB |
121 | |
122 | ln -s autoconf/configure.ac . | |
c87a63f1 | 123 | |
124 | %build | |
e8c28b50 | 125 | %{__autoconf} -B autoconf |
09a4d0fe | 126 | %configure \ |
8741f94d JB |
127 | INEWS="/usr/bin/inews" \ |
128 | SENDMAIL="/usr/lib/sendmail" \ | |
09a4d0fe | 129 | --enable-inews \ |
bfa33011 | 130 | --enable-mid-cache \ |
8741f94d | 131 | --enable-setgid-code \ |
09a4d0fe | 132 | --enable-spool \ |
e8c28b50 | 133 | %{?with_canlock:--with-canlock} \ |
ea6770b1 JB |
134 | --with-slanginc=/usr/include/slang \ |
135 | --with-slanglib=%{_libdir} \ | |
e8c28b50 JB |
136 | --with-slrnpull=/var/spool/slrnpull \ |
137 | %{?with_ssl:--with-ssl} \ | |
138 | %{?with_uudeview:--with-uu} | |
58f56408 | 139 | |
2cd75237 | 140 | %{__make} |
c87a63f1 | 141 | |
142 | %install | |
f435baf0 | 143 | rm -rf $RPM_BUILD_ROOT |
f906f464 | 144 | install -d $RPM_BUILD_ROOT%{_var}/spool/slrnpull/{data,logs,news,out.going/rejects} \ |
c9fd64a5 | 145 | $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/pl/man1} \ |
c503d8f1 | 146 | $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \ |
b8b18906 | 147 | $RPM_BUILD_ROOT/etc/logrotate.d |
c87a63f1 | 148 | |
1acdfb45 JB |
149 | %{__make} install \ |
150 | DESTDIR=$RPM_BUILD_ROOT | |
c87a63f1 | 151 | |
f435baf0 | 152 | install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/pl/man1/slrn.1 |
c503d8f1 | 153 | install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir} |
f435baf0 | 154 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
b8b18906 | 155 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/logrotate.d/slrn-pull |
f356a41f TP |
156 | > $RPM_BUILD_ROOT%{_var}/spool/slrnpull/data/active |
157 | > $RPM_BUILD_ROOT%{_var}/spool/slrnpull/log | |
50629349 | 158 | > $RPM_BUILD_ROOT%{_var}/spool/slrnpull/score |
cf88703e | 159 | install contrib/{cleanscore,slrnrc-conv} $RPM_BUILD_ROOT%{_bindir} |
185f0ad4 | 160 | |
f435baf0 TP |
161 | install doc/slrnpull/slrnpull.conf $RPM_BUILD_ROOT%{_var}/spool/slrnpull |
162 | install doc/slrn.rc $RPM_BUILD_ROOT%{_sysconfdir} | |
086ddc7e | 163 | |
eecb065d JB |
164 | %find_lang %{name} |
165 | ||
c87a63f1 | 166 | %clean |
f435baf0 | 167 | rm -rf $RPM_BUILD_ROOT |
c87a63f1 | 168 | |
eecb065d | 169 | %files -f %{name}.lang |
8c546d49 | 170 | %defattr(644,root,root,755) |
8741f94d | 171 | %doc COPYRIGHT README changes.txt contrib/{README,NEWS}.* doc/*.html |
1acdfb45 | 172 | %doc doc/{FAQ,FIRST_STEPS,README.*,THANKS,{help,manual,score,slrnfuns}.txt,*.sl} |
e8c28b50 | 173 | %attr(755,root,root) %{_bindir}/cleanscore |
8c546d49 | 174 | %attr(755,root,root) %{_bindir}/slrn |
cf88703e | 175 | %attr(755,root,root) %{_bindir}/slrnrc-conv |
ac5a17b7 | 176 | %dir %{_datadir}/slrn |
e8c28b50 | 177 | %{_datadir}/slrn/slang |
20b19e52 | 178 | %{_mandir}/man1/slrn.1* |
e8c28b50 JB |
179 | %lang(pl) %{_mandir}/pl/man1/slrn.1* |
180 | %{_desktopdir}/slrn.desktop | |
181 | %{_pixmapsdir}/slrn.png | |
73b846b1 | 182 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/slrn.rc |
c87a63f1 | 183 | |
184 | %files pull | |
8c546d49 | 185 | %defattr(644,root,root,755) |
8741f94d | 186 | %doc doc/slrnpull/{README*,SETUP,score,slrn.rc,slrnpull.sh} |
73b846b1 | 187 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/slrn-pull |
ee31b44f | 188 | %attr(2754,root,news) %{_bindir}/slrnpull |
20b19e52 | 189 | %{_mandir}/man1/slrnpull.1* |
c9fd64a5 TP |
190 | %defattr(664,news,news,755) |
191 | %dir %{_var}/spool/slrnpull | |
f906f464 | 192 | %dir %{_var}/spool/slrnpull/logs |
50629349 | 193 | %attr(2775,news,news) %dir %{_var}/spool/slrnpull/data |
73b846b1 | 194 | %verify(not md5 mtime size user) %{_var}/spool/slrnpull/data/active |
6da39466 | 195 | %attr(2775,news,news) %dir %{_var}/spool/slrnpull/news |
ee31b44f | 196 | %attr(3775,news,news) %dir %{_var}/spool/slrnpull/out.going |
b8b18906 | 197 | %attr(3775,news,news) %dir %{_var}/spool/slrnpull/out.going/rejects |
6da39466 | 198 | %attr(660,news,news) %ghost %{_var}/spool/slrnpull/log |
73b846b1 ER |
199 | %config(noreplace) %verify(not md5 mtime size) %{_var}/spool/slrnpull/score |
200 | %config(noreplace) %verify(not md5 mtime size) %{_var}/spool/slrnpull/slrnpull.conf |