1 Summary: Local Unified Index (Solr)
2 Name: masterkey-lui-solr
6 Group: Applications/Internet
7 Vendor: Index Data ApS <info@indexdata.dk>
8 Source: masterkey-lui-solr-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 Packager: Dennis Schafroth <dennis@indexdata.com>
12 URL: http://www.indexdata.dk/masterkey
15 The Local Unified Index is a index that contains multiple logical indexes. The underlying index is a Solr/lucene index configured to use a specific LUI schema.
17 %package -n masterkey-lui-solr-tomcat
18 Summary: Local Unified Index Solr Tomcat
19 Requires: masterkey-lui-solr
20 Group: Applications/Internet
22 %package -n masterkey-lui-solr-tomcat6
23 Summary: Local Unified Index Solr Tomcat 6 integration
24 Requires: tomcat6 masterkey-lui-solr-tomcat
25 Group: Applications/Internet
27 #%description -n masterkey-lui-solr-initd
28 #The LUI is the stand-alone Solr/Lucene Index with the LUI schema
30 %description -n masterkey-lui-solr-tomcat
31 The LUI Tomcat is part of the MasterKey suite. This package provides the LUI Tomcat context
33 %description -n masterkey-lui-solr-tomcat6
34 The LUI is part of the MasterKey suite. This package provides Tomcat 6 integration.
41 mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/war
42 cp -a dist/* ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/war
43 mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/conf
44 cp -a solr-conf/* ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/conf
46 mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/solr
47 # cp -a etc/harvester.properties ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/solr
49 #mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/log/masterkey/lui/solr
50 mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/masterkey/lui/solr/data
53 sed -e 's@docBase=".*"@docBase="%{_datadir}\/masterkey\/lui\/solr\/war\/apache-solr-3.3.0.war"@g' etc/solr-tomcat-context.xml > ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/solr/lui-solr-context.xml
56 sed -e 's@${solr.data.dir:.*}@${solr.data.dir:%{_localstatedir}\/lib\/masterkey\/lui\/solr\/data}@g' solr-conf/solrconfig.xml > ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/conf/solrconfig.xml
59 rm -fr ${RPM_BUILD_ROOT}
61 %post -n masterkey-lui-solr-tomcat6
62 ln -sf %{_sysconfdir}/masterkey/lui/solr/lui-solr-context.xml %{_sysconfdir}/tomcat6/Catalina/localhost/lui-solr.xml
64 %postun -n masterkey-lui-solr-tomcat6
66 rm -rf %{_sysconfdir}/tomcat6/Catalina/localhost/lui-solr.xml
70 %defattr(755,tomcat,tomcat)
71 %{_datadir}/masterkey/lui/solr
72 %{_localstatedir}/lib/masterkey/lui/solr
73 %{_localstatedir}/lib/masterkey/lui/solr/data
74 %attr(755,tomcat,tomcat) %dir %{_localstatedir}/lib/masterkey/lui/solr
76 %files -n masterkey-lui-solr-tomcat
78 %config %{_sysconfdir}/masterkey/lui/solr/lui-solr-context.xml
80 %files -n masterkey-lui-solr-tomcat6