diff --git a/.mrconfig b/.mrconfig index a2d68ea..c46aa28 100644 --- a/.mrconfig +++ b/.mrconfig @@ -1,7 +1,7 @@ [.] [colab] -checkout = git clone https://github.com/colab-community/colab.git --branch pypi +checkout = git clone https://github.com/colab-community/colab.git [mailman-api] checkout = git clone https://github.com/TracyWebTech/mailman-api.git @@ -18,6 +18,6 @@ checkout = hg clone http://bitbucket.org/ianb/paste [mailman-api/paste/six] checkout = hg clone https://bitbucket.org/gutworth/six -[build/solr] -checkout = wget -c http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz && tar vxzf solr-4.6.1.tgz && mv solr-4.6.1 solr +[sources/solr] +checkout = wget -c http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz diff --git a/build_packages_rpms.sh b/build_packages_rpms.sh new file mode 100755 index 0000000..b49d56a --- /dev/null +++ b/build_packages_rpms.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Copia os sources e os patches para o diretório de construção dos RPMS +mkdir -p ~/rpmbuild/SOURCES +cp sources/* ~/rpmbuild/SOURCES +cp patches/* ~/rpmbuild/SOURCES + +# Copia os specs para o diretório de construção dos RPMS +mkdir -p ~/rpmbuild/SPECS +cp specs/* ~/rpmbuild/SPECS + +# Cria os diretórios de construção +mkdir -p ~/rpmbuild/BUILD +mkdir -p ~/rpmbuild/BUILDROOT + +# Cria os diretórios de output +mkdir -p ~/rpmbuild/RPMS +mkdir -p ~/rpmbuild/SRPMS + +# Pacotes a serem construídos +PACKAGES=solr-4.6.1 + +for pkg in $PACKAGES; do + echo "Spec found = $pkg.spec" + rpmbuild -ba --define '__os_install_post \ + /usr/lib/rpm/redhat/brp-compress \ + %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \ + /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \ + /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \ +%{nil}' ~/rpmbuild/SPECS/$pkg.spec +done + +# Copia os pacotes gerados para o diretório packages +find ../rpmbuild/RPMS -name '*.rpm' -exec cp {} packages/ \; +find ../rpmbuild/SRPMS -name '*.rpm' -exec cp {} packages/ \; diff --git a/patches/solr-4.6.1.patch b/patches/solr-4.6.1.patch new file mode 100644 index 0000000..dfdf3a1 --- /dev/null +++ b/patches/solr-4.6.1.patch @@ -0,0 +1,1364 @@ +diff -uNr solr-4.6.1-orig/example/solr/collection1/conf/schema.xml solr-4.6.1/example/solr/collection1/conf/schema.xml +--- solr-4.6.1-orig/example/solr/collection1/conf/schema.xml 2013-11-18 04:02:57.000000000 +0000 ++++ solr-4.6.1/example/solr/collection1/conf/schema.xml 2014-10-28 12:10:09.494399483 +0000 +@@ -1,4 +1,4 @@ +- ++ + + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- id +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ + + +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ + +- + + + +- ++ + +@@ -464,35 +55,26 @@ + + + +- ++ + + + + + +- + + + +- +- + + +- ++ + +- ++ + + + +@@ -501,634 +83,163 @@ + + +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + + + + +- +- ++ + + +- +- +- +- +- +- +- +- + + + +- +- ++ + +- +- ++ + +- ++ + + +- +- +- ++ + + + + +- +- +- +- +- +- +- +- +- ++ ++ + +- +- +- +- ++ + + +- +- +- +- +- +- +- ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- + +- +- +- +- +- ++ + +- +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ + +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ id + +- +- +- +- ++ ++ text + +- ++ ++ ++ +\ No newline at end of file +diff -uNr solr-4.6.1-orig/example/solr/collection1/conf/solrconfig.xml solr-4.6.1/example/solr/collection1/conf/solrconfig.xml +--- solr-4.6.1-orig/example/solr/collection1/conf/solrconfig.xml 2013-11-18 04:02:57.000000000 +0000 ++++ solr-4.6.1/example/solr/collection1/conf/solrconfig.xml 2014-10-28 12:09:32.513699426 +0000 +@@ -342,10 +342,6 @@ + is recommended (see below). + "dir" - the target directory for transaction logs, defaults to the + solr data directory. --> +- +- ${solr.ulog.dir:} +- +- +