diff --git a/xapian-core-1.4.9.tar.xz b/xapian-core-1.4.9.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..5b41e32b3962e036e1726a820d7a41c33c702e37 Binary files /dev/null and b/xapian-core-1.4.9.tar.xz differ diff --git a/xapian-core.spec b/xapian-core.spec new file mode 100644 index 0000000000000000000000000000000000000000..231e9cd6bc5fa2fd3018d14c7825eb49fb0baf1f --- /dev/null +++ b/xapian-core.spec @@ -0,0 +1,84 @@ +Name: xapian-core +Version: 1.4.9 +Release: 2 +Summary: An Open Source Probabilistic Information Retrieval Library +License: GPLv2+ +URL: http://www.xapian.org/ +Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz +BuildRequires: gcc-c++ libuuid-devel zlib-devel valgrind-devel +Provides: %{name}-libs = %{version}-%{release} +Obsoletes: %{name}-libs < %{version}-%{release} + +%description +Xapian is an Open Source Search Engine Library, released under the GPL v2+. +It is a highly adaptable toolkit which allows developers to easily add advanced +indexing and search facilities to their own applications. It has built-in +support for several families of weighting models and also supports a rich set +of boolean query operators. + +%package help +Summary: Help documentation for the %{name} + +%description help +Help documentation for the %{name}. + +%package devel +Summary: Files needed for building packages which use Xapian +Requires: %{name} = %{version}-%{release} +Requires: libuuid-devel + +%description devel +Xapian is an Open Source Search Engine Library, released under the GPL v2+. +It is a highly adaptable toolkit which allows developers to easily add advanced +indexing and search facilities to their own applications. It has built-in +support for several families of weighting models and also supports a rich set +of boolean query operators.This package provides the files needed for building +packages which use Xapian. + +%prep +%autosetup -p1 + +%build +%configure --disable-static \ +%ifnarch x86_64 +--disable-sse +%endif + +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%make_build V=1 + +%install +%make_install +%delete_la +rm -rf %{buildroot}%{_datadir}/doc/%{name} + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc AUTHORS COPYING +%{_bindir}/* +%{_datadir}/xapian-core/ +%{_libdir}/libxapian.so.* + + +%files devel +%doc HACKING PLATFORMS docs/*html docs/apidoc +%{_libdir}/libxapian.so +%{_libdir}/cmake/xapian +%{_libdir}/pkgconfig/xapian-core.pc +%{_datadir}/aclocal/xapian.m4 +%{_includedir}/xapian* + +%files help +%doc NEWS README +%{_mandir}/man1/* + + +%changelog +* Thu Dec 12 2019 likexin - 1.4.9-2 +- package init