packages: gist/gist.spec - noarch, fix shebang, build dir with project name
glen
glen at pld-linux.org
Mon Mar 22 14:21:42 CET 2010
Author: glen Date: Mon Mar 22 13:21:42 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- noarch, fix shebang, build dir with project name
---- Files affected:
packages/gist:
gist.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/gist/gist.spec
diff -u packages/gist/gist.spec:1.1 packages/gist/gist.spec:1.2
--- packages/gist/gist.spec:1.1 Mon Mar 22 13:42:43 2010
+++ packages/gist/gist.spec Mon Mar 22 14:21:37 2010
@@ -2,10 +2,7 @@
# TODO:
# - /usr/bin/gist:86: command not found: pbcopy
# which: no pbcopy in (/usr/local/bin:/usr/bin:/bin:/home/users/z/bin)
-# - cleanup? I have no experience with ruby.
-
%define commit 2c90f46
-
Summary: Command-line interface for gists.github.com
Name: gist
Version: 1.0.3
@@ -19,23 +16,23 @@
BuildRequires: ruby >= 1:1.8.6
BuildRequires: ruby-modules
%{?ruby_mod_ver_requires_eq}
-#BuildArch: noarch
+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
-Command-line interface for gists.github.com.
+Command-line interface for <gists.github.com>.
%prep
-%setup -q -n defunkt-%{name}-%{commit}
+%setup -qc
+mv defunkt-%{name}-%{commit}/* .
+
+# fix #!/usr/bin/env ruby -> #!/usr/bin/ruyu:
+%{__sed} -i -e '1s,^#!.*ruby,#!%{__ruby},' %{name}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
-
-cp gist $RPM_BUILD_ROOT%{_bindir}/gist
+install -p %{name} $RPM_BUILD_ROOT%{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -51,8 +48,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2010/03/22 13:21:37 glen
+- noarch, fix shebang, build dir with project name
+
Revision 1.1 2010/03/22 12:42:43 pawelz
- initial. Something like pastebinit, for gists.github.com.
- crude, based on tempate-specs/ruby.spec. Please review. I have no experience
-with ruby.
-
+ with ruby.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gist/gist.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list