Mercurial > logstash
diff logstash.spec @ 15:c158cae7cd26
work on building from source
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 11 Apr 2013 10:18:06 -0700 |
parents | 0e45fe64b10d |
children | aa606d801e02 |
line wrap: on
line diff
--- a/logstash.spec Wed Apr 10 21:24:14 2013 -0700 +++ b/logstash.spec Thu Apr 11 10:18:06 2013 -0700 @@ -11,11 +11,11 @@ Group: System Environment/Daemons URL: http://logstash.net/ BuildArch: noarch -Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar +#Source0: https://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar +#Source0: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz +Source0: %{name}-%{version}.tar.gz Source1: https://logstash.jira.com/secure/attachment/12610/logstash_index_cleaner.py -#Source2: curl https://nodeload.github.com/logstash/logstash/tar.gz/v%{version} >logstash-%{version}.tar.gz -Source2: %{name}-%{version}.tar.gz -Source3: http://logstash.objects.dreamhost.com/maxmind/GeoLite-City-2013-01-18.dat.gz +Source2: http://logstash.objects.dreamhost.com/maxmind/GeoLite-City-2013-01-18.dat.gz Source4: %{name}.Makefile Source10: %{name}.rc Source11: %{name}.cron @@ -25,7 +25,7 @@ Source21: sendmail.pattern Source22: dnsbl.pattern BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -Requires: logrotate httpd java-1.7.0-openjdk python-pip python-argparse python-ordereddict +Requires: logrotate httpd java-1.7.0-openjdk python-pip python-argparse python-ordereddict jruby Requires(pre): /usr/sbin/useradd Requires(pre): /usr/bin/getent Requires(postun): /usr/sbin/userdel @@ -42,27 +42,26 @@ %prep -%setup -q -T -b 2 +%setup -q %build -gunzip -c %SOURCE3 >GeoLiteCity.dat +gunzip -c %SOURCE2 >GeoLiteCity.dat make -f %SOURCE4 %install -# for now, ignore the results of the build, and just package the source jar files. rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/var/log/%{name} -install -D -m 750 %SOURCE0 $RPM_BUILD_ROOT/%{_bindir}/%{name}.jar -install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}/logstash_index_cleaner.py -install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} -install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name} -install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf -install -D -m 640 %SOURCE13 $RPM_BUILD_ROOT/etc/sysconfig/%{name} -install -D -m 640 %SOURCE20 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/apache -install -D -m 640 %SOURCE21 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/sendmail -install -D -m 640 %SOURCE22 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/dnsbl +install -D -m 750 build/logstash.jar $RPM_BUILD_ROOT/%{_bindir}/%{name}.jar +install -D -m 750 %SOURCE1 $RPM_BUILD_ROOT/%{_bindir}/logstash_index_cleaner.py +install -D -m 755 %SOURCE10 $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} +install -D -m 755 %SOURCE11 $RPM_BUILD_ROOT/etc/cron.daily/%{name} +install -D -m 640 %SOURCE12 $RPM_BUILD_ROOT/etc/%{name}/%{name}.conf +install -D -m 640 %SOURCE13 $RPM_BUILD_ROOT/etc/sysconfig/%{name} +install -D -m 640 %SOURCE20 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/apache +install -D -m 640 %SOURCE21 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/sendmail +install -D -m 640 %SOURCE22 $RPM_BUILD_ROOT/var/lib/%{name}/data/patterns/dnsbl %pre