93463a3
%define curses_include_dir  %{_includedir}/ncursesw
cvsextras c79211c
b6d5737
Summary:        CONE mail reader
b6d5737
Name:           cone
Steven Pritchard 64a4efc
Version:        0.84
5196a6c
Release:        7%{?dist}
b6d5737
b6d5737
URL:            http://www.courier-mta.org/cone/
87ff0f6
Source0:        http://dl.sf.net/courier/%{name}-%{version}.tar.bz2
87ff0f6
Source1:        http://dl.sf.net/courier/%{name}-%{version}.tar.bz2.sig
3795646
License:        GPLv3
b6d5737
Group:          Applications/Internet
b6d5737
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
b6d5737
d51545e
Patch0: cone-0.84-build.patch
d51545e
b6d5737
BuildRequires:  aspell-devel libxml2-devel
b6d5737
BuildRequires:  zlib-devel openssl-devel fam-devel perl
b6d5737
BuildRequires:  openssl-perl
b6d5737
BuildRequires:  ncurses-devel >= 5.3
08073e5
BuildRequires:  gawk
939f509
BuildRequires:  procps
cvsextras c79211c
cvsextras c79211c
Requires(post): %{__perl}
cvsextras c79211c
cvsextras c79211c
%description
cvsextras c79211c
CONE is a simple, text-based E-mail reader and writer.
cvsextras c79211c
cvsextras c79211c
%package devel
b6d5737
Group:          Development/Libraries
87ff0f6
Summary:        LibMAIL mail client development library
d51545e
Provides: %{name}-static = %{version}-%{release}
d51545e
Requires:       %{name}%{?_isa} = %{version}-%{release}
cvsextras c79211c
cvsextras c79211c
%description devel
cvsextras c79211c
The %{name}-devel package the header files and library files for developing
cvsextras c79211c
application using LibMAIL - a high level, C++ OO library for mail clients.
cvsextras c79211c
cvsextras c79211c
%package doc
b6d5737
Group:          Documentation
b6d5737
Summary:        Documentation for the CONE email client
cvsextras c79211c
cvsextras c79211c
%description doc
cvsextras c79211c
CONE is a simple, text-based E-mail reader and writer.  This package
cvsextras c79211c
contains a large amount of documentation for CONE.
cvsextras c79211c
cvsextras c79211c
%prep
cvsextras c79211c
%setup -q
d51545e
%patch0 -p1 -b .build
cvsextras c79211c
cvsextras c79211c
%build
cvsextras c79211c
CPPFLAGS="$CPPFLAGS -I%{curses_include_dir}"
cvsextras c79211c
export CPPFLAGS
cvsextras c79211c
b6d5737
# Note: The build breaks with --disable-static
b6d5737
CFLAGS="$RPM_OPT_FLAGS" %configure --with-devel --enable-shared
f4cd8eb
%{__make} -k %{?_smp_mflags}
cvsextras c79211c
cvsextras c79211c
%install
cvsextras c79211c
rm -rf $RPM_BUILD_ROOT
cvsextras c79211c
%{__make} install DESTDIR=$RPM_BUILD_ROOT
b6d5737
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
cvsextras c79211c
%{__install} sysconftool $RPM_BUILD_ROOT%{_datadir}/cone/cone.sysconftool
cvsextras c79211c
touch $RPM_BUILD_ROOT%{_sysconfdir}/cone
cvsextras c79211c
cvsextras c79211c
# Remove dupe copies of doc/html from the install tree.
cvsextras c79211c
( cd cone/html && \
cvsextras c79211c
    find . -type f -exec rm -f $RPM_BUILD_ROOT%{_datadir}/cone/{} \; )
cvsextras c79211c
cvsextras c79211c
%preun
cvsextras c79211c
if [ "$1" = 0 ]; then
cvsextras c79211c
    mv %{_sysconfdir}/cone %{_sysconfdir}/cone.rpmsave
cvsextras c79211c
fi
cvsextras c79211c
cvsextras c79211c
%pre
cvsextras c79211c
if [ "$1" = 1 -a -f %{_sysconfdir}/cone.rpmsave -a ! -f %{_sysconfdir}/cone ]
cvsextras c79211c
then
cvsextras c79211c
    mv %{_sysconfdir}/cone.rpmsave %{_sysconfdir}/cone
cvsextras c79211c
fi
cvsextras c79211c
cvsextras c79211c
%post
cvsextras c79211c
%{__perl} %{_datadir}/cone/cone.sysconftool %{_sysconfdir}/cone.dist > /dev/null
cvsextras c79211c
cvsextras c79211c
%clean
cvsextras c79211c
rm -rf $RPM_BUILD_ROOT
cvsextras c79211c
cvsextras c79211c
%files
cvsextras c79211c
%defattr(-,root,root)
cvsextras c79211c
%attr(644,root,root) %{_sysconfdir}/cone.dist
cvsextras c79211c
%ghost %verify(user group mode) %attr(644,root,root) %{_sysconfdir}/cone
cvsextras c79211c
%{_bindir}/*
cvsextras c79211c
%{_libexecdir}/cone
cvsextras c79211c
%{_datadir}/cone
cvsextras c79211c
%{_mandir}/man1/*
5c5590a
#%{_libdir}/*.so
cvsextras c79211c
%doc ABOUT-NLS ChangeLog README NEWS AUTHORS COPYING COPYING.GPL
cvsextras c79211c
cvsextras c79211c
%files devel
cvsextras c79211c
%defattr(-,root,root)
cvsextras c79211c
%{_libdir}/*.a
cvsextras c79211c
%{_mandir}/man[35]/*
cvsextras c79211c
%{_includedir}/libmail
cvsextras c79211c
cvsextras c79211c
%files doc
cvsextras c79211c
%defattr(-,root,root)
cvsextras c79211c
%doc cone/html
cvsextras c79211c
cvsextras c79211c
%changelog
5196a6c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-7
5196a6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5196a6c
3ee8e14
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-6
3ee8e14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ee8e14
352071b
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-5
352071b
- Rebuilt for c++ ABI breakage
352071b
b75fcef
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-4
b75fcef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b75fcef
d51545e
* Thu Nov 17 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 0.84-3
d51545e
- Add %%?_isa to -devel base package dep to meet guidelines.
d51545e
- Fix FTBFS (#716041).
d51545e
- Add -static Provides to -devel package (#609603).
d51545e
47d963a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-2
47d963a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
47d963a
Steven Pritchard 64a4efc
* Mon Dec 13 2010 Steven Pritchard <steve@kspei.com> 0.84-1
Steven Pritchard 64a4efc
- Update to 0.84.
Steven Pritchard 64a4efc
55f66bb
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.78-3
55f66bb
- rebuilt with new openssl
55f66bb
f7823c8
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.78-2
f7823c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7823c8
7f97a4c
* Sat Jun 13 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.78-1
7f97a4c
- Update to 0.78 (resolves BZ#496421, BZ#426952).
7f97a4c
- Dropped cone-gcc44.patch (merged upstream).
7f97a4c
9250f81
* Sun Apr 19 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.75-5
9250f81
- Updated cone-gcc44.patch according to upstream wishes.
9250f81
f4cd8eb
* Sat Apr 18 2009 Milos Jakubicek <xjakub@fi.muni.cz> - 0.75-4
f4cd8eb
- Fix FTBFS: added cone-gcc44.patch
f4cd8eb
9f4a495
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.75-3
9f4a495
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9f4a495
921dc66
* Thu Jan 15 2009 Tomas Mraz <tmraz@redhat.com> 0.75-2
921dc66
- rebuild with new openssl
921dc66
d841115
* Thu Jul 10 2008 Steven Pritchard <steve@kspei.com> 0.75-1
d841115
- Update to 0.75.
d841115
9839b90
* Sat Mar 29 2008 Christopher Aillon <caillon@redhat.com> - 0.74-3
9839b90
- Add compilation patch for GCC 4.3; add proper C++ #includes
9839b90
17a10a7
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.74-2
17a10a7
- Autorebuild for GCC 4.3
17a10a7
3795646
* Wed Dec 05 2007 Steven Pritchard <steve@kspei.com> 0.74-1
3795646
- Update to 0.74.
3795646
- Update License (now GPLv3).
3795646
939f509
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.71-5
08073e5
- BR gawk.
939f509
- and procps.
08073e5
308490e
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.71-3
308490e
- Rebuild for selinux ppc32 issue.
308490e
cdcde72
* Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> - 0.71-2
cdcde72
- Rebuild for RH #249435
cdcde72
dac453d
* Tue Jul 24 2007 Steven Pritchard <steve@kspei.com> 0.71-1
dac453d
- Update to 0.71.
dac453d
bbc6aae
* Mon Apr 09 2007 Steven Pritchard <steve@kspei.com> 0.69-1
bbc6aae
- Update to 0.69.
bbc6aae
52f5619
* Mon Aug 28 2006 Steven Pritchard <steve@kspei.com> 0.68-2
52f5619
- Rebuild.
52f5619
87ff0f6
* Tue Aug 01 2006 Steven Pritchard <steve@kspei.com> 0.68-1
87ff0f6
- Update to 0.68.
87ff0f6
- Drop cone-0.66.20060203-compile.patch.
87ff0f6
5c5590a
* Sat Feb 04 2006 Steven Pritchard <steve@kspei.com> 0.66.20060203-1
5c5590a
- Update to 0.66.20060203 (development snapshot, needed to fix compilation
5c5590a
  with g++ 4.1)
5c5590a
- Patch a few more g++ 4.1 issues
5c5590a
b6d5737
* Thu Feb 02 2006 Steven Pritchard <steve@kspei.com> 0.66-1
b6d5737
- Update to 0.66
b6d5737
- Spec cleanup (reformatting)
b6d5737
b6d5737
* Mon Nov 14 2005 Steven Pritchard <steve@kspei.com> 0.65-3
5c5590a
- Disabling static library creation breaks the build
b6d5737
bc9ba0b
* Mon Nov 14 2005 Steven Pritchard <steve@kspei.com> 0.65-2
bc9ba0b
- Rebuild
bc9ba0b
95b1fb8
* Thu Aug 04 2005 Steven Pritchard <steve@kspei.com> 0.65-1
95b1fb8
- Update to 0.65
95b1fb8
ffdb33a
* Thu Jun  2 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.64-5
ffdb33a
- disable explicit gcc-c++/libstdc++-devel BR and bump for another
ffdb33a
  rebuild attempt
ffdb33a
46b212b
* Sat May 28 2005 Steven Pritchard <steve@kspei.com> 0.64-4
46b212b
- rebuild
46b212b
0e2d35d
* Thu May 26 2005 Jeremy Katz <katzj@redhat.com> - 0.64-3
0e2d35d
- rebuild on all arches
0e2d35d
46b212b
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.64-2
02d6fb8
- rebuilt
02d6fb8
382a575
* Wed Mar 02 2005 Steven Pritchard <steve@kspei.com> 0.64-1
382a575
- Update to 0.64
382a575
93463a3
* Wed Feb 23 2005 Steven Pritchard <steve@kspei.com> 0.63-1
93463a3
- Update to 0.63
93463a3
- Include signature file with the source rpm
93463a3
- Drop GCC 3.4 patch (already included upstream)
93463a3
9ed1e5f
* Fri Nov 12 2004 Michael Schwendt <mschwendt[AT]users.sf.net> 0.60-2
9ed1e5f
- Fix addressbookget.C for GCC 3.4.
9ed1e5f
cvsextras c79211c
* Thu Jul 15 2004 Steven Pritchard <steve@kspei.com> 0:0.60-0.fdr.1
cvsextras c79211c
- Update to 0.60
cvsextras c79211c
- Re-enable sysconftool
cvsextras c79211c
- Eliminate duplicate html documentation
cvsextras c79211c
- Other minor changes from upstream spec
cvsextras c79211c
- Add explicit Epoch to make rpmlint happier
cvsextras c79211c
- Split html documentation into separate -doc subpackage
cvsextras c79211c
cvsextras c79211c
* Wed Apr 14 2004 Steven Pritchard <steve@kspei.com> 0.58-0.fdr.1
cvsextras c79211c
- Remove html docs from %doc.  They're all in /usr/share/cone already.
cvsextras c79211c
cvsextras c79211c
* Tue Apr 13 2004 Steven Pritchard <steve@kspei.com> 0.58-0.fdr.0
cvsextras c79211c
- Update to 0.58
cvsextras c79211c
- More spec cleanup (s/BuildPreReq/BuildRequires/, -devel Requires
cvsextras c79211c
  version-release, generate the config file in install instead of
cvsextras c79211c
  post).  Suggestions from Warren Togami.
cvsextras c79211c
- Enable SMP builds
cvsextras c79211c
- Use RPM_OPT_FLAGS
cvsextras c79211c
cvsextras c79211c
* Tue Apr 06 2004 Steven Pritchard <steve@kspei.com> 0.57.20040327-0.fdr.1
cvsextras c79211c
- Spec cleanup
cvsextras c79211c
cvsextras c79211c
* Sun Apr 04 2004 Steven Pritchard <steve@kspei.com> 0.57.20040327-0.fdr.0
cvsextras c79211c
- Recompile for FC1 using the spec included with the source
cvsextras c79211c
cvsextras c79211c
* Mon Sep  1 2003 Mr. Sam <sam@email-scan.com>
cvsextras c79211c
- Fix for Red Hat 9+
cvsextras c79211c
cvsextras c79211c
* Sat Jul 26 2003 Mr. Sam 0.52
cvsextras c79211c
- Use wide-char compatible ncurses in current RH Beta.
cvsextras c79211c
cvsextras c79211c
* Wed Mar  5 2003 Mr. Sam <mrsam@courier-mta.com>
cvsextras c79211c
- Initial build.