summaryrefslogtreecommitdiff
path: root/packaging/raptor.spec
blob: 6822d3ff775210005dc378351b748518c50360ae (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
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
Name:           raptor
Version:        2.0.8
Release:        0
Summary:        RDF Parser Toolkit
License:        LGPL-2.1+ or GPL-2.0+ or Apache-2.0
Group:          System/Libraries
Url:            http://www.redland.opensource.ac.uk/raptor/
Source0:        %{name}2-%{version}.tar.gz
Source1:        baselibs.conf
Source1001: 	raptor.manifest
BuildRequires:  autoconf
BuildRequires:  curl-devel
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(libxml-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.

%package -n libraptor
Summary:        RDF Parser Toolkit
Group:          System/Libraries

%description -n libraptor
Raptor is the RDF Parser Toolkit for Redland that provides a set of
standalone RDF parsers, generating triples from RDF/XML or N-Triples.

%package -n libraptor-devel
Summary:        Development package for the raptor library
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       libraptor = %{version}
Requires:       raptor = %{version}
Provides:       raptor-devel = %{version}
Obsoletes:      raptor-devel < %{version}

%description -n libraptor-devel
This package contains the files needed to compile programs that use the
raptor library.

%prep
%setup -q -n %{name}2-%{version}
cp %{SOURCE1001} .

%build
%configure --disable-gtk-doc --disable-static --with-pic --with-html-dir=%{_docdir}
make %{?_smp_flags}

%check
export MALLOC_CHECK_=2
make check
unset MALLOC_CHECK_

%install
%make_install
rm -rf %{buildroot}/%{_docdir}
%remove_docs

%post -n libraptor -p /sbin/ldconfig

%postun -n libraptor -p /sbin/ldconfig



%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING COPYING.LIB LICENSE.txt 
%{_bindir}/rapper

%files -n libraptor-devel
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

%files -n libraptor
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/libraptor2.so.0*

%changelog