|
@@ -1,28 +1,25 @@
|
|
-Summary: Redland RDF Application Framework
|
|
|
|
Name: redland
|
|
Name: redland
|
|
-Version: 1.0.10
|
|
+Summary: RDF Application Framework
|
|
-Release: 6%{?_dist_release}
|
|
+Version: 1.0.14
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
|
|
+License: LGPLv2+ or ASL 2.0
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: LGPL/Apache 2
|
|
|
|
URL: http://librdf.org/
|
|
URL: http://librdf.org/
|
|
|
|
|
|
Source: http://download.librdf.org/source/%{name}-%{version}.tar.gz
|
|
Source: http://download.librdf.org/source/%{name}-%{version}.tar.gz
|
|
|
|
|
|
-Patch50: redland-1.0.10-pkgconfig_requires_private.patch
|
|
|
|
-Patch51: redland-1.0.10-no_undefined.patch
|
|
|
|
-
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: curl-devel
|
|
BuildRequires: curl-devel
|
|
BuildRequires: db4-devel
|
|
BuildRequires: db4-devel
|
|
-BuildRequires: libxml2-devel >= 2.4.0
|
|
|
|
-BuildRequires: raptor-devel >= 1.4.17
|
|
|
|
-BuildRequires: rasqal-devel >= 0.9.16
|
|
|
|
-BuildRequires: perl >= 5.8.0
|
|
|
|
-BuildRequires: pkgconfig
|
|
|
|
BuildRequires: libiodbc-devel
|
|
BuildRequires: libiodbc-devel
|
|
-Requires: raptor >= 1.4.17
|
|
+BuildRequires: libtool-ltdl-devel
|
|
-Requires: rasqal >= 0.9.16
|
|
+BuildRequires: libxml2-devel >= 2.4.0
|
|
|
|
+BuildRequires: MySQL-devel
|
|
|
|
+BuildRequires: postgresql-devel
|
|
|
|
+BuildRequires: raptor2-devel
|
|
|
|
+BuildRequires: rasqal-devel >= 0.9.26
|
|
|
|
+BuildRequires: sqlite3-devel
|
|
|
|
|
|
%description
|
|
%description
|
|
Redland is a library that provides a high-level interface for RDF
|
|
Redland is a library that provides a high-level interface for RDF
|
|
@@ -32,53 +29,54 @@ storage and query languages. Redland is designed for developers to
|
|
provide RDF support in their applications as well as a core library
|
|
provide RDF support in their applications as well as a core library
|
|
for RDF developers to start with.
|
|
for RDF developers to start with.
|
|
|
|
|
|
|
|
+%package mysql
|
|
|
|
+Summary: MySQL storage support for Redland
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description mysql
|
|
|
|
+This package provides Redland's storage support for graphs in memory and
|
|
|
|
+persistently with MySQL files or URIs.
|
|
|
|
+
|
|
|
|
+%package pgsql
|
|
|
|
+Summary: PostgreSQL storage support for Redland
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description pgsql
|
|
|
|
+This package provides Redland's storage support for graphs in memory and
|
|
|
|
+persistently with PostgreSQL files or URIs.
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Libraries and header files for programs that use Redland.
|
|
Summary: Libraries and header files for programs that use Redland.
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
-Requires: raptor-devel >= 1.4.17
|
|
|
|
-Requires: rasqal-devel >= 0.9.16
|
|
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
Header files for development with Redland
|
|
Header files for development with Redland
|
|
|
|
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
-%patch50 -p1 -b .pkgconfig_requires_private
|
|
|
|
-%patch51 -p1 -b .no_undefined
|
|
|
|
-
|
|
|
|
# hack to nuke rpaths
|
|
# hack to nuke rpaths
|
|
%if "%{_libdir}" != "/usr/lib"
|
|
%if "%{_libdir}" != "/usr/lib"
|
|
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
|
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%build
|
|
%build
|
|
-# Force use of default python even if 2.0 is present
|
|
+%configure --enable-release --disable-static
|
|
-PYTHON=python
|
|
|
|
-export PYTHON
|
|
|
|
-
|
|
|
|
-%configure --enable-release \
|
|
|
|
- --with-raptor=system \
|
|
|
|
- --with-rasqal=system \
|
|
|
|
- --with-threestore=no \
|
|
|
|
- --with-mysql=no \
|
|
|
|
- --with-sqlite=no \
|
|
|
|
- --with-postgresql=no \
|
|
|
|
- --disable-static
|
|
|
|
|
|
|
|
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
|
|
+make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%makeinstall
|
|
+make install DESTDIR=$RPM_BUILD_ROOT
|
|
-
|
|
|
|
-find $RPM_BUILD_ROOT -print | xargs chmod u+w
|
|
|
|
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
+#unpackaged files
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
|
|
+find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
|
|
|
|
|
|
%clean
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
@@ -89,23 +87,32 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
|
|
+%doc AUTHORS COPYING COPYING.LIB LICENSE.txt NEWS README
|
|
-%doc LICENSE-2.0.txt NOTICE
|
|
+%doc LICENSE-2.0.txt NOTICE TODO
|
|
-%doc *.html
|
|
+%doc FAQS.html LICENSE.html NEWS.html README.html TODO.html
|
|
-%{_libdir}/librdf*.so.*
|
|
|
|
-%dir %{_libdir}/redland
|
|
|
|
-%{_libdir}/redland/*.so
|
|
|
|
%{_bindir}/rdfproc
|
|
%{_bindir}/rdfproc
|
|
%{_bindir}/redland-db-upgrade
|
|
%{_bindir}/redland-db-upgrade
|
|
|
|
+%{_libdir}/librdf.so.*
|
|
|
|
+%dir %{_libdir}/redland
|
|
|
|
+%{_libdir}/redland/librdf_storage_sqlite.so
|
|
|
|
+%{_libdir}/redland/librdf_storage_virtuoso.so
|
|
|
|
+%{_datadir}/redland/mysql-v1.ttl
|
|
|
|
+%{_datadir}/redland/mysql-v2.ttl
|
|
%{_mandir}/man1/rdfproc.1*
|
|
%{_mandir}/man1/rdfproc.1*
|
|
%{_mandir}/man1/redland-db-upgrade.1*
|
|
%{_mandir}/man1/redland-db-upgrade.1*
|
|
%{_mandir}/man3/redland.3*
|
|
%{_mandir}/man3/redland.3*
|
|
|
|
|
|
|
|
+%files mysql
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%{_libdir}/redland/librdf_storage_mysql.so
|
|
|
|
+
|
|
|
|
+%files pgsql
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%{_libdir}/redland/librdf_storage_postgresql.so
|
|
|
|
+
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
|
|
+%doc ChangeLog RELEASE.html
|
|
-%doc LICENSE-2.0.txt NOTICE
|
|
|
|
-%doc docs/README.html
|
|
|
|
%doc %{_datadir}/gtk-doc/html
|
|
%doc %{_datadir}/gtk-doc/html
|
|
%{_bindir}/redland-config
|
|
%{_bindir}/redland-config
|
|
%{_libdir}/librdf*.so
|
|
%{_libdir}/librdf*.so
|
|
@@ -116,7 +123,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
|
|
%{_includedir}/rdf_*.h
|
|
%{_includedir}/rdf_*.h
|
|
%{_mandir}/man1/redland-config.1*
|
|
%{_mandir}/man1/redland-config.1*
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Aug 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.14-1
|
|
|
|
+- new upstream release
|
|
|
|
+- added mysql, pgsql subpackages
|
|
|
|
+
|
|
* Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-6
|
|
* Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-6
|
|
- rebuilt with rpm-4.8.1
|
|
- rebuilt with rpm-4.8.1
|
|
|
|
|