From 90781275163a2db86395528294029ebfbcf95ef4 Mon Sep 17 00:00:00 2001 From: Shreyank Gupta Date: Jun 16 2010 09:20:16 +0000 Subject: - Added Provides: rubygem(%%{gemname}) = %%{version} --- diff --git a/.cvsignore b/.cvsignore index e69de29..8f0b15d 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +sup-0.10.2.gem diff --git a/import.log b/import.log new file mode 100644 index 0000000..07a3c71 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +rubygem-sup-0_10_2-5_fc13:HEAD:rubygem-sup-0.10.2-5.fc13.src.rpm:1276679944 diff --git a/rubygem-sup.spec b/rubygem-sup.spec new file mode 100644 index 0000000..90c270b --- /dev/null +++ b/rubygem-sup.spec @@ -0,0 +1,127 @@ +# Generated from sup-0.10.2.gem by gem2rpm -*- rpm-spec -*- + +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gemname sup +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +Summary: A console-based email client written in ruby +Name: rubygem-%{gemname} +Version: 0.10.2 +Release: 5%{?dist} +Group: Applications/Internet +License: GPLv2+ +URL: http://sup.rubyforge.org/ +Source0: http://rubygems.org/downloads/%{gemname}-%{version}.gem + +Requires: ruby(abi) = 1.8 +Requires: rubygems +Requires: ruby(ncurses) +Requires: xapian-bindings-ruby +Requires: rubygem(rmail) +Requires: rubygem(highline) +Requires: rubygem(net-ssh) +Requires: rubygem(trollop) +Requires: rubygem(lockfile) +Requires: rubygem(mime-types) +Requires: rubygem(gettext) + +BuildRequires: ruby +BuildRequires: rubygems + +BuildArch: noarch + +Provides: %{gemname} = %{version} +Provides: rubygem(%{gemname}) = %{version} + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires:%{name} = %{version}-%{release} + +%description doc +Documentation for %{name} + +%description +Sup is a console-based email client for people with a lot of email. It +supports tagging, very fast full-text search, automatic contact-list +management, and more. If you're the type of person who treats email as an +extension of your long-term memory, Sup is for you. Sup makes it easy to: - +Handle massive amounts of email. - Mix email from different sources: mbox +files (even across different machines), Maildir directories, IMAP folders, POP +accounts, and GMail accounts. - Instantaneously search over your entire email +collection. Search over body text, or use a query language to combine search +predicates in any way. - Handle multiple accounts. Replying to email sent to +a particular account will use the correct SMTP server, signature, and from +address. - Add custom code to handle certain types of messages or to handle +certain types of text within messages. - Organize email with user-defined +labels, automatically track recent contacts, and much more! The goal of Sup +is to become the email client of choice for nerds everywhere. + + +%prep + +%build + +%install + +mkdir -p %{buildroot}%{gemdir} +gem install --local --install-dir %{buildroot}%{gemdir} \ + --force --rdoc %{SOURCE0} + +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} +rmdir %{buildroot}%{gemdir}/bin + +# Modifying gemspec to remove dependency on xapian-full and ncursesw + +pushd %{buildroot}%{gemdir}/specifications +sed -i -e '/xapian-full/, 1d' %{gemname}-%{version}.gemspec +sed -i -e '/ncursesw/, 1d' %{gemname}-%{version}.gemspec +popd + +%files +%defattr(-, root, root, -) +%dir %{geminstdir} +%{_bindir}/sup +%{_bindir}/sup-add +%{_bindir}/sup-config +%{_bindir}/sup-dump +%{_bindir}/sup-recover-sources +%{_bindir}/sup-sync +%{_bindir}/sup-sync-back +%{_bindir}/sup-tweak-labels +%{_bindir}/sup-convert-ferret-index +%doc %{geminstdir}/CONTRIBUTORS +%doc %{geminstdir}/History.txt +%doc %{geminstdir}/LICENSE +%doc %{geminstdir}/README.txt +%doc %{geminstdir}/ReleaseNotes +%{geminstdir}/lib +%{geminstdir}/bin +%exclude %{geminstdir}/lib/ncurses.rb +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%defattr(-, root, root, -) +%{gemdir}/doc/%{gemname}-%{version} + +%changelog +* Mon Jun 14 2010 Shreyank Gupta - 0.10.2-5 +- Added Provides: rubygem(%%{gemname}) = %%{version} + +* Mon Jun 14 2010 Shreyank Gupta - 0.10.2-4 +- Removed redundant versions from Requires. +- Moving %%{gemdir}/bin/* to %%{_bindir} +- Excluded lib/ncurses.rb +- Renamed package to rubygem-sup + +* Fri Jun 11 2010 Shreyank Gupta - 0.10.2-3 +- Removed require 'xapian-full' and 'ncursesw' from gemspec + +* Wed Jun 09 2010 Shreyank Gupta - 0.10.2-2 +- Moving %%geminstdir/bin/* instead of %%gemdir/bin/* to %%_bindir +- Requires xapian-bindings-ruby + +* Mon Jun 07 2010 Shreyank Gupta - 0.10.2-1 +- Initial package diff --git a/sources b/sources index e69de29..048eb92 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +856c7ca05b9425adb698bb7ce7d0a403 sup-0.10.2.gem