# %define date 20090623 %define revision 6233 Name: yacy Version: 0.90 Release: 1%{?dist} Summary: Peer-to-peer index sharing web search engine Group: Applications/Internet License: GPLv2+ URL: http://yacy.net/ #Source0: http://yacy.net/release/%{name}_v%{version}_%{date}_%{revision}.tar.gz # svn export -r%{revision} svn://svn.berlios.de/yacy/trunk Source0: %{name}-r%{revision}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: ant BuildRequires: junit Requires: ant Requires: bouncycastle Requires: bouncycastle-mail Requires: classpathx-jaf Requires: java >= 1:1.6.0 Requires: jpackage-utils Requires: jakarta-commons-codec Requires: jakarta-commons-httpclient Requires: jakarta-commons-fileupload Requires: jakarta-commons-io Requires: jakarta-commons-logging Requires: jakarta-oro Requires: jsch Requires: log4j Requires: mysql-connector-java Requires: tomcat5-servlet-2.4-api Requires: xerces-j2 ### Missing ## JPackage # Requires: pdfbox # Requires: fontbox # Requires: jakarta-poi ## Wild Web # Requires: ./lib/commons-jxpath-1.1.jar # Requires: ./lib/jrpm-SNAPSHOT.jar # Requires: ./lib/J7Zip-modified.jar # Requires: ./lib/webcat-0.1-swf.jar Requires(pre): shadow-utils Requires(post): chkconfig Requires(preun): chkconfig Requires(preun): initscripts Requires(postun): initscripts %description YaCy is a scalable web search engine with an integrated web crawler and content analysis and managements functions. One YaCy installation can store more than 20 million documents, but in a community of search peers YaCy can provide a search index of unlimited size. An index sharing method that works similar to peer-to-peer file sharing was implemented. YaCy shares web index information with other peers and is therefore resistant against censoring the same way as P2P file-sharing is resistant against deletion. %prep %setup -q -n %{name}-r%{revision} find -regextype posix-egrep -regex '.*\.(jar|class)' \ -exec %{__rm} -f '{}' \; %build export CLASSPATH="$(build-classpath pdfbox jakarta-poi J7Zip webcat \ jakarta-commons-httpclient jakarta-commons-fileupload \ jakarta-commons-jxpath):${CLASSPATH}" ant build-jar %install %{__rm} -rf $RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT%{_javadir} %{__cp} -p %{name}.jar \ $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar %clean %{__rm} -rf $RPM_BUILD_ROOT %check ant test %pre getent group %{name} >/dev/null || groupadd -r %{name} getent passwd %{name} >/dev/null || \ useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin \ -c "YaCy user" %{name} exit 0 %post /sbin/chkconfig --add %{name} %preun if [ $1 = 0 ] ; then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %postun if [ "$1" -ge "1" ] ; then /sbin/service %{name} condrestart >/dev/null 2>&1 || : fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYRIGHT NOTICE readme.txt gpl.txt %changelog * Thu Jul 2 2009 Alexander Kahl - 0.90-1 - initial creation