kumarpraveen pushed to rubygem-sup (f22). "Add new source tarball and updated dependecies"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri May 1 07:33:14 UTC 2015


>From 0023826f458e4dbf1d21c5d20380a52959f09c7d Mon Sep 17 00:00:00 2001
From: Praveen Kumar <prkumar at redhat.com>
Date: Fri, 1 May 2015 12:47:33 +0530
Subject: Add new source tarball and updated dependecies


diff --git a/.gitignore b/.gitignore
index 8f0b15d..d438005 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 sup-0.10.2.gem
+/sup-0.21.0.gem
diff --git a/mkrf_conf.patch b/mkrf_conf.patch
new file mode 100644
index 0000000..86d9cc3
--- /dev/null
+++ b/mkrf_conf.patch
@@ -0,0 +1,12 @@
+diff -uNr sup-0.21.0/ext/mkrf_conf_xapian.rb sup-0.21.0p/ext/mkrf_conf_xapian.rb
+--- sup-0.21.0/ext/mkrf_conf_xapian.rb	2015-05-01 11:33:02.331805203 +0530
++++ sup-0.21.0p/ext/mkrf_conf_xapian.rb	2015-05-01 11:40:07.496788064 +0530
+@@ -13,7 +13,7 @@
+ inst = Gem::DependencyInstaller.new
+ begin
+ 
+-  if !RbConfig::CONFIG['arch'].include?('openbsd')
++  if RbConfig::CONFIG['arch'].include?('openbsd')
+     # update version in Gemfile as well
+     name    = "xapian-ruby"
+     version = "~> 1.2.15"
diff --git a/rubygem-sup.spec b/rubygem-sup.spec
index 4dba910..9a22430 100644
--- a/rubygem-sup.spec
+++ b/rubygem-sup.spec
@@ -1,15 +1,14 @@
-# Generated from sup-0.10.2.gem by gem2rpm -*- rpm-spec -*-
-
 %global gem_name sup
 
 Summary: A console-based email client written in ruby
 Name: rubygem-%{gem_name}
-Version: 0.10.2
-Release: 13%{?dist}
+Version: 0.21.0
+Release: 1%{?dist}
 Group: Applications/Internet
 License: GPLv2+
 URL: http://sup.rubyforge.org/
 Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
+Patch0: mkrf_conf.patch
 
 Requires: ruby(release)
 Requires: ruby(rubygems)
@@ -24,12 +23,18 @@ Requires: rubygem(mime-types)
 Requires: rubygem(gettext)
 
 BuildRequires: ruby
+BuildRequires: ruby-devel
+BuildRequires: xapian-core-devel
 BuildRequires: rubygems-devel
+BuildRequires: ncurses-devel
+BuildRequires: xapian-bindings-ruby
+BuildRequires: zlib-devel
+BuildRequires: rubygem-rake
+BuildRequires: gcc-c++
 
 BuildArch: noarch
 
 Provides: %{gem_name} = %{version}
-Provides: rubygem(%{gem_name}) = %{version}
 
 %package doc
 Summary: Documentation for %{name}
@@ -57,16 +62,26 @@ is to become the email client of choice for nerds everywhere.
 
 
 %prep
-%setup -q -c -T
-%gem_install -n %{SOURCE0}
+gem unpack %{SOURCE0}
+%setup -q -D -T -n  %{gem_name}-%{version}
+gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+%patch0 -p1
 
 %build
+gem build %{gem_name}.gemspec
+%gem_install
+rm %{_builddir}/%{gem_name}-%{version}%{gem_dir}/gems/%{gem_name}-%{version}/.gitignore
+rm %{_builddir}/%{gem_name}-%{version}%{gem_dir}/gems/%{gem_name}-%{version}/.travis.yml
+rm %{_builddir}/%{gem_name}-%{version}%{gem_dir}/gems/%{gem_name}-%{version}/.gitmodules
+rm -fr %{_builddir}/%{gem_name}-%{version}%{gem_dir}/gems/%{gem_name}-%{version}/test
+rm -fr %{_builddir}/%{gem_name}-%{version}%{gem_dir}/gems/%{gem_name}-%{version}/devel
+
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
-mkdir -p %{buildroot}/%{_bindir}
-mv .%{_bindir}/* %{buildroot}/%{_bindir}
-mv .%{gem_dir}/* %{buildroot}/%{gem_dir}
+mkdir -p %{buildroot}%{_bindir}
+mv .%{gem_dir}/* %{buildroot}%{gem_dir}
+mv .%{_bindir}/* %{buildroot}%{_bindir}
 
 # Modifying gemspec to remove dependency on xapian-full and ncursesw
 
@@ -84,17 +99,11 @@ popd
 %{_bindir}/sup-dump
 %{_bindir}/sup-recover-sources
 %{_bindir}/sup-sync
-%{_bindir}/sup-sync-back
 %{_bindir}/sup-tweak-labels
-%{_bindir}/sup-convert-ferret-index
-%doc %{gem_instdir}/CONTRIBUTORS
-%doc %{gem_instdir}/History.txt
-%doc %{gem_instdir}/LICENSE
-%doc %{gem_instdir}/README.txt
-%doc %{gem_instdir}/ReleaseNotes
-%{gem_libdir}
-%{gem_instdir}/bin
-%exclude %{gem_libdir}/ncurses.rb
+%{_bindir}/sup-import-dump
+%{_bindir}/sup-psych-ify-config-files
+%{_bindir}/sup-sync-back-maildir
+%{gem_instdir}/*
 %{gem_cache}
 %{gem_spec}
 
@@ -103,6 +112,9 @@ popd
 %{gem_docdir}
 
 %changelog
+* Fri May 01 2015 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.21.0-1
+- Add new source tarball and updated dependecies
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.10.2-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 048eb92..74b4879 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-856c7ca05b9425adb698bb7ce7d0a403  sup-0.10.2.gem
+b2ced90b9ec1e74c74950356a27cce19  sup-0.21.0.gem
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/rubygem-sup.git/commit/?h=f22&id=0023826f458e4dbf1d21c5d20380a52959f09c7d


More information about the scm-commits mailing list