[disable document generation with doxygen])],
, enable_doxygen_doc="yes")
-if test "x$enable_doxygen_doc" = "xyes"; then
- AC_CHECK_PROG(DOXYGEN,doxygen,doxygen,no)
- if test "x$DOXYGEN" = "xno"; then
+#if test "x$enable_doxygen_doc" = "xyes"; then
+# AC_CHECK_PROG(DOXYGEN,doxygen,doxygen,no)
+# if test "x$DOXYGEN" = "xno"; then
enable_doxygen_doc="no"
- else
- AC_MSG_CHECKING([doxygen >= $DOXYGEN_REQ_VER])
- DOXYGEN_VER=$($DOXYGEN --version)
- AX_COMPARE_VERSION([$DOXYGEN_VER],[ge],[DOXYGEN_REQ_VER],
- [AC_MSG_RESULT([$DOXYGEN_VER, yes])],
- [AC_MSG_RESULT([$DOXYGEN_VER, no, documentation disabled]); enable_doxygen_doc="no"])
- fi
-fi
+# else
+# AC_MSG_CHECKING([doxygen >= $DOXYGEN_REQ_VER])
+# DOXYGEN_VER=$($DOXYGEN --version)
+# AX_COMPARE_VERSION([$DOXYGEN_VER],[ge],[DOXYGEN_REQ_VER],
+# [AC_MSG_RESULT([$DOXYGEN_VER, yes])],
+# [AC_MSG_RESULT([$DOXYGEN_VER, no, documentation disabled]); enable_doxygen_doc="no"])
+# fi
+#fi
dnl where to install the doxygen-generated HTML doc
AC_ARG_WITH(html-docdir,
+
+%if "%{run_tests}" == "1"
+ %define __spec_check_pre %___build_pre
+ %define check %%check
+%endif
+
Name: libdatrie
-Version: 0.2.4
+Version: 0.2.10
Release: 0
License: LGPL-2.1
Summary: Double-Array Trie Library
cp %{SOURCE1001} .
%build
+./autogen.sh
+chmod +x ./configure
%configure \
--disable-static --with-pic \
--with-html-docdir=%{_docdir}/libdatrie/html
make %{?_smp_mflags}
+%check
+make check || exit 0
+
%install
%make_install
-# This is not installed where it should
-mv %{buildroot}%{_datadir}/doc/libdatrie/README.migration %{buildroot}%{_docdir}/libdatrie/
+%remove_docs
%post -p /sbin/ldconfig
%files
%manifest %{name}.manifest
%defattr(-,root,root)
-%doc COPYING
+%license COPYING
%{_libdir}/libdatrie.so.1*
%files devel
%manifest %{name}.manifest
%defattr(-,root,root)
+%{_bindir}/trietool
%{_bindir}/trietool-0.2
-%doc %{_mandir}/man*/trietool-0.2.*
%{_includedir}/datrie/
%{_libdir}/libdatrie.so
%{_libdir}/pkgconfig/datrie-0.2.pc
-%doc %{_docdir}/libdatrie/