Summary: CONE - Console Newsreader and Emailer Summary(pl.UTF-8): CONE - tekstowy klient poczty i czytnik newsów Name: cone Version: 0.68 Release: 1 License: GPL Group: Applications/Mail Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2 # Source0-md5: a958de27297b0c867478107ab4407fd6 Patch0: %{name}-maildir.patch URL: http://www.courier-mta.org/cone/ BuildRequires: aspell-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: fam-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) %description CONE is a simple, text-based E-mail reader and writer, and a simple newsreader. %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.UTF-8): Pliki nagłówkowe LibMAIL Group: Development/Languages Requires: %{name} = %{version}-%{release} %description devel This package includes the header files for developing applications using LibMAIL - a high level, C++ OO library for mail clients. %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. %package static Summary: Static LibMAIL library Summary(pl.UTF-8): Biblioteka statyczna LibMAIL Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static This package contains static library for developing application using LibMAIL - a high level, C++ OO library for mail clients. %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.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. %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 \ --with-devel \ SENDMAIL=%{_sbindir}/sendmail %{__make} %{__make} check %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT # start cone directly mv -f $RPM_BUILD_ROOT%{_libdir}/cone $RPM_BUILD_ROOT%{_bindir} mv -f $RPM_BUILD_ROOT%{_sysconfdir}/cone.dist $RPM_BUILD_ROOT%{_sysconfdir}/cone # move devel docs from datadir mkdir devel for file in account-* address.html book.html c2*.html e*.html folder-* \ header* libmail*.html mail-* mimestruct* misc* native* synchronous.html; do mv -f $RPM_BUILD_ROOT%{_datadir}/cone/$file devel done # leaf doc mv -f $RPM_BUILD_ROOT%{_datadir}/cone/leaf.html . # rest *.html will go to primary docs mkdir docs mv -f $RPM_BUILD_ROOT%{_datadir}/cone/*.html docs 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 md5 mtime size) %{_sysconfdir}/cone %attr(755,root,root) %{_bindir}/cone %attr(755,root,root) %{_bindir}/mailtool %{_datadir}/cone %{_mandir}/man1/cone* %{_mandir}/man1/mailtool* %files devel %defattr(644,root,root,755) %doc devel/* %{_libdir}/libmail.la %{_includedir}/libmail %{_mandir}/man3/* %files static %defattr(644,root,root,755) %{_libdir}/libmail.a %files -n leaf %defattr(644,root,root,755) %doc leaf.html %attr(755,root,root) %{_bindir}/leaf %{_mandir}/man1/leaf*