57ec4a7
%global curses_include_dir  %{_includedir}/ncursesw
cvsextras c79211c
b6d5737
Summary:        CONE mail reader
b6d5737
Name:           cone
c8c0b61
Version:        0.92
e233ade
Release:        3%{?dist}
b6d5737
URL:            http://www.courier-mta.org/cone/
57ec4a7
Source:         http://downloads.sourceforge.net/project/courier/cone/%{version}/cone-%{version}.tar.bz2
3795646
License:        GPLv3
d51545e
57ec4a7
BuildRequires:  aspell-devel
57ec4a7
BuildRequires:  libxml2-devel
57ec4a7
BuildRequires:  zlib-devel
57ec4a7
BuildRequires:  openssl-devel
57ec4a7
BuildRequires:  ncurses-devel
57ec4a7
BuildRequires:  openldap-devel
57ec4a7
BuildRequires:  libidn-devel
c8c0b61
BuildRequires:  courier-unicode-devel > 1.2
57ec4a7
BuildRequires:  perl
b6d5737
BuildRequires:  openssl-perl
08073e5
BuildRequires:  gawk
939f509
BuildRequires:  procps
cvsextras c79211c
ed5a273
Requires:		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
87ff0f6
Summary:        LibMAIL mail client development library
57ec4a7
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
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
cvsextras c79211c
57ec4a7
%build
c8c0b61
%configure --with-devel --enable-shared CPPFLAGS="$CPPFLAGS -I%{curses_include_dir}"
c8c0b61
make %{?_smp_mflags}
cvsextras c79211c
cvsextras c79211c
%install
57ec4a7
%make_install
57ec4a7
rm -f %{buildroot}%{_libdir}/*.la
57ec4a7
install -m 0644 sysconftool %{buildroot}%{_datadir}/cone/cone.sysconftool
57ec4a7
touch %{buildroot}%{_sysconfdir}/cone
cvsextras c79211c
cvsextras c79211c
# Remove dupe copies of doc/html from the install tree.
cvsextras c79211c
( cd cone/html && \
57ec4a7
    find . -type f -exec rm -f %{buildroot}%{_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
%files
57ec4a7
%license COPYING COPYING.GPL
c8c0b61
%doc ChangeLog README NEWS AUTHORS INSTALL
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/*
cvsextras c79211c
cvsextras c79211c
%files devel
cvsextras c79211c
%{_libdir}/*.a
cvsextras c79211c
%{_mandir}/man[35]/*
cvsextras c79211c
%{_includedir}/libmail
cvsextras c79211c
cvsextras c79211c
%files doc
cvsextras c79211c
%doc cone/html
cvsextras c79211c
cvsextras c79211c
%changelog
e233ade
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.92-3
e233ade
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e233ade
ed5a273
* Sun May 1 2016 Mosaab Alzoubi <moceap@hotmail.com> - 0.92-2
ed5a273
- Fix #1319219
ed5a273
c8c0b61
* Sun Feb 14 2016 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 0.92-1
c8c0b61
- Update to 0.92.
c8c0b61
- Cleanup spec.
c8c0b61
- Remove cone-0.84-build.patch (Unused).
c8c0b61
3cbdd1c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.91.1-4
3cbdd1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3cbdd1c
91793bb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91.1-3
91793bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
91793bb
b1f450c
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.91.1-2
b1f450c
- Rebuilt for GCC 5 C++11 ABI change
b1f450c
57ec4a7
* Sun Mar 22 2015 Mosaab Alzoubi <moceap@hotmail.com> - 0.91.1-1
57ec4a7
- Update to 0.91.1
57ec4a7
- Clean Spec up
57ec4a7
- Remove old tags
57ec4a7
- Remove old %%clean
57ec4a7
- Remove un-neede sig file
57ec4a7
- Use best way of sourceforge sources
57ec4a7
- Split old one-line BRs
57ec4a7
- Add New BRs
57ec4a7
- Use %%make_install
57ec4a7
- Add %%license macro
57ec4a7
- Update %%doc line
57ec4a7
- Fix dates on %%changelog
57ec4a7
- Remove old patch
57ec4a7
35800c3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-11
35800c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
35800c3
fee021e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-10
fee021e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fee021e
7380a6b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.84-9
7380a6b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7380a6b
ba99e15
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.84-8
ba99e15
- Perl 5.18 rebuild
ba99e15
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
57ec4a7
* Thu 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.