address comments
This commit is contained in:
parent
e4636f1409
commit
fc7b943f6b
81
redland.spec
81
redland.spec
@ -6,17 +6,8 @@ License: LGPLv2+ or ASL 2.0
|
||||
URL: http://librdf.org/
|
||||
Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: curl-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libdb-devel
|
||||
BuildRequires: libtool-ltdl-devel
|
||||
BuildRequires: libxml2-devel >= 2.4.0
|
||||
BuildRequires: mysql-devel
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: postgresql-devel
|
||||
BuildRequires: raptor2-devel
|
||||
BuildRequires: rasqal-devel >= 0.9.26
|
||||
BuildRequires: sqlite-devel
|
||||
BuildRequires: curl-devel gcc-c++ libdb-devel libtool-ltdl-devel libxml2-devel >= 2.4.0 mysql-devel
|
||||
BuildRequires: perl-interpreter postgresql-devel raptor2-devel rasqal-devel >= 0.9.26 sqlite-devel
|
||||
|
||||
Obsoletes: redland-virtuoso < 1.0.17-8
|
||||
|
||||
@ -25,44 +16,36 @@ Redland is a set of free software C libraries that provide
|
||||
support for the Resource Description Framework (RDF).
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and header files for programs that use Redland
|
||||
Summary: Libraries when using redland to do some developments
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description devel
|
||||
Header files for development with Redland.
|
||||
Libs when developing with Redland.
|
||||
|
||||
%package mysql
|
||||
Summary: Redland MySQL storage
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description mysql
|
||||
Provides mysql as storage for in Redland
|
||||
|
||||
%package pgsql
|
||||
Summary: Redland PostgreSQL storage
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description pgsql
|
||||
Provides PostgreSQL as storage for in Redland
|
||||
|
||||
%package_help
|
||||
|
||||
%package mysql
|
||||
Summary: MySQL storage support for Redland
|
||||
Requires: %{name}%{?_isa} = %{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
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%description pgsql
|
||||
This package provides Redland's storage support for graphs in memory and
|
||||
persistently with PostgreSQL files or URIs.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autosetup -p1
|
||||
|
||||
# hack to nuke rpaths
|
||||
%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
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
%configure \
|
||||
--enable-release \
|
||||
--disable-static \
|
||||
--with-virtuoso=no
|
||||
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
|
||||
%configure --enable-release --disable-static --with-virtuoso=no
|
||||
|
||||
%make_build
|
||||
|
||||
@ -77,14 +60,16 @@ make check
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
%ldconfig_scriptlets libs
|
||||
%ldconfig_scriptlets mysql
|
||||
%ldconfig_scriptlets pgsql
|
||||
|
||||
%files
|
||||
%doc AUTHORS NEWS README
|
||||
%doc NOTICE TODO
|
||||
%doc AUTHORS NEWS README NOTICE TODO
|
||||
%license COPYING COPYING.LIB LICENSE.txt LICENSE-2.0.txt
|
||||
%{_libdir}/librdf.so.0*
|
||||
%{_bindir}/rdfproc
|
||||
%{_bindir}/redland-db-upgrade
|
||||
%{_libdir}/librdf.so.0*
|
||||
%dir %{_datadir}/redland
|
||||
%{_datadir}/redland/mysql-v1.ttl
|
||||
%{_datadir}/redland/mysql-v2.ttl
|
||||
@ -96,12 +81,16 @@ make check
|
||||
%{_bindir}/redland-config
|
||||
%{_datadir}/redland/Redland.i
|
||||
%{_datadir}/gtk-doc/
|
||||
%{_includedir}/redland.h
|
||||
%{_includedir}/librdf.h
|
||||
%{_includedir}/rdf_*.h
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/librdf.so
|
||||
%{_libdir}/pkgconfig/redland.pc
|
||||
|
||||
%files mysql
|
||||
%{_libdir}/redland/librdf_storage_mysql.so
|
||||
|
||||
%files pgsql
|
||||
%{_libdir}/redland/librdf_storage_postgresql.so
|
||||
|
||||
%files help
|
||||
%doc FAQS.html LICENSE.html NEWS.html README.html TODO.html
|
||||
%{_mandir}/man1/redland-config.1*
|
||||
@ -109,12 +98,8 @@ make check
|
||||
%{_mandir}/man1/rdfproc.1*
|
||||
%{_mandir}/man3/redland.3*
|
||||
|
||||
%files mysql
|
||||
%{_libdir}/redland/librdf_storage_mysql.so
|
||||
|
||||
%files pgsql
|
||||
%{_libdir}/redland/librdf_storage_postgresql.so
|
||||
|
||||
%changelog
|
||||
* Sat Nov 30 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.17-17
|
||||
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 1.0.17-17
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user