1 Summary: Ruby RDF binding and mapping library
6 Group: Development/Languages
7 Source0: http://gems.rubyforge.org/gems/activerdf-%{version}.gem
8 # Source0-md5: 1f4904cbafd17fef7ac46213eec377be
9 Patch0: %{name}-nogems.patch
10 URL: http://activerdf.rubyforge.org
11 BuildRequires: rpmbuild(macros) >= 1.277
12 BuildRequires: setup.rb >= 3.4.1
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 ActiveRDF is a library for accessing RDF data from Ruby programs. It
17 can be used as data layer in Ruby-on-Rails, similar to ActiveRecord
18 (which provides an O/R mapping to relational databases). ActiveRDF in
19 RoR allows you to create semantic web applications very rapidly.
20 ActiveRDF gives you a Domain Specific Language (DSL) for your RDF
21 model: you can address RDF resources, classes, properties, etc.
22 programmatically, without queries.
25 %setup -q -c -n activerdf-%{version}
27 cp %{_datadir}/setup.rb .
31 ruby setup.rb config \
32 --rbdir=%{ruby_rubylibdir} \
33 --sodir=%{ruby_archdir}
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
44 ruby setup.rb install \
45 --prefix=$RPM_BUILD_ROOT
48 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{ruby_rubylibdir}/active_rdf*