summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris E Ferron <chris.e.ferron@linux.intel.com>2012-11-08 10:53:28 -0800
committerChris E Ferron <chris.e.ferron@linux.intel.com>2012-11-08 10:53:28 -0800
commit27603da43c6382b6fd6b587a35419e730fba7f12 (patch)
treebe598201d93be4609be8c22e1834a670d75df1ba
parent963b001863fd1d15bf527c475a7fe26ff5dc28be (diff)
downloadraptor-27603da43c6382b6fd6b587a35419e730fba7f12.tar.gz
raptor-27603da43c6382b6fd6b587a35419e730fba7f12.tar.bz2
raptor-27603da43c6382b6fd6b587a35419e730fba7f12.zip
inital packaging commit
-rw-r--r--packaging/baselibs.conf1
-rw-r--r--packaging/raptor.spec82
2 files changed, 83 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..66abc96
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1 @@
+libraptor
diff --git a/packaging/raptor.spec b/packaging/raptor.spec
new file mode 100644
index 0000000..58cc6c1
--- /dev/null
+++ b/packaging/raptor.spec
@@ -0,0 +1,82 @@
+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
+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}
+
+%build
+%configure --disable-gtk-doc --disable-static --with-pic --with-html-dir=%{_docdir}
+make %{?_smp_flags}
+
+%install
+%make_install
+mv %{buildroot}%{_docdir}/raptor2 %{buildroot}%{_docdir}/raptor-devel
+
+%check
+export MALLOC_CHECK_=2
+make check
+unset MALLOC_CHECK_
+
+%post -n libraptor -p /sbin/ldconfig
+
+%postun -n libraptor -p /sbin/ldconfig
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
+%{_bindir}/rapper
+%{_mandir}/man?/*
+
+%files -n libraptor-devel
+%defattr(-,root,root)
+%doc %{_docdir}/raptor-devel
+%{_libdir}/lib*.so
+%{_includedir}/*
+%{_libdir}/pkgconfig/*.pc
+
+%files -n libraptor
+%defattr(-,root,root)
+%{_libdir}/libraptor2.so.0*
+
+%changelog