packages: ruby-sinatra/ruby-sinatra.spec (NEW) - adapterized

aredridel aredridel at pld-linux.org
Sat Sep 11 06:10:35 CEST 2010


Author: aredridel                    Date: Sat Sep 11 04:10:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- adapterized

---- Files affected:
packages/ruby-sinatra:
   ruby-sinatra.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ruby-sinatra/ruby-sinatra.spec
diff -u /dev/null packages/ruby-sinatra/ruby-sinatra.spec:1.1
--- /dev/null	Sat Sep 11 06:10:35 2010
+++ packages/ruby-sinatra/ruby-sinatra.spec	Sat Sep 11 06:10:30 2010
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+
+%define gitrev c496254
+%define gitauthor sinatra
+%define pkgname sinatra
+
+Summary:	Classy web-development dressed in a DSL
+Name:		ruby-%{pkgname}
+Version:	1.0
+Release:	1
+License:	MIT
+Group:		Development/Tools
+Source0:	http://download.github.com/%{gitauthor}-%{pkgname}-%{version}-0-g%{gitrev}.tar.gz
+# Source0-md5:	c0f9693865054a453120d9ebb7a21000
+URL:		http://sinatrarb.com/
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	ruby
+BuildRequires:	ruby-modules
+BuildRequires:	setup.rb = 3.4.1
+%{?ruby_mod_ver_requires_eq}
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sinatra is a DSL for quickly creating web applications in Ruby with
+minimal effort
+
+%prep
+%setup -q -n %{gitauthor}-%{pkgname}-%{gitrev}
+cp %{_datadir}/setup.rb .
+ruby setup.rb config \
+	--installdirs=std
+ruby setup.rb setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_rubylibdir}/sinatra.rb
+%{ruby_rubylibdir}/sinatra
+
+%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/09/11 04:10:30  aredridel
+- adapterized
+
================================================================


More information about the pld-cvs-commit mailing list