[cone] Update to 0.91.1

Mosaab Alzoubi moceap at fedoraproject.org
Mon Mar 23 21:39:19 UTC 2015


commit 57ec4a7a131b629bdeb4885d0729776465f67b5b
Author: Mosaab Alzoubi <moceap at hotmail.com>
Date:   Tue Mar 24 00:39:04 2015 +0300

    Update to 0.91.1

 .gitignore |  1 +
 cone.spec  | 79 +++++++++++++++++++++++++++++++++-----------------------------
 sources    |  3 +--
 3 files changed, 44 insertions(+), 39 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 54432cd..cd807c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@ cone-0.78.tar.bz2
 cone-0.78.tar.bz2.sig
 /cone-0.84.tar.bz2
 /cone-0.84.tar.bz2.sig
+/cone-0.91.1.tar.bz2
diff --git a/cone.spec b/cone.spec
index 37de096..d7eeae0 100644
--- a/cone.spec
+++ b/cone.spec
@@ -1,35 +1,35 @@
-%define curses_include_dir  %{_includedir}/ncursesw
+%global curses_include_dir  %{_includedir}/ncursesw
 
 Summary:        CONE mail reader
 Name:           cone
-Version:        0.84
-Release:        11%{?dist}
-
+Version:        0.91.1
+Release:        1%{?dist}
 URL:            http://www.courier-mta.org/cone/
-Source0:        http://dl.sf.net/courier/%{name}-%{version}.tar.bz2
-Source1:        http://dl.sf.net/courier/%{name}-%{version}.tar.bz2.sig
+Source:         http://downloads.sourceforge.net/project/courier/cone/%{version}/cone-%{version}.tar.bz2
 License:        GPLv3
-Group:          Applications/Internet
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
-
-Patch0: cone-0.84-build.patch
 
-BuildRequires:  aspell-devel libxml2-devel
-BuildRequires:  zlib-devel openssl-devel fam-devel perl
+BuildRequires:  aspell-devel
+BuildRequires:  libxml2-devel
+BuildRequires:  zlib-devel
+BuildRequires:  openssl-devel
+BuildRequires:  fam-devel
+BuildRequires:  ncurses-devel
+BuildRequires:  openldap-devel
+BuildRequires:  libidn-devel
+BuildRequires:  courier-unicode-devel
+BuildRequires:  perl
 BuildRequires:  openssl-perl
-BuildRequires:  ncurses-devel >= 5.3
 BuildRequires:  gawk
 BuildRequires:  procps
 
-Requires(post): %{__perl}
+Requires(post): perl
 
 %description
 CONE is a simple, text-based E-mail reader and writer.
 
 %package devel
-Group:          Development/Libraries
 Summary:        LibMAIL mail client development library
-Provides: %{name}-static = %{version}-%{release}
+Provides:       %{name}-static = %{version}-%{release}
 Requires:       %{name}%{?_isa} = %{version}-%{release}
 
 %description devel
@@ -37,7 +37,6 @@ The %{name}-devel package the header files and library files for developing
 application using LibMAIL - a high level, C++ OO library for mail clients.
 
 %package doc
-Group:          Documentation
 Summary:        Documentation for the CONE email client
 
 %description doc
@@ -46,26 +45,22 @@ contains a large amount of documentation for CONE.
 
 %prep
 %setup -q
-%patch0 -p1 -b .build
-
-%build
 CPPFLAGS="$CPPFLAGS -I%{curses_include_dir}"
 export CPPFLAGS
+%configure -C --with-devel --enable-shared
 
-# Note: The build breaks with --disable-static
-CFLAGS="$RPM_OPT_FLAGS" %configure --with-devel --enable-shared
-%{__make} -k %{?_smp_mflags}
+%build
+make -k -s %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-%{__install} sysconftool $RPM_BUILD_ROOT%{_datadir}/cone/cone.sysconftool
-touch $RPM_BUILD_ROOT%{_sysconfdir}/cone
+%make_install
+rm -f %{buildroot}%{_libdir}/*.la
+install -m 0644 sysconftool %{buildroot}%{_datadir}/cone/cone.sysconftool
+touch %{buildroot}%{_sysconfdir}/cone
 
 # Remove dupe copies of doc/html from the install tree.
 ( cd cone/html && \
-    find . -type f -exec rm -f $RPM_BUILD_ROOT%{_datadir}/cone/{} \; )
+    find . -type f -exec rm -f %{buildroot}%{_datadir}/cone/{} \; )
 
 %preun
 if [ "$1" = 0 ]; then
@@ -81,11 +76,9 @@ fi
 %post
 %{__perl} %{_datadir}/cone/cone.sysconftool %{_sysconfdir}/cone.dist > /dev/null
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root)
+%license COPYING COPYING.GPL
+%doc ChangeLog README NEWS AUTHORS INSTALL COPYING COPYING.GPL
 %attr(644,root,root) %{_sysconfdir}/cone.dist
 %ghost %verify(user group mode) %attr(644,root,root) %{_sysconfdir}/cone
 %{_bindir}/*
@@ -93,19 +86,31 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/cone
 %{_mandir}/man1/*
 #%{_libdir}/*.so
-%doc ABOUT-NLS ChangeLog README NEWS AUTHORS COPYING COPYING.GPL
 
 %files devel
-%defattr(-,root,root)
 %{_libdir}/*.a
 %{_mandir}/man[35]/*
 %{_includedir}/libmail
 
 %files doc
-%defattr(-,root,root)
 %doc cone/html
 
 %changelog
+* Sun Mar 22 2015 Mosaab Alzoubi <moceap at hotmail.com> - 0.91.1-1
+- Update to 0.91.1
+- Clean Spec up
+- Remove old tags
+- Remove old %%clean
+- Remove un-neede sig file
+- Use best way of sourceforge sources
+- Split old one-line BRs
+- Add New BRs
+- Use %%make_install
+- Add %%license macro
+- Update %%doc line
+- Fix dates on %%changelog
+- Remove old patch
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.84-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
@@ -227,7 +232,7 @@ rm -rf $RPM_BUILD_ROOT
 * Thu May 26 2005 Jeremy Katz <katzj at redhat.com> - 0.64-3
 - rebuild on all arches
 
-* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.64-2
+* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 0.64-2
 - rebuilt
 
 * Wed Mar 02 2005 Steven Pritchard <steve at kspei.com> 0.64-1
diff --git a/sources b/sources
index 3c2d478..507a12c 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-2541c4910078cb3640edffc4a2acaca7  cone-0.84.tar.bz2
-fc6a13706a989c0e2b6c026f1fe469bc  cone-0.84.tar.bz2.sig
+b8c9469f31daeb3460aedd8e7f408a3d  cone-0.91.1.tar.bz2


More information about the scm-commits mailing list