Group :: Rede/Notícias
RPM: slrn
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# -*- coding: utf-8; mode: rpm-spec -*-
# $Id: slrn.spec,v 1.7 2005/07/28 19:05:14 eugene Exp $
%define orig_release alt6
Name: slrn
Version: 0.9.8.1
%if_with asp_patches
Release: %orig_release.asp
%else
Release: %orig_release
%endif
Summary: A powerful, easy to use, threaded Internet news reader
License: GPL
Group: Networking/News
Url: http://slrn.sourceforge.net/
Source0: ftp://slrn.sourceforge.net/pub/slrn/%name-%version.tar.bz2
#Source1: slrnpull-expire
#Source2: slrnpull.log
#Source3: README.rpm-slrnpull
#Source4: %name.xpm.bz2
Source4: %name-icon.xpm
Source5: %name-macros.tar.gz
Source6: %name-getdesc
Source7: FIRST_STEPS-ru_RU.KOI8-R
Source8: fido-samples-0.1.tar.gz
Source9: adsc-0.2.tgz
Source10: README.asp.en
Source11: README.asp.ru
Source12: slrn-ru.po
Patch0: slrnfeat.h.diff
#Patch1: %name-ipv6-conf.diff.bz2
#Patch2: %name-ipv6.patch.bz2
Patch3: slrnpull.sh.diff.bz2
Patch4: %name-initial.asp.patch
Patch5: %name-mime.asp.patch
Patch6: %name-newfwd.asp.patch
Patch7: %name-save.asp.patch
Patch8: %name-%version-fetch.diff
Patch9: %name-%version-lastchar2.diff
Patch10: %name-rc.asp.patch
Patch11: %name-rc_default.patch
Requires: slang >= 1.4.0
# Automatically added by buildreq on Tue Apr 12 2005 (-bi)
BuildRequires: inews libgcrypt-devel libgnutls-devel libgnutls-extra-devel libgnutls-openssl-devel libgpg-error libslang-devel libssl-devel libtasn1-devel postfix
%description
SLRN is a powerful, easy to use, threaded Internet news reader. SLRN is
highly customizable and allows you to design complex filters to sort or kill
news articles. SLRN works well over slow network connections, and includes
a utility for reading news off-line.
Install slrn if you need a full-featured news reader, if you have a slow
network connection, or if you'd like to save on-line time by reading your
news off-line.
%package pull
Summary: Offline news reading support for slrn
Group: Networking/News
Requires: %name = %version
%description pull
This package provides slrnpull, which allows set up of a small news
spool for offline news reading.
%prep
%setup -q
%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%patch3 -p1
# ASP patches
%if_with asp_patches
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch10 -p1
%else
%patch11 -p1
%endif
%patch8 -p1
%patch9 -p1
%__cp -f %SOURCE12 po/ru.po
%build
%configure --with-ssl \
--with-gnutls \
--sysconfdir=/etc/news \
--enable-ipv6 \
--with-slang-includes \
--with-slang-library \
--with-slrnpull \
--enable-inews \
--enable-grouplens \
--enable-spool \
--enable-mid-cache \
--enable-largefile \
--enable-mime \
--enable-spoilers \
--enable-emph-text
# --with-uudeview
# --with-ssl-includes=/usr/include/openssl \
# --with-ssl-library=/lib/libssl.so.4 \
# --with-gnutls-library=/usr/lib/libgnutls-extra.so.11 \
# --with-gnutls-includes=/usr/include/gnutls
# yves 0.9.7.4 - %%make breaks ipv6 support...
%make_build CFLAGS="$RPM_OPT_FLAGS -DHAVE_KOI8_CHARMAP" slrn_cv_domain=no
%make_build slrnpull CFLAGS="$RPM_OPT_FLAGS -DHAVE_KOI8_CHARMAP" slrn_cv_domain=no
%install
%makeinstall
%make_install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name
bzip2 --best doc/%name.1 doc/slrnpull.1
%__mkdir_p $RPM_BUILD_ROOT/etc/{cron.daily,logrotate.d,news}
%__mkdir_p $RPM_BUILD_ROOT%_iconsdir
#bzcat %SOURCE4 > $RPM_BUILD_ROOT%_iconsdir/%name.xpm
%__cp %SOURCE4 $RPM_BUILD_ROOT%_iconsdir/%name.xpm
%__install doc/slrn.rc $RPM_BUILD_ROOT/etc/news/
%__mkdir doc/examples
%__mv doc/slrn.rc doc/examples
%__cp %SOURCE6 doc/examples
%__cp %SOURCE7 doc
%__cp %SOURCE10 doc
%__cp %SOURCE11 doc
# Menu entry
%__mkdir_p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name <<EOF
?package(slrn):\
command="%_bindir/%name" needs="text" icon="%name.xpm"\
section="Networking/News" title="Slrn" longtitle="A powerful, easy to use, threaded Internet news reader"
EOF
%__tar xzf %SOURCE5 -C doc
%__mv doc/slrn-macros doc/macros
%__tar xzf %SOURCE8 -C doc/examples
%__tar xzf %SOURCE9 -C doc/examples
%__mv doc/examples/adsc-0.2 doc/examples/adaptive-scoring
%post
%update_menus
%postun
%clean_menus
%files -f %name.lang
%_bindir/%name
%doc doc/FIRST_STEPS doc/README.SSL doc/help.txt doc/score.txt doc/slrnfuns.txt
%doc COPYRIGHT README doc/README.macros doc/THANKS doc/manual.txt doc/slrn-doc.html
%doc doc/FAQ doc/README.GroupLens doc/README.multiuser changes.txt doc/score.sl
%doc doc/examples
%doc doc/macros
%doc contrib
%doc doc/FIRST_STEPS-ru_RU.KOI8-R
%if_with asp_patches
%doc doc/README.asp.ru doc/README.asp.en
%endif
%_mandir/man1/%name.1.gz
%config(noreplace) %_sysconfdir/news/*
%_menudir/%name
%_datadir/%name/macros
%_iconsdir/%name.xpm
%files pull
%doc doc/slrnpull/*
%_mandir/man1/slrnpull.1.gz
%_bindir/slrnpull
%changelog
…
Todas as alterações você pod ver aqui
# $Id: slrn.spec,v 1.7 2005/07/28 19:05:14 eugene Exp $
%define orig_release alt6
Name: slrn
Version: 0.9.8.1
%if_with asp_patches
Release: %orig_release.asp
%else
Release: %orig_release
%endif
Summary: A powerful, easy to use, threaded Internet news reader
License: GPL
Group: Networking/News
Url: http://slrn.sourceforge.net/
Source0: ftp://slrn.sourceforge.net/pub/slrn/%name-%version.tar.bz2
#Source1: slrnpull-expire
#Source2: slrnpull.log
#Source3: README.rpm-slrnpull
#Source4: %name.xpm.bz2
Source4: %name-icon.xpm
Source5: %name-macros.tar.gz
Source6: %name-getdesc
Source7: FIRST_STEPS-ru_RU.KOI8-R
Source8: fido-samples-0.1.tar.gz
Source9: adsc-0.2.tgz
Source10: README.asp.en
Source11: README.asp.ru
Source12: slrn-ru.po
Patch0: slrnfeat.h.diff
#Patch1: %name-ipv6-conf.diff.bz2
#Patch2: %name-ipv6.patch.bz2
Patch3: slrnpull.sh.diff.bz2
Patch4: %name-initial.asp.patch
Patch5: %name-mime.asp.patch
Patch6: %name-newfwd.asp.patch
Patch7: %name-save.asp.patch
Patch8: %name-%version-fetch.diff
Patch9: %name-%version-lastchar2.diff
Patch10: %name-rc.asp.patch
Patch11: %name-rc_default.patch
Requires: slang >= 1.4.0
# Automatically added by buildreq on Tue Apr 12 2005 (-bi)
BuildRequires: inews libgcrypt-devel libgnutls-devel libgnutls-extra-devel libgnutls-openssl-devel libgpg-error libslang-devel libssl-devel libtasn1-devel postfix
%description
SLRN is a powerful, easy to use, threaded Internet news reader. SLRN is
highly customizable and allows you to design complex filters to sort or kill
news articles. SLRN works well over slow network connections, and includes
a utility for reading news off-line.
Install slrn if you need a full-featured news reader, if you have a slow
network connection, or if you'd like to save on-line time by reading your
news off-line.
%package pull
Summary: Offline news reading support for slrn
Group: Networking/News
Requires: %name = %version
%description pull
This package provides slrnpull, which allows set up of a small news
spool for offline news reading.
%prep
%setup -q
%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%patch3 -p1
# ASP patches
%if_with asp_patches
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch10 -p1
%else
%patch11 -p1
%endif
%patch8 -p1
%patch9 -p1
%__cp -f %SOURCE12 po/ru.po
%build
%configure --with-ssl \
--with-gnutls \
--sysconfdir=/etc/news \
--enable-ipv6 \
--with-slang-includes \
--with-slang-library \
--with-slrnpull \
--enable-inews \
--enable-grouplens \
--enable-spool \
--enable-mid-cache \
--enable-largefile \
--enable-mime \
--enable-spoilers \
--enable-emph-text
# --with-uudeview
# --with-ssl-includes=/usr/include/openssl \
# --with-ssl-library=/lib/libssl.so.4 \
# --with-gnutls-library=/usr/lib/libgnutls-extra.so.11 \
# --with-gnutls-includes=/usr/include/gnutls
# yves 0.9.7.4 - %%make breaks ipv6 support...
%make_build CFLAGS="$RPM_OPT_FLAGS -DHAVE_KOI8_CHARMAP" slrn_cv_domain=no
%make_build slrnpull CFLAGS="$RPM_OPT_FLAGS -DHAVE_KOI8_CHARMAP" slrn_cv_domain=no
%install
%makeinstall
%make_install DESTDIR=$RPM_BUILD_ROOT
%find_lang %name
bzip2 --best doc/%name.1 doc/slrnpull.1
%__mkdir_p $RPM_BUILD_ROOT/etc/{cron.daily,logrotate.d,news}
%__mkdir_p $RPM_BUILD_ROOT%_iconsdir
#bzcat %SOURCE4 > $RPM_BUILD_ROOT%_iconsdir/%name.xpm
%__cp %SOURCE4 $RPM_BUILD_ROOT%_iconsdir/%name.xpm
%__install doc/slrn.rc $RPM_BUILD_ROOT/etc/news/
%__mkdir doc/examples
%__mv doc/slrn.rc doc/examples
%__cp %SOURCE6 doc/examples
%__cp %SOURCE7 doc
%__cp %SOURCE10 doc
%__cp %SOURCE11 doc
# Menu entry
%__mkdir_p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name <<EOF
?package(slrn):\
command="%_bindir/%name" needs="text" icon="%name.xpm"\
section="Networking/News" title="Slrn" longtitle="A powerful, easy to use, threaded Internet news reader"
EOF
%__tar xzf %SOURCE5 -C doc
%__mv doc/slrn-macros doc/macros
%__tar xzf %SOURCE8 -C doc/examples
%__tar xzf %SOURCE9 -C doc/examples
%__mv doc/examples/adsc-0.2 doc/examples/adaptive-scoring
%post
%update_menus
%postun
%clean_menus
%files -f %name.lang
%_bindir/%name
%doc doc/FIRST_STEPS doc/README.SSL doc/help.txt doc/score.txt doc/slrnfuns.txt
%doc COPYRIGHT README doc/README.macros doc/THANKS doc/manual.txt doc/slrn-doc.html
%doc doc/FAQ doc/README.GroupLens doc/README.multiuser changes.txt doc/score.sl
%doc doc/examples
%doc doc/macros
%doc contrib
%doc doc/FIRST_STEPS-ru_RU.KOI8-R
%if_with asp_patches
%doc doc/README.asp.ru doc/README.asp.en
%endif
%_mandir/man1/%name.1.gz
%config(noreplace) %_sysconfdir/news/*
%_menudir/%name
%_datadir/%name/macros
%_iconsdir/%name.xpm
%files pull
%doc doc/slrnpull/*
%_mandir/man1/slrnpull.1.gz
%_bindir/slrnpull
%changelog
…
Todas as alterações você pod ver aqui