redland/redland.spec

129 lines
3.3 KiB
RPMSpec
Raw Normal View History

2019-12-03 14:12:16 +08:00
Name: redland
Version: 1.0.17
Release: 20
2019-12-03 14:12:16 +08:00
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
Patch0: 0001-Fix-unreachable-codes-break-after-return-mostly.patch
Patch6000: 0001-Add-Wunreachable-code.patch
2019-12-07 00:33:40 +08:00
BuildRequires: curl-devel gcc-c++ libdb-devel libtool-ltdl-devel libxml2-devel >= 2.4.0 mysql-devel
2022-03-05 08:24:59 +00:00
BuildRequires: perl-interpreter postgresql-devel raptor2-devel rasqal-devel >= 0.9.26
BuildRequires: mariadb-connector-c-devel sqlite-devel libpq-devel
2019-12-03 14:12:16 +08:00
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
2019-12-07 00:33:40 +08:00
Summary: Libraries when using redland to do some developments
2019-12-09 14:43:51 +08:00
Provides: %{name}-static = %{version}-%{release}
2019-12-12 17:08:33 +08:00
Obsoletes: %{name}-static = %{version}-%{release}
2019-12-03 14:12:16 +08:00
%description devel
2019-12-07 00:33:40 +08:00
Libs when developing with Redland.
2019-12-03 14:12:16 +08:00
%package mysql
2019-12-07 00:33:40 +08:00
Summary: Redland MySQL storage
2019-12-09 14:43:51 +08:00
Requires: %{name}-static = %{version}-%{release}
2019-12-03 14:12:16 +08:00
%description mysql
2019-12-07 00:33:40 +08:00
Provides mysql as storage for in Redland
2019-12-03 14:12:16 +08:00
%package pgsql
2019-12-07 00:33:40 +08:00
Summary: Redland PostgreSQL storage
2019-12-09 14:43:51 +08:00
Requires: %{name}-static = %{version}-%{release}
2019-12-03 14:12:16 +08:00
%description pgsql
2019-12-07 00:33:40 +08:00
Provides PostgreSQL as storage for in Redland
2019-12-03 14:12:16 +08:00
2019-12-07 00:33:40 +08:00
%package_help
2019-12-03 14:12:16 +08:00
%prep
2019-12-07 00:33:40 +08:00
%autosetup -p1
2019-12-03 14:12:16 +08:00
%if "%{_libdir}" != "/usr/lib"
2019-12-07 00:33:40 +08:00
sed -i -e 's|"/lib /usr/lib|"%{_lib} %{_libdir}|' configure
2019-12-03 14:12:16 +08:00
%endif
%build
2022-03-05 08:24:59 +00:00
%define distrooptions --with-sqlite --with-mysql --with-postgresql
2019-12-07 00:33:40 +08:00
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
2022-03-05 08:24:59 +00:00
%configure --enable-release --disable-static --with-virtuoso=no %{distrooptions}
2019-12-03 14:12:16 +08:00
%make_build
%install
%make_install
%delete_la
%check
make check
2019-12-09 15:00:29 +08:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2019-12-12 17:08:33 +08:00
%post -p /sbin/ldconfig devel
%postun -p /sbin/ldconfig devel
2019-12-09 15:00:29 +08:00
%post -p /sbin/ldconfig mysql
%postun -p /sbin/ldconfig mysql
%post -p /sbin/ldconfig pgsql
%postun -p /sbin/ldconfig pgsql
2019-12-03 14:12:16 +08:00
%files
2019-12-07 00:33:40 +08:00
%doc AUTHORS NEWS README NOTICE TODO
2019-12-03 14:12:16 +08:00
%license COPYING COPYING.LIB LICENSE.txt LICENSE-2.0.txt
%{_bindir}/rdfproc
%{_bindir}/redland-db-upgrade
2019-12-07 00:33:40 +08:00
%{_libdir}/librdf.so.0*
2019-12-03 14:12:16 +08:00
%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/
2019-12-07 00:33:40 +08:00
%{_includedir}/*.h
2019-12-03 14:12:16 +08:00
%{_libdir}/librdf.so
%{_libdir}/pkgconfig/redland.pc
2019-12-07 00:33:40 +08:00
%files mysql
%{_libdir}/redland/librdf_storage_mysql.so
%files pgsql
%{_libdir}/redland/librdf_storage_postgresql.so
2019-12-03 14:12:16 +08:00
%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
* Tue Jul 18 2023 caofei <caofei@xfusion.com> - 1.0.17-20
- Add -Wunreachable-code
* Tue Jan 17 2023 caofei <caofei@xfusion.com> - 1.0.17-19
- Fix unreachable codes - break after return mostly
2022-03-05 08:24:59 +00:00
* Sat Mar 5 2022 duyiwei <duyiwei@kylinos.cn> - 1.0.17-18
- add support of sqlite and mariadb
2019-12-07 00:33:40 +08:00
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 1.0.17-17
2019-12-03 14:12:16 +08:00
- Package init