unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Update of the spec file to the 0.4 release.
@ 2010-11-12  0:30 Scott Henson
  2010-11-12  0:30 ` Scott Henson
  2010-11-12  0:47 ` Carl Worth
  0 siblings, 2 replies; 3+ messages in thread
From: Scott Henson @ 2010-11-12  0:30 UTC (permalink / raw)
  To: notmuch

This is the spec file I used to build a Fedora package.  It has some
comments that would allow a build of git.  Sorry for the delay, I've
been at LISA and been a little bit more busy than I thought.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Update of the spec file to the 0.4 release.
  2010-11-12  0:30 [PATCH] Update of the spec file to the 0.4 release Scott Henson
@ 2010-11-12  0:30 ` Scott Henson
  2010-11-12  0:47 ` Carl Worth
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Henson @ 2010-11-12  0:30 UTC (permalink / raw)
  To: notmuch

---
 packaging/fedora/notmuch.spec |   74 ++++++++++++++++++++++++++++++-----------
 1 files changed, 54 insertions(+), 20 deletions(-)

diff --git a/packaging/fedora/notmuch.spec b/packaging/fedora/notmuch.spec
index cca3a1b..ef1af2e 100644
--- a/packaging/fedora/notmuch.spec
+++ b/packaging/fedora/notmuch.spec
@@ -1,4 +1,5 @@
-%global git 306635c2
+%global git 6b9a717c
+%global date %(date +%Y%m%d)
 
 %if %($(pkg-config emacs) ; echo $?)
 %global emacs_version 23.1
@@ -10,23 +11,29 @@
 %global emacs_startdir %(pkg-config emacs --variable sitestartdir)
 %endif
 
+# If you are doing a git snapshot:
+#
+# Release should be 1%{git}%{?dist}
+# Source0 should be notmuch-%{version}-%{git}.tar.gz
+# git version is generated by 'git show-ref --hash=8 HEAD'
+#
+# To create a tarball:
+#
+# git clone git://notmuchmail.org/git/notmuch
+# cd notmuch
+# git archive --format=tar --prefix=notmuch-0.4/ HEAD | gzip > notmuch-0.4-`git show-ref --hash=8 HEAD`.tar.gz
+#
+
 Name:           notmuch
-Version:        0.0
-Release:        0.3.%{git}%{?dist}
+Version:        0.4
+Release:        1%{?dist}
 Summary:        Not much of an email program
 
 Group:          Applications/Internet
 License:        GPLv3+
 URL:            http://notmuchmail.org/
 
-#
-# To create a tarball:
-#
-# git clone git://notmuchmail.org/git/notmuch
-# cd notmuch
-# git archive --format=tar --prefix=notmuch/ HEAD | bzip2 > notmuch-`git show-ref --hash=8 HEAD`.tar.bz2
-#
-Source0:        notmuch-%{git}.tar.bz2
+Source0:        http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  xapian-core-devel
@@ -61,17 +68,17 @@ Requires:       emacs(bin) >= %{emacs_version}
   can be integrated into any email program.)
 
 * Notmuch is not much of an email program. It doesn't receive messages
-  (no POP or IMAP suport). It doesn't send messages (no mail composer,
+  (no POP or IMAP support). It doesn't send messages (no mail composer,
   no network code at all). And for what it does do (email search) that
   work is provided by an external library, Xapian. So if Notmuch
   provides no user interface and Xapian does all the heavy lifting,
   then what's left here? Not much.
 
 Notmuch is still in the early stages of development, but it does
-include one user interface, (implemented within emacs), which has at
+include one user interface, (implemented within Emacs), which has at
 least two users using it for reading all of their incoming mail. If
 you've been looking for a fast, global-search and tag-based email
-reader to use within emacs, then Notmuch may be exactly what you've
+reader to use within Emacs, then Notmuch may be exactly what you've
 been looking for.
 
 Otherwise, if you're a developer of an existing email program and
@@ -79,32 +86,59 @@ would love a good library interface for fast, global search with
 support for arbitrary tags, then Notmuch also may be exactly what
 you've been looking for.
 
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
 %prep
-%setup -q -n notmuch
+%setup -q
 
 %build
+./configure --prefix=/usr --libdir=%{_libdir} --sysconfdir=%{_sysconfdir}
 make %{?_smp_mflags} CFLAGS="%{optflags}"
-emacs -batch -f batch-byte-compile notmuch.el
+emacs -batch -f batch-byte-compile emacs/*.el
 
 %install
 rm -rf %{buildroot}
 make install DESTDIR=%{buildroot} prefix=%{_prefix}
-mkdir -p %{buildroot}%{emacs_startdir}
-install -m0644 -p notmuch.el* %{buildroot}%{emacs_startdir}
+mv %{buildroot}%{_sysconfdir}/bash_completion.d %{buildroot}%{_datarootdir}/bash_completion
 
 %clean
 rm -rf %{buildroot}
 
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO
 
-%{_sysconfdir}/bash_completion.d/notmuch
 %{_bindir}/notmuch
+%{_libdir}/libnotmuch.so.*
 %{_mandir}/man1/notmuch.1*
-%{emacs_startdir}/notmuch.el*
+
+%{_emacs_sitelispdir}/*
+
+%{_datarootdir}/zsh/functions/Completion/Unix/notmuch
+%{_datarootdir}/bash_completion/notmuch
+
+%files devel
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING COPYING-GPL-3 INSTALL README TODO
+%{_includedir}/*
+%{_libdir}/*.so
+
 
 %changelog
+* Tue Nov  2 2010 Scott Henson <shenson@redhat.com> - 0.4-1
+- New upstream release
+
 * Wed Nov 18 2009 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.0-0.3.306635c2
 - First version
 
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Update of the spec file to the 0.4 release.
  2010-11-12  0:30 [PATCH] Update of the spec file to the 0.4 release Scott Henson
  2010-11-12  0:30 ` Scott Henson
@ 2010-11-12  0:47 ` Carl Worth
  1 sibling, 0 replies; 3+ messages in thread
From: Carl Worth @ 2010-11-12  0:47 UTC (permalink / raw)
  To: Scott Henson, notmuch

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

On Thu, 11 Nov 2010 16:30:49 -0800, Scott Henson <scott@foolishpride.org> wrote:
> This is the spec file I used to build a Fedora package.  It has some
> comments that would allow a build of git.  Sorry for the delay, I've
> been at LISA and been a little bit more busy than I thought.

Thanks, Scott.

I've pushed this out now. Thanks for the contribution.

-Carl

-- 
carl.d.worth@intel.com

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-12  0:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-12  0:30 [PATCH] Update of the spec file to the 0.4 release Scott Henson
2010-11-12  0:30 ` Scott Henson
2010-11-12  0:47 ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).