]> git.notmuchmail.org Git - notmuch/commitdiff
packaging: fedora: add ruby bindings
authorFelipe Contreras <felipe.contreras@gmail.com>
Sun, 28 Apr 2013 09:52:38 +0000 (04:52 -0500)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Jun 2013 11:03:47 +0000 (08:03 -0300)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
packaging/fedora/notmuch.spec

index 11a1ec941817f986f630746162aff91d7c1116bc..79994c9ae6234a19ef29af4247c303e8e8f2e0f3 100644 (file)
@@ -16,7 +16,7 @@
 
 Name:           notmuch
 Version:        0.15.2
 
 Name:           notmuch
 Version:        0.15.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Thread-based email index, search and tagging
 
 Group:          Applications/Internet
 Summary:        Thread-based email index, search and tagging
 
 Group:          Applications/Internet
@@ -26,7 +26,7 @@ URL:            http://notmuchmail.org/
 Source0:        http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
 
 BuildRequires:  xapian-core-devel gmime-devel libtalloc-devel
 Source0:        http://notmuchmail.org/releases/notmuch-%{version}.tar.gz
 
 BuildRequires:  xapian-core-devel gmime-devel libtalloc-devel
-BuildRequires:  zlib-devel emacs-el emacs-nox python perl
+BuildRequires:  zlib-devel emacs-el emacs-nox python ruby ruby-devel perl
 
 %description
 Fast system for indexing, searching, and tagging email.  Even if you
 
 %description
 Fast system for indexing, searching, and tagging email.  Even if you
@@ -68,6 +68,14 @@ Requires:       %{name} = %{version}-%{release}
 %description -n python-notmuch
 %{summary}.
 
 %description -n python-notmuch
 %{summary}.
 
+%package -n notmuch-ruby
+Summary:        Ruby bindings for notmuch
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description -n notmuch-ruby
+%{summary}.
+
 %package mutt
 Summary:        Notmuch (of a) helper for Mutt
 Group:          Development/Libraries
 %package mutt
 Summary:        Notmuch (of a) helper for Mutt
 Group:          Development/Libraries
@@ -91,6 +99,12 @@ pushd bindings/python
     python setup.py build
 popd
 
     python setup.py build
 popd
 
+pushd bindings/ruby
+    export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
+    ruby extconf.rb --vendor
+    make
+popd
+
 pushd contrib/notmuch-mutt
     make
 popd
 pushd contrib/notmuch-mutt
     make
 popd
@@ -102,6 +116,10 @@ pushd bindings/python
     python setup.py install -O1 --skip-build --root %{buildroot}
 popd
 
     python setup.py install -O1 --skip-build --root %{buildroot}
 popd
 
+pushd bindings/ruby
+    make install DESTDIR=%{buildroot}
+popd
+
 install contrib/notmuch-mutt/notmuch-mutt %{buildroot}%{_bindir}/notmuch-mutt
 install contrib/notmuch-mutt/notmuch-mutt.1 %{buildroot}%{_mandir}/man1/notmuch-mutt.1
 
 install contrib/notmuch-mutt/notmuch-mutt %{buildroot}%{_bindir}/notmuch-mutt
 install contrib/notmuch-mutt/notmuch-mutt.1 %{buildroot}%{_mandir}/man1/notmuch-mutt.1
 
@@ -128,11 +146,17 @@ install contrib/notmuch-mutt/notmuch-mutt.1 %{buildroot}%{_mandir}/man1/notmuch-
 %doc bindings/python/README
 %{python_sitelib}/*
 
 %doc bindings/python/README
 %{python_sitelib}/*
 
+%files -n notmuch-ruby
+%{ruby_vendorarchdir}/*
+
 %files mutt
 %{_bindir}/notmuch-mutt
 %{_mandir}/man1/notmuch-mutt.1*
 
 %changelog
 %files mutt
 %{_bindir}/notmuch-mutt
 %{_mandir}/man1/notmuch-mutt.1*
 
 %changelog
+* Sun Apr 28 2013 Felipe Contreras <felipe.contreras@gmail.com> - 0.15.2-3
+- Add ruby bingings
+
 * Sun Apr 28 2013 Felipe Contreras <felipe.contreras@gmail.com> - 0.15.2-2
 - Sync with Fedora
 
 * Sun Apr 28 2013 Felipe Contreras <felipe.contreras@gmail.com> - 0.15.2-2
 - Sync with Fedora