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