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