packages: htty/htty-paths.patch (NEW), htty/htty.spec (NEW) - Initial add
caleb
caleb at pld-linux.org
Sat Oct 16 15:04:29 CEST 2010
Author: caleb Date: Sat Oct 16 13:04:30 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- Initial add
---- Files affected:
packages/htty:
htty-paths.patch (NONE -> 1.1) (NEW), htty.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/htty/htty-paths.patch
diff -u /dev/null packages/htty/htty-paths.patch:1.1
--- /dev/null Sat Oct 16 15:04:30 2010
+++ packages/htty/htty-paths.patch Sat Oct 16 15:04:21 2010
@@ -0,0 +1,21 @@
+--- bin/htty~ 2010-10-16 15:46:20.398734490 +0300
++++ bin/htty 2010-10-16 15:43:56.231754202 +0300
+@@ -1,5 +1,5 @@
+-#!/usr/bin/env ruby
++#!/usr/bin/ruby
+
+-require File.expand_path("#{File.dirname __FILE__}/../lib/htty")
++require 'htty'
+
+ HTTY::CLI.new(ARGV).run!
+--- lib/htty.rb~ 2010-09-29 03:44:35.000000000 +0300
++++ lib/htty.rb 2010-10-16 15:58:38.765349593 +0300
+@@ -2,7 +2,7 @@
+ module HTTY
+
+ # The version of this release of _htty_.
+- VERSION = File.read("#{File.dirname __FILE__}/../VERSION").chomp
++ VERSION = File.read("#{File.dirname __FILE__}/htty/VERSION").chomp
+
+ end
+
================================================================
Index: packages/htty/htty.spec
diff -u /dev/null packages/htty/htty.spec:1.1
--- /dev/null Sat Oct 16 15:04:30 2010
+++ packages/htty/htty.spec Sat Oct 16 15:04:21 2010
@@ -0,0 +1,102 @@
+# $Revision$, $Date$
+# TODO
+# - any policy what to package in %{ruby_ridir}?
+#
+Summary: htty is a console application for interacting with HTTP servers
+Name: htty
+Version: 1.1.0
+Release: 0.1
+License: MIT
+Source0: http://rubygems.org/downloads/%{name}-%{version}.gem
+# Source0-md5: 4583c7b17bb630de676fe0c5c595ab1e
+Patch0: %{name}-paths.patch
+Group: Applications/Console
+URL: http://htty.github.com/
+BuildRequires: rpmbuild(macros) >= 1.484
+BuildRequires: ruby >= 1:1.8.7
+BuildRequires: ruby-modules
+%{?ruby_mod_ver_requires_eq}
+#BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to be placed there. we're not noarch only because of ruby packaging
+%define _enable_debug_packages 0
+
+%description
+htty is a console application for interacting with HTTP servers. It’s
+something of a cross between curl and the Lynx browser.
+
+%package rdoc
+Summary: HTML documentation for %{name}
+Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{name}
+Group: Documentation
+Requires: ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for %{name}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{name}.
+
+%package ri
+Summary: ri documentation for %{name}
+Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{name}
+Group: Documentation
+Requires: ruby
+
+%description ri
+ri documentation for %{name}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{name}.
+
+%prep
+%setup -q -c
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README.markdown -o -print | xargs touch --reference %{SOURCE0}
+
+%patch0 -p0
+
+%build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+rm ri/created.rid
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir},%{_bindir}}
+install bin/htty $RPM_BUILD_ROOT%{_bindir}
+
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+cp -a VERSION $RPM_BUILD_ROOT%{ruby_rubylibdir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.markdown MIT-LICENSE.markdown History.markdown
+%attr(755,root,root) %{_bindir}/htty
+%{ruby_rubylibdir}/%{name}.rb
+%{ruby_rubylibdir}/%{name}
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/HTTY
+%{ruby_ridir}/cache.ri
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/10/16 13:04:21 caleb
+- Initial add
+
================================================================
More information about the pld-cvs-commit
mailing list