#
# TODO:
-# - test and rel. 1
+# - review devel doc files
#
Summary: CONE - Console Newsreader and Emailer
-Summary(pl): CONE - tekstowy klient poczty i czytnik newsów
+Summary(pl.UTF-8): CONE - tekstowy klient poczty i czytnik newsów
Name: cone
-Version: 0.60
-Release: 0.5
+Version: 0.86
+Release: 0.1
License: GPL
Group: Applications/Mail
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
-# Source0-md5: b2ae0cb3808e5485d566474c8bf251f9
+# Source0-md5: adca3a228526361e9ef4eb4dcd273306
+Patch0: %{name}-maildir.patch
URL: http://www.courier-mta.org/cone/
BuildRequires: aspell-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fam-devel
-BuildRequires: ncurses-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: libxml2-devel
+BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: openssl-tools-perl
BuildRequires: perl-base
+BuildRequires: sysconftool
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
CONE is a simple, text-based E-mail reader and writer, and a simple
newsreader.
-%description -l pl
-CONE jest prostym, tekstowym klientem pocztowym, a tak¿e prostym
-czytnikiem newsów.
+%description -l pl.UTF-8
+CONE jest prostym, tekstowym klientem pocztowym, a także prostym
+czytnikiem newsów.
%package devel
Summary: Header files for LibMAIL
-Summary(pl): Pliki nag³ówkowe LibMAIL
+Summary(pl.UTF-8): Pliki nagłówkowe LibMAIL
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
This package includes the header files for developing applications
using LibMAIL - a high level, C++ OO library for mail clients.
-%description devel -l pl
-Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji z u¿yciem
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji z użyciem
LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki C++ dla
-klientów pocztowych.
+klientów pocztowych.
%package static
Summary: Static LibMAIL library
-Summary(pl): Biblioteka statyczna LibMAIL
+Summary(pl.UTF-8): Biblioteka statyczna LibMAIL
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
This package contains static library for developing application using
LibMAIL - a high level, C++ OO library for mail clients.
-%description static -l pl
-Ten pakiet zawiera statyczn± bibliotekê do tworzenia aplikacji z
-u¿yciem LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki
-C++ dla klientów pocztowych.
+%description static -l pl.UTF-8
+Ten pakiet zawiera statyczną bibliotekę do tworzenia aplikacji z
+użyciem LibMAIL - wysokopoziomowej, zorientowanej obiektowo biblioteki
+C++ dla klientów pocztowych.
%package -n leaf
Summary: Console text file editor
-Summary(pl): Konsolowy edytor plików tekstowych
+Summary(pl.UTF-8): Konsolowy edytor plików tekstowych
Group: Applications/Editors
%description -n leaf
-Leaf is a simple console text file editor, with paragraph word-wrapping
-and spell checking. Leaf is based on the text editor in the Cone mail
-reader and composer.
+Leaf is a simple console text file editor, with paragraph
+word-wrapping and spell checking. Leaf is based on the text editor in
+the Cone mail reader and composer.
-%description -n leaf -l pl
-Leaf jest prostym konsolowym edytorem plików tekstowych. Jest oparty na
-edytorze u¿ywanym w czytniku poczty Cone.
+%description -n leaf -l pl.UTF-8
+Leaf jest prostym konsolowym edytorem plików tekstowych. Jest oparty
+na edytorze używanym w czytniku poczty Cone.
%prep
%setup -q
+%patch0 -p1
%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+
+cd cone
%{__aclocal}
%{__autoconf}
%{__automake}
+cd ../libmail
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+
+cd ../maildir
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+cd ..
+
CXXFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
PATH=$PATH:/usr/%{_lib}/openssl; export PATH
%configure \
# move devel docs from datadir
mkdir devel
-for file in account-* address.html book.html c2*.html e*.html folder-* \
-mail-* mimestruct* native* r11* r8* synchronous.html; do
+for file in account-* address.html e*.html folder-* \
+header* libmail*.html mail-* mimestruct* misc* native* synchronous.html; do
mv -f $RPM_BUILD_ROOT%{_datadir}/cone/$file devel
done
# rest *.html will go to primary docs
mkdir docs
mv -f $RPM_BUILD_ROOT%{_datadir}/cone/*.html docs
-
-# install missing files
-install libmail/mailtool $RPM_BUILD_ROOT%{_bindir}/mailtool
-install help.txt $RPM_BUILD_ROOT%{_datadir}/cone
+mv -f $RPM_BUILD_ROOT%{_datadir}/cone/manpage.css docs
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README NEWS docs/
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/cone
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cone
%attr(755,root,root) %{_bindir}/cone
%attr(755,root,root) %{_bindir}/mailtool
%{_datadir}/cone
%files devel
%defattr(644,root,root,755)
%doc devel/*
+%{_libdir}/libmail.la
%{_includedir}/libmail
-%{_mandir}/man[35]/*
+%{_mandir}/man3/*
%files static
%defattr(644,root,root,755)