Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
934d674900
!15 Replace buildrequire mysql-devel with mariadb-connector-c-devel
From: @wang--ge 
Reviewed-by: @starlet-dx 
Signed-off-by: @starlet-dx
2023-10-12 06:14:54 +00:00
wang--ge
2d99e74b2b replace buildrequires mysql-devel with mariadb-connector-c-devel 2023-10-12 09:46:17 +08:00
openeuler-ci-bot
3f63f6df15 !2 fix build error
Merge pull request !2 from jiaxiyajiaxiya/master
2019-12-13 10:09:38 +08:00
jiaxiya
faabb95a05 fix build error 2019-12-12 17:08:33 +08:00
openeuler-ci-bot
b75fc24371 !1 init commit
Merge pull request !1 from jiaxiyajiaxiya/master
2019-12-09 15:01:55 +08:00
jiaxiya
15cd0573a7 replace ldconfig_scriptlets 2019-12-09 15:00:29 +08:00
jiaxiya
b75a1ab98e replace isa to static 2019-12-09 14:43:51 +08:00
jiaxiya
f70c95961d add provides for devel 2019-12-09 14:17:47 +08:00
jiaxiya
fc7b943f6b address comments 2019-12-07 00:33:40 +08:00
jiaxiya
e4636f1409 init commit 2019-12-03 14:12:16 +08:00
2 changed files with 116 additions and 0 deletions

BIN
redland-1.0.17.tar.gz Normal file

Binary file not shown.

116
redland.spec Normal file
View File

@ -0,0 +1,116 @@
Name: redland
Version: 1.0.17
Release: 18
Summary: RDF iprovids support for the Resource Description Framework.
License: LGPLv2+ or ASL 2.0
URL: http://librdf.org/
Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
BuildRequires: curl-devel gcc-c++ libdb-devel libtool-ltdl-devel libxml2-devel >= 2.4.0 mariadb-connector-c-devel
BuildRequires: perl-interpreter postgresql-devel raptor2-devel rasqal-devel >= 0.9.26 sqlite-devel
Obsoletes: redland-virtuoso < 1.0.17-8
%description
Redland is a set of free software C libraries that provide
support for the Resource Description Framework (RDF).
%package devel
Summary: Libraries when using redland to do some developments
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static = %{version}-%{release}
%description devel
Libs when developing with Redland.
%package mysql
Summary: Redland MySQL storage
Requires: %{name}-static = %{version}-%{release}
%description mysql
Provides mysql as storage for in Redland
%package pgsql
Summary: Redland PostgreSQL storage
Requires: %{name}-static = %{version}-%{release}
%description pgsql
Provides PostgreSQL as storage for in Redland
%package_help
%prep
%autosetup -p1
%if "%{_libdir}" != "/usr/lib"
sed -i -e 's|"/lib /usr/lib|"%{_lib} %{_libdir}|' configure
%endif
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
%configure --enable-release --disable-static --with-virtuoso=no
%make_build
%install
%make_install
%delete_la
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -p /sbin/ldconfig devel
%postun -p /sbin/ldconfig devel
%post -p /sbin/ldconfig mysql
%postun -p /sbin/ldconfig mysql
%post -p /sbin/ldconfig pgsql
%postun -p /sbin/ldconfig pgsql
%files
%doc AUTHORS NEWS README NOTICE TODO
%license COPYING COPYING.LIB LICENSE.txt LICENSE-2.0.txt
%{_bindir}/rdfproc
%{_bindir}/redland-db-upgrade
%{_libdir}/librdf.so.0*
%dir %{_datadir}/redland
%{_datadir}/redland/mysql-v1.ttl
%{_datadir}/redland/mysql-v2.ttl
%dir %{_libdir}/redland
%{_libdir}/redland/librdf_storage_sqlite.so
%files devel
%doc ChangeLog RELEASE.html
%{_bindir}/redland-config
%{_datadir}/redland/Redland.i
%{_datadir}/gtk-doc/
%{_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*
%{_mandir}/man1/redland-db-upgrade.1*
%{_mandir}/man1/rdfproc.1*
%{_mandir}/man3/redland.3*
%changelog
* Wed Oct 11 2023 Ge Wang <wang__ge@126.com> - 1.0.17-18
- Replace buildrequire mysql-devel with mariadb-connector-c-devel
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 1.0.17-17
- Package init