Search
j0ke.net Open Build Service
>
Projects
>
server:search
>
hyperestraier
> hyperestraier.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File hyperestraier.spec of Package hyperestraier (Revision 8)
Currently displaying revision
8
,
show latest
# norootforbuild %define _prefix /usr %if %suse_version >= 930 && %suse_version <= 1010 %define has_java 1 %endif %if %suse_version >= 1000 %define has_ruby_devel 1 %endif Name: hyperestraier Version: 1.4.10 %define wrappers_version 0.0.15 %define qdbm_version 1.8.65 Release: 0 Summary: Full-Text Search System for Communities Source: http://hyperestraier.sourceforge.net/hyperestraier-%{version}.tar.gz Source1: http://hyperestraier.sourceforge.net/binding/hyper_estraier_wrappers-%{wrappers_version}.tar.gz Patch1: %{name}-javahome.diff Patch2: %{name}-wrappers-python.diff Patch3: %{name}-wrappers-perl.diff Patch4: %{name}-wrappers-ruby.diff Patch5: hyperestraier-fix-paths.patch URL: http://hyperestraier.sourceforge.net/ Group: Productivity/Networking/Web/Utilities License: LGPL BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: qdbm qdbm-devel >= %{qdbm_version} BuildRequires: make gcc gcc-c++ libstdc++ libstdc++-devel zlib zlib-devel BuildRequires: swig %if %{?has_java:1}0 BuildRequires: jpackage-utils update-alternatives %if %suse_version >= 930 BuildRequires: java-1_5_0-sun java-1_5_0-sun-devel %else BuildRequires: java-1_4_2-sun java-1_4_2-sun-devel %endif %define java_home %{_libdir}/jvm/java %endif BuildRequires: perl python python-devel ruby %if %{?has_ruby_devel:1}0 BuildRequires: ruby-devel %endif BuildRequires: autoconf automake libtool %description Hyper Estraier is a full-text search system. You can search lots of documents for some documents including specified words. If you run a web site, it is useful as your own search engine for pages in your site. Also, it is useful as search utilities of mail boxes and file servers. The characteristic of Hyper Estraier is the following. - High performance of search - High scalability of target documents - Perfect recall ratio by N-gram method - Phrase search, attribute search, and similarity search - Multilingualism with Unicode - Independent of file format and repository - Simple and powerful API - Supporting P2P architecture Hyper Estraier is an open-source software released under the terms of the GNU Lesser General Public License. %package devel Summary: Development environment for hyperestraier Requires: hyperestraier = %{version} Group: Development/Libraries/C and C++ %description devel Development environment for hyperestraier %package -n ruby-%{name} Summary: Ruby bindings for hyperestraier Requires: hyperestraier = %{version} Requires: ruby ruby-qdbm Provides: %{name}-ruby = %{version} Group: Development/Libraries/Ruby %description -n ruby-%{name} Ruby bindings for hyperestraier %if %{?has_java:1}0 %package java-native Summary: Java JNI bindings for hyperestraier Requires: hyperestraier = %{version} Requires: java qdbm-java Group: Development/Libraries/Java %description java-native Java JNI bindings for hyperestraier %package java Summary: Pure Java bindings for hyperestraier Requires: hyperestraier = %{version} Requires: java qdbm-java Group: Development/Libraries/Java %description java Pure Java bindings for hyperestraier %endif # has_java %package -n python-%{name} Summary: Python Bindings for hyperestraier Requires: python >= %{py_ver} Requires: hyperestraier = %{version} Provides: %{name}-python = %{version} Group: Development/Libraries/Python %description -n python-%{name} Python wrapper/bindings for hyperestraier %package -n perl-%{name} Summary: Perl Bindings for hyperestraier Requires: perl Requires: hyperestraier = %{version} Requires: perl-qdbm Provides: %{name}-perl = %{version} Group: Development/Librairies/Perl %description -n perl-%{name} Perl wrapper/bindings for hyperestraier %if %suse_version >= 930 %debug_package %endif %prep %setup -q -b 1 %patch1 pushd "../hyper_estraier_wrappers-%{wrappers_version}" %patch2 %patch3 %patch4 popd %patch5 %build autoreconf -fiv %configure \ --enable-zlib \ --disable-mecab pushd rubynative %configure popd %if %{?has_java:1}0 pushd javanative export JAVA_HOME="%{java_home}" export MYJAVAHOME=$JAVA_HOME %configure popd pushd javapure export JAVA_HOME="%{java_home}" export MYJAVAHOME=$JAVA_HOME %configure popd %endif # has_java %__grep -l -r /usr/local . | sort | uniq \ | while read docfile; do %__sed -i.orig -e 's|/usr/local|/usr|g' "$docfile" done %__make %{?jobs:-j%{jobs}} %__make %{?jobs:-j%{jobs}} -C rubynative %if %{?has_java:1}0 export JAVA_HOME="%{java_home}" %{__make} -C javanative \ MYJAVAHOME="%{java_home}" \ JAVAC="%{java_home}/bin/javac" \ JAR="%{java_home}/bin/jar" \ JAVAH="%{java_home}/bin/javah" \ JAVADOC="%{java_home}/bin/javadoc" \ JAVARUN="%{java_home}/bin/java" %__make -C javapure \ MYJAVAHOME="%{java_home}" \ JAVAC="%{java_home}/bin/javac" \ JAR="%{java_home}/bin/jar" \ JAVAH="%{java_home}/bin/javah" \ JAVADOC="%{java_home}/bin/javadoc" \ JAVARUN="%{java_home}/bin/java" %endif # has_java # wrappers are built after hyperestraier makeinstall %install %makeinstall %__make -C rubynative DESTDIR="%{buildroot}" install %if %{?has_java:1}0 export JAVA_HOME="%{java_home}" %__make -C javanative DESTDIR="%{buildroot}" install %__install -d -m 0755 "%{buildroot}%{_javadir}" %__mv "%{buildroot}%{_libdir}/estraier.jar" "%{buildroot}%{_javadir}/" %__make -C javapure DESTDIR="%{buildroot}" install %__install -d -m 0755 "%{buildroot}%{_javadir}" %__mv "%{buildroot}%{_libdir}/estraierpure.jar" "%{buildroot}%{_javadir}/" %endif # has_java %__install -d -m 0755 "%{buildroot}%{_docdir}/%{name}" %__install -m 0644 \ COPYING ChangeLog README THANKS \ "%{buildroot}%{_docdir}/%{name}/" %__cp -a example "%{buildroot}%{_docdir}/%{name}/" %__cp -a increm "%{buildroot}%{_docdir}/%{name}/" # build wrappers using hyperestraier files (headers+libs) under buildroot pushd "../hyper_estraier_wrappers-%{wrappers_version}" CFLAGS="-I%{buildroot}%{_includedir} %{optflags}" \ LDFLAGS="-L%{buildroot}%{_libdir} `%{buildroot}%{_bindir}/estconfig --libs`" \ %__python ./setup.py build_ext --swig-cpp %__python ./setup.py build %__python ./setup.py install --prefix="%{_usr}" --root="%{buildroot}" --record-rpm %{name}.files %__cp hyperestraier.files ../%{name}-%{version}/hyperestraier.files pushd perl %__sed -i.bak -e "s,@@BINDIR@@,%{buildroot}%{_bindir},g;s,@@LIBDIR@@,%{buildroot}%{_libdir},g" Makefile.PL %__perl Makefile.PL PREFIX="%{_prefix}" %__make \ CC="%__cc" \ INC="-I%{buildroot}%{_includedir}" \ EXTRALIBS="-lstdc++ -L%{buildroot}%{_libdir} `%{buildroot}%{_bindir}/estconfig --libs`" %perl_make_install %perl_process_packlist popd # perl pushd ruby ruby ./extconf.rb \ --with-estraier-dir="%{buildroot}%{_prefix}" \ --with-estraier-lib="%{buildroot}%{_libdir}" \ --with-estraier-include="%{buildroot}%{_includedir}" %__make %makeinstall popd # ruby popd # wrappers %if %suse_version < 930 %__strip "%{buildroot}%{_bindir}"/* \ "%{buildroot}%{_libdir}"/*.{so.*,a} \ "%{buildroot}%{_libexecdir}"/* \ "%{buildroot}%{_libdir}/ruby/site_ruby"/*/*.so \ "%{buildroot}%{_libdir}/ruby/site_ruby"/*/*/*.so \ "%{buildroot}%{py_sitedir}"/_*.so \ 2>/dev/null || : %endif %clean %__rm -rf "%{buildroot}" %files %defattr(-,root,root) %doc %{_docdir}/%{name}/COPYING %doc %{_docdir}/%{name}/ChangeLog %doc %{_docdir}/%{name}/README %doc %{_docdir}/%{name}/THANKS %doc %{_docdir}/%{name}/increm %{_bindir}/estbutler %{_bindir}/estcall %{_bindir}/estcmd %{_bindir}/estconfig %{_bindir}/estload %{_bindir}/estmaster %{_bindir}/estmttest %{_bindir}/estwaver %{_bindir}/estwolefind %{_libexecdir}/estseek.cgi %{_libexecdir}/estfraud.cgi %{_libexecdir}/estproxy.cgi %{_libexecdir}/estscout.cgi %{_libexecdir}/estsupt.cgi %{_libdir}/libestraier.so.* %{_datadir}/hyperestraier %doc %{_mandir}/man1/estcall.1* %doc %{_mandir}/man1/estcmd.1* %doc %{_mandir}/man1/estconfig.1* %doc %{_mandir}/man1/estmaster.1* %doc %{_mandir}/man1/estwaver.1* %files devel %defattr(-,root,root) %doc %{_docdir}/%{name}/example %{_includedir}/* %{_libdir}/libestraier.a %{_libdir}/libestraier.so %{_libdir}/pkgconfig/hyperestraier.pc %doc %{_mandir}/man3/estnode.3* %doc %{_mandir}/man3/estraier.3* %files -n ruby-%{name} %defattr(-,root,root) %{_bindir}/estcmd.rb %{_libdir}/ruby/site_ruby/*/estraier.so %{_libdir}/ruby/site_ruby/*/*/HyperEstraier.so %if %{?has_java:1}0 %files java-native %defattr(-,root,root) %{_libdir}/libjestraier.so.* %{_libdir}/libjestraier.so %{_javadir}/estraier.jar %files java %defattr(-,root,root) %{_javadir}/estraierpure.jar %endif # has_java %files -n python-%{name} -f hyperestraier.files %defattr(-,root,root) %files -n perl-%{name} %defattr(-,root,root) %{perl_vendorarch}/auto/HyperEstraier %{perl_vendorarch}/HyperEstraier.pm /var/adm/perl-modules/%{name} %changelog * Thu Mar 8 2007 Pascal Bleser <guru@unixtech.be> 1.4.10 - new upstream version * Sun Nov 12 2006 Pascal Bleser <guru@unixtech.be> 1.4.9 - new upstream version * Sat Nov 4 2006 Pascal Bleser <guru@unixtech.be> 1.4.8 - new upstream version * Sun Oct 29 2006 Pascal Bleser <guru@unixtech.be> 1.4.7 - new upstream version * Tue Oct 24 2006 Pascal Bleser <guru@unixtech.be> 1.4.6 - new upstream version - renamed -python, -perl and -ruby to python-, perl- and ruby- to comply with package naming guidelines - added missing requires for perl-qdbm in perl-hyperestraier - renamed qdbm requires for ruby (ruby-qdbm instead of qdbm-ruby) * Fri Sep 29 2006 - mrueckert@suse.de - fixed filelist for python 2.5 * Sun Sep 17 2006 Pascal Bleser <guru@unixtech.be> 1.4.4 - new upstream version * Mon Sep 11 2006 Pascal Bleser <guru@unixtech.be> 1.4.3 - new upstream version * Wed Sep 6 2006 Pascal Bleser <guru@unixtech.be> 1.4.2 - new upstream version * Sun Sep 3 2006 Pascal Bleser <guru@unixtech.be> 1.4.1 - new upstream version * Mon Aug 28 2006 Pascal Bleser <guru@unixtech.be> 1.4.0 - initial submission to the openSUSE Build Service # Local Variables: # mode: rpm-spec # tab-width: 3 # End: