blob: add594ed5a370232d4b72234b5b736032cf97cad (
plain)
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
|
# Note that this is NOT a relocatable package
%define name @PACKAGE@
%define version @VERSION@
%define release 1
%define prefix /usr
Summary: Redland Parser Toolkit for RDF (Raptor)
Name: %{name}
Version: %{version}
Release: %{release}
Prefix: %{prefix}
Copyright: LGPL/MPL
Group: System Environment/Libraries
Source: http://www.redland.opensource.ac.uk/dist/source/%{name}-%{version}.tar.gz
URL: http://www.redland.opensource.ac.uk/raptor/
BuildRoot: /tmp/%{name}-%{version}
Packager: Dave Beckett <Dave.Beckett@bristol.ac.uk>
Docdir: %{prefix}/doc
%description
Raptor contains the Redland RDF Parser that reads RDF encoded in XML.
%prep
%setup
%build
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} --sysconfdir=/etc
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --sysconfdir=/etc
fi
if [ "$SMP" != "" ]; then
make -k -j$SMP "MAKE=make -k -j $SMP"
else
make
fi
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT/etc install
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(0555, bin, bin)
%{prefix}/bin/rdfdump
%{prefix}/lib/libraptor.a
%defattr (0444, bin, bin, 0555)
%{prefix}/include/raptor.h
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%doc *.html
%changelog
|