- added
authoraredridel <aredridel@pld-linux.org>
Wed, 23 Mar 2005 18:23:28 +0000 (18:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fastcst.spec -> 1.1

fastcst.spec [new file with mode: 0644]

diff --git a/fastcst.spec b/fastcst.spec
new file mode 100644 (file)
index 0000000..f7d9196
--- /dev/null
@@ -0,0 +1,58 @@
+%define        ruby_ridir      %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
+%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+%define        ruby_archdir    %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+Summary:       Fast Changeset Tool
+Name:          fastcst
+Version:       0.5.2
+Release:       1
+License:       GPL
+Group:         Development/Languages
+Source0:       http://www.zedshaw.com/projects/fastcst/%{name}-%{version}.tar.bz2
+# Source0-md5: c5f11c44c7290131b3569bf32a80b89e
+URL:           http://www.zedshaw.com/projects/fastcst/
+BuildRequires: ruby
+BuildRequires: ruby-devel
+Requires:      ruby
+Requires: ruby-RMail
+Requires: ruby-pluginfactory
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A fast suffix-tree based changeset tool.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+rm lib/pluginfactory.rb
+
+ruby setup.rb config \
+       --rbdir=%{ruby_rubylibdir} \
+       --sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc -o rdoc lib --inline-source
+rdoc --ri lib -o ri
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
+
+ruby setup.rb install --prefix=$RPM_BUILD_ROOT
+
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README* rdoc
+%attr(755,root,root) %{_bindir}/fcst
+%attr(755,root,root) %{ruby_archdir}/suffix_array.so
+%{ruby_rubylibdir}/guid.rb
+%{ruby_rubylibdir}/sadelta.rb
+%{ruby_rubylibdir}/fastcst
+%{ruby_ridir}/*
This page took 0.084447 seconds and 4 git commands to generate.