forked from dajobe/redland-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redland-bindings.spec.in
249 lines (176 loc) · 6.84 KB
/
redland-bindings.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# -*- RPM-SPEC -*-
# Note that this is NOT a relocatable package
%define name @PACKAGE@
%define version @VERSION@
%define release SNAP
%define prefix /usr
%define redland_version @REDLAND_VERSION@
# Installation directories for perl, python and ruby are host-specific
%define perl_sitearch %(eval "`perl -V:installsitearch`"; echo $installsitearch)
# Not %{_libdir} as on FC4 x86_64 it is the wrong place
%define python_libdir %{_prefix}/lib
%define ruby_dir %(ruby -rrbconfig -e "puts Config::CONFIG['archdir']")
%define ruby_libdir %(ruby -rrbconfig -e "puts Config::CONFIG['rubylibdir']")
Summary: Redland librdf Language Bindings
Name: %{name}
Version: %{version}
Release: %{release}
Prefix: %{_prefix}
License: LGPL/Apache 2
Group: Development/Libraries
Source: http://download.librdf.org/source/%{name}-%{version}.tar.gz
URL: http://librdf.org/
BuildRoot: /tmp/%{name}-%{version}
BuildRequires: redland-devel >= %{redland_version}
BuildRequires: perl >= 5.8.0
BuildRequires: python-devel >= 2.3.0
BuildRequires: ruby >= 1.8.0
BuildRequires: ruby-devel >= 1.8.0
Packager: Dave Beckett <[email protected]>
Docdir: %{prefix}/doc
Requires: redland >= %{redland_version}
Requires: ruby >= 1.8.0
%description
Redland librdf Language bindings provide high-level interfaces for
RDF (Resource Description Framework) implemented on top of the
Redland librdf library which provides an object-based RDF API,
supports for syntaxes and triple stores.
%package -n redland-perl
Summary: Perl modules for the Redland librdf RDF library
Group: Development/Libraries
Requires: redland = %{redland_version}
%description -n redland-perl
The redland-perl package contains the parts of Redland librdf that provide
an interface to Perl.
%package -n redland-python
Summary: Python modules for the Redland librdf RDF library
Group: Development/Libraries
Requires: redland = %{redland_version}
%description -n redland-python
The redland-python package contains the parts of Redland librdf that provide
an interface to Python.
%package -n redland-ruby
Summary: Ruby modules for the Redland librdf RDF library
Group: Development/Libraries
Requires: redland = %{redland_version}
%description -n redland-ruby
The redland-ruby package contains the parts of Redland librdf that provide
an interface to Ruby.
%prep
%setup
%build
# Force use of default python
PYTHON=python
export PYTHON
%configure --enable-release
cd perl
%{__make} Makefile.perl PERL_MAKEMAKER_ARGS="PREFIX=$RPM_BUILD_ROOT/%{_prefix} SYSCONFDIR=$RPM_BUILD_ROOT/%{_sysconfdir} INST_PREFIX=%{_prefix} INST_SYSCONFDIR=%{_sysconfdir}"
%{__make}
cd ..
cd python
%{__make}
cd ..
cd ruby
%{__make}
cd ..
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
cd perl
%{__make} prefix=$RPM_BUILD_ROOT%{prefix} exec_prefix=$RPM_BUILD_ROOT%{prefix} bindir=$RPM_BUILD_ROOT%{prefix}/bin sbindir=$RPM_BUILD_ROOT%{prefix}/sbin sysconfdir=$RPM_BUILD_ROOT/etc datadir=$RPM_BUILD_ROOT%{prefix}/share includedir=$RPM_BUILD_ROOT%{prefix}/include libdir=$RPM_BUILD_ROOT%{_libdir} libexecdir=$RPM_BUILD_ROOT%{prefix}/libexec localstatedir=$RPM_BUILD_ROOT/var sharedstatedir=$RPM_BUILD_ROOT%{prefix}/com mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{prefix}/share/info install
find $RPM_BUILD_ROOT -name perllocal.pod -exec rm -v {} \;
find $RPM_BUILD_ROOT%{perl_sitearch} -name \*.so -exec chmod 755 {} \;
cd ..
cd python
%{__make} install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT%{prefix} -name "*.py[co]" -exec rm -f {} \;
cd ..
cd ruby
mkdir -p $RPM_BUILD_ROOT%{ruby_dir}
mkdir -p $RPM_BUILD_ROOT%{ruby_libdir}
%{__make} install DESTDIR=$RPM_BUILD_ROOT
cd ..
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files -n redland-perl
%defattr(-, bin, bin)
%{perl_sitearch}/auto
%{perl_sitearch}/RDF/Redland
%{perl_sitearch}/RDF/Redland.pm
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%doc LICENSE-2.0.txt NOTICE
%doc %{_mandir}/man3/RDF::Redland*.3pm*
%doc perl/example.pl
%files -n redland-python
%defattr(-, bin, bin)
%{python_libdir}/python*/site-packages/RDF.py
%{python_libdir}/python*/site-packages/Redland.so*
%doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt
%doc README NEWS LICENSE.txt NOTICE
%doc docs/pydoc/RDF.html python/example.py
%files -n redland-ruby
%defattr(-, bin, bin)
%{ruby_dir}/redland.so
%{ruby_libdir}/rdf/*.rb
%{ruby_libdir}/rdf/redland/*.rb
%{ruby_libdir}/rdf/redland/schemas/*.rb
%doc AUTHORS COPYING COPYING.LIB LICENSE-2.0.txt
%doc README NEWS LICENSE.txt NOTICE
%doc ruby/example.rb
%post
%postun
%changelog
* Sat Apr 29 2006 Dave Beckett <[email protected]>
- Require ruby since the rpm file needs it
* Thu Aug 11 2005 Dave Beckett <[email protected]>
- Define perl_sitearch, python_libdir, ruby_dir and ruby_libdir at
rpm build time.
- Split build requirements out and declare minimum versions
- Use %configure and %{__make}
* Wed Nov 3 2004 Dave Beckett <[email protected]>
- Added redland-ruby include wrapper classes
- BuildRequires: perl, python-devel, ruby-devel
* Mon Nov 2 2004 Dave Beckett <[email protected]>
- License now LGPL/Apache 2
- Added LICENSE-2.0.txt and NOTICE
* Mon Jul 19 2004 Dave Beckett <[email protected]>
- split redland to give redland-bindings
- requires redland 0.9.17
* Mon Jul 12 2004 Dave Beckett <[email protected]>
- put /usr/share/redland/Redland.i in redland-devel
* Wed May 5 2004 Dave Beckett <[email protected]>
- require raptor 1.3.0
- require rasqal 0.2.0
* Fri Jan 30 2004 Dave Beckett <[email protected]>
- require raptor 1.2.0
- update for removal of python distutils
- require python 2.2.0+
- require perl 5.8.0+
- build and require mysql
- do not build and require threestore
* Sun Jan 4 2004 Dave Beckett <[email protected]>
- added redland-python package
- export some more docs
* Mon Dec 15 2003 Dave Beckett <[email protected]>
- require raptor 1.1.0
- require libxml 2.4.0 or newer
- added pkgconfig redland.pc
- split redland/devel package shared libs correctly
* Mon Sep 8 2003 Dave Beckett <[email protected]>
- require raptor 1.0.0
* Thu Sep 4 2003 Dave Beckett <[email protected]>
- added rdfproc
* Thu Aug 28 2003 Dave Beckett <[email protected]>
- patches added post 0.9.13 to fix broken perl UNIVERSAL::isa
* Thu Aug 21 2003 Dave Beckett <[email protected]>
- Add redland-db-upgrade.1
- Removed duplicate perl CORE shared objects
* Sun Aug 17 2003 Dave Beckett <[email protected]>
- Updates for new perl module names.
* Tue Apr 22 2003 Dave Beckett <[email protected]>
- Updated for Redhat 9, RPM 4
* Fri Feb 12 2003 Dave Beckett <[email protected]>
- Updated for redland 0.9.12
* Fri Jan 4 2002 Dave Beckett <[email protected]>
- Updated for new Perl module names
* Fri Sep 14 2001 Dave Beckett <[email protected]>
- Added shared libraries