rpm/pmux-gw.spec in pmux-gw-0.1.8 vs rpm/pmux-gw.spec in pmux-gw-0.1.9
- old
+ new
@@ -3,11 +3,11 @@
%define ruby_verid ""
%else
%define ruby_verid %{_ruby_verid}
%endif
%define rbname pmux-gw
-%define version 0.1.8
+%define version 0.1.9
%define release 1
Summary: Pmux gateway server
Name: rubygems%(echo -n %{ruby_verid})-%{rbname}
@@ -15,10 +15,11 @@
Release: %{release}
Group: Development/Ruby
License: Distributable
URL: https://github.com/iij/pmux-gw
Source0: %{rbname}-%{version}.gem
+Source1: %{rbname}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: ruby
Requires: rubygems%(echo -n %{ruby_verid}) >= 1.3.7
Requires: rubygems%(echo -n %{ruby_verid})-gflocator >= 0.0.1
Requires: rubygems%(echo -n %{ruby_verid})-pmux >= 0.1.0
@@ -48,10 +49,12 @@
mkdir -p %{gembuilddir}
gem%{ruby_verid} install --local --install-dir %{gembuilddir} --force %{SOURCE0}
mkdir -p %{buildroot}/%{_bindir}
mv %{gembuilddir}/bin/* %{buildroot}/%{_bindir}
rmdir %{gembuilddir}/bin
+mkdir -p %{buildroot}/etc/init.d
+cp %{SOURCE1} %{buildroot}/etc/init.d/
%clean
%{__rm} -rf %{buildroot}
%files
@@ -91,10 +94,12 @@
%{gemdir}/gems/%{rbname}-%{version}/lib/pmux-gw/logger_wrapper.rb
%{gemdir}/gems/%{rbname}-%{version}/lib/pmux-gw/syslog_wrapper.rb
%{gemdir}/gems/%{rbname}-%{version}/examples/pmux-gw.conf
%{gemdir}/gems/%{rbname}-%{version}/examples/password
%{gemdir}/gems/%{rbname}-%{version}/rpm/pmux-gw.spec
+%{gemdir}/gems/%{rbname}-%{version}/rpm/pmux-gw
%{gemdir}/gems/%{rbname}-%{version}/rpm/Makefile
+%attr(0755,root,root) /etc/init.d/%{rbname}
%doc %{gemdir}/doc/%{rbname}-%{version}
%{gemdir}/cache/%{rbname}-%{version}.gem
%{gemdir}/specifications/%{rbname}-%{version}.gemspec