-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathlibraptor2.spec
155 lines (129 loc) · 4.12 KB
/
libraptor2.spec
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
Summary: Raptor RDF Parser Toolkit
Summary(pl.UTF-8): Raptor - zestaw narzędzi do analizy RDF
Name: libraptor2
# the real name is raptor2, but it follows libraptor (named as such because raptor was already occupied)
%define rname raptor2
Version: 2.0.16
Release: 3
License: LGPL v2.1+ or GPL v2+ or Apache v2.0+
Group: Libraries
Source0: https://download.librdf.org/source/%{rname}-%{version}.tar.gz
# Source0-md5: 0a71f13b6eaa0a04bf411083d89d7bc2
Patch0: %{rname}-libxml2.patch
URL: https://librdf.org/raptor/
BuildRequires: autoconf >= 2.62
BuildRequires: automake >= 1:1.11
# WWW library can be one of: curl(default),xml,libfetch,none
BuildRequires: curl-devel >= 7.12.0
BuildRequires: gtk-doc-automake >= 1.3
BuildRequires: libicu-devel
BuildRequires: libtool >= 2:2
BuildRequires: libxml2-devel >= 1:2.6.8
BuildRequires: libxslt-devel >= 1.0.18
BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: yajl-devel
Requires: curl-libs >= 7.12.0
Requires: libxml2 >= 1:2.6.8
Requires: libxslt >= 1.0.18
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Raptor is the RDF Parser Toolkit for Redland written in C consisting
of two parsers for the RDF/XML and N-Triples syntaxes for RDF. Raptor
is designed to work efficiently when used with Redland but is entirely
separate.
%description -l pl.UTF-8
Raptor to zestaw narzędzi do analizy RDF dla Redland napisany w C,
składający się z dwóch analizatorów dla składni RDF/XML i N-Triplets
dla RDF. Raptor został zaprojektowany, by pracować wydajnie, jeśli
jest używany z Redland, ale jest całkowicie oddzielny.
%package devel
Summary: libraptor2 library header files
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libraptor2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: curl-devel >= 7.12.0
Requires: libicu-devel
Requires: libxml2-devel >= 1:2.6.8
Requires: libxslt-devel >= 1.0.18
Requires: yajl-devel
%description devel
libraptor2 library header files.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki libraptor2.
%package static
Summary: Static libraptor2 library
Summary(pl.UTF-8): Statyczna biblioteka libraptor2
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static libraptor2 library.
%description static -l pl.UTF-8
Statyczna biblioteka libraptor2.
%package apidocs
Summary: libraptor2 API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki libraptor2
Group: Documentation
Requires: gtk-doc-common
BuildArch: noarch
%description apidocs
libraptor2 API documentation.
%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki libraptor2.
%package rapper
Summary: Raptor RDF parser test program
Summary(pl.UTF-8): Testowy program parsera Raptor RDF
Group: Applications
Requires: %{name} = %{version}-%{release}
Obsoletes: libraptor-rapper < 2.0.0
Obsoletes: redland-rapper < 0.9.18
%description rapper
Raptor RDF parser test program.
%description rapper -l pl.UTF-8
Testowy program parsera Raptor RDF.
%prep
%setup -q -n %{rname}-%{version}
%patch0 -p1
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
# avoid using parsedate from libinn, use curl_getdate instead
%configure \
ac_cv_header_libinn_h=no \
--enable-release \
--with-html-dir=%{_gtkdocdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libraptor2.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog LICENSE.txt NEWS NOTICE README RELEASE.html UPGRADING.html
%attr(755,root,root) %{_libdir}/libraptor2.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libraptor2.so.0
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libraptor2.so
%{_includedir}/raptor2
%{_pkgconfigdir}/raptor2.pc
%{_mandir}/man3/libraptor2.3*
%files static
%defattr(644,root,root,755)
%{_libdir}/libraptor2.a
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/raptor2
%files rapper
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/rapper
%{_mandir}/man1/rapper.1*