2 # TODO: consider gtk3 version
5 %bcond_without gtkspell # no spelling checker
7 Summary: A USENET newsreader for GNOME
8 Summary(es.UTF-8): Uno leitor USENET para el GNOME
9 Summary(pl.UTF-8): Czytnik USENET dla GNOME
10 Summary(pt_BR.UTF-8): Um leitor USENET para o GNOME
16 Group: Applications/News
17 Source0: http://pan.rebelbase.com/download/releases/%{version}/source/%{name}-%{version}.tar.bz2
18 # Source0-md5: 0dc527d4abd663eaebcf39bf4ad0116e
19 Patch0: %{name}-desktop.patch
21 URL: http://pan.rebelbase.com/
22 BuildRequires: autoconf >= 2.54
23 BuildRequires: automake
24 BuildRequires: gettext-tools
25 BuildRequires: gmime-devel >= 2.4.0
26 BuildRequires: gtk+2-devel >= 2:2.16.0
27 BuildRequires: glib2-devel >= 2.32.0
28 %{?with_gtkspell:BuildRequires: gtkspell-devel >= 2.0.7}
29 BuildRequires: intltool >= 0.35.5
30 BuildRequires: pkgconfig
31 BuildRequires: sed >= 4.0
32 # sr@Latn vs. sr@latin
33 Conflicts: glibc-misc < 6:2.7
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 PAN is Pimp Ass Newsreader. Its goal is to make a user-friendly and
38 powerful USENET newsreader for GNOME. Its user interface is based
39 loosely on popular newsreaders for Windows. This is alpha software, so
40 don't expect everything to work correctly or even at all.
42 %description -l pl.UTF-8
43 Celem programu PAN jest umożliwienie użytkownikowi prostego i
44 efektywnego czytania wiadomości USENET w środowisku GNOME. Interfejs
45 użytkownika jest podobny do tych znanych z Windows.
47 %description -l pt_BR.UTF-8
48 Pan é um leitor de Usenet News fácil e poderoso para o GNOME Ele tem
49 muitas características que facilitam ler e postar, mostrando e
50 salvando anexos e leitura "offline".
57 sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS
58 mv -f po/sr@{Latn,latin}.po
67 --disable-silent-rules \
68 --with%{!?with_gtkspell:out}-gtkspell
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
81 rm -rf $RPM_BUILD_ROOT
83 %files -f %{name}.lang
84 %defattr(644,root,root,755)
85 %doc AUTHORS ChangeLog NEWS README TODO
86 %attr(755,root,root) %{_bindir}/pan
87 %{_desktopdir}/pan.desktop
88 %{_pixmapsdir}/pan.png