]> git.pld-linux.org Git - SPECS.git/blob - ruby-activerdf.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / ruby-activerdf.spec
1 Summary:        Ruby RDF binding and mapping library
2 Name:           ruby-activerdf
3 Version:        1.6.11
4 Release:        1
5 License:        Ruby's
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)
14
15 %description
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.
23
24 %prep
25 %setup -q -c -n activerdf-%{version}
26 tar xzf data.tar.gz
27 cp %{_datadir}/setup.rb .
28 %patch0 -p1
29
30 %build
31 ruby setup.rb config \
32         --rbdir=%{ruby_rubylibdir} \
33         --sodir=%{ruby_archdir}
34
35 ruby setup.rb setup
36
37 rdoc --op rdoc lib
38 rdoc --ri --op ri lib
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
43
44 ruby setup.rb install \
45         --prefix=$RPM_BUILD_ROOT
46
47 rm ri/created.rid
48 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc rdoc
56 %{ruby_rubylibdir}/active_rdf*
57 %{ruby_ridir}/*
This page took 0.456371 seconds and 3 git commands to generate.