|
@@ -1,19 +1,14 @@
|
|
-%define rbindir %(ruby -r rbconfig -e 'print Config::CONFIG["bindir"]')
|
|
|
|
-%define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
|
|
|
|
-%define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
|
|
|
|
-%define rdatadir %(ruby -r rbconfig -e 'print Config::CONFIG["datadir"]')
|
|
|
|
-%define libdir %(ruby -r rbconfig -e 'print Config::CONFIG["libdir"]')
|
|
|
|
-%define incdir %(ruby -r rbconfig -e 'print Config::CONFIG["includedir"]')
|
|
|
|
-%define mandir %(ruby -r rbconfig -e 'print Config::CONFIG["mandir"]')
|
|
|
|
-
|
|
|
|
Summary: An interpreter of embedded Ruby language
|
|
Summary: An interpreter of embedded Ruby language
|
|
Summary(ja): テキスト埋め込みの Ruby 言語インタプリタ
|
|
Summary(ja): テキスト埋め込みの Ruby 言語インタプリタ
|
|
Name: eruby
|
|
Name: eruby
|
|
Version: 1.0.5
|
|
Version: 1.0.5
|
|
-Release: 1%{?_dist_release}
|
|
|
|
-License: distributable
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
|
|
+# eruby is GPLv2+
|
|
|
|
+# liberuby is LGPLv2+
|
|
|
|
+License: GPLv2+ and LGPLv2+
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz
|
|
Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz
|
|
|
|
+Patch0: eruby-fix-build.patch
|
|
URL: http://www.modruby.net/
|
|
URL: http://www.modruby.net/
|
|
Prefix: /usr
|
|
Prefix: /usr
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
@@ -60,31 +55,35 @@ ERubyを組み込んだアプリケーションを作るために必要となる
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%setup -q -c
|
|
|
|
|
|
+%setup -q
|
|
|
|
+%patch0 -p1 -b .0-build
|
|
|
|
|
|
%build
|
|
%build
|
|
-cd %{name}-%{version}
|
|
|
|
ruby configure.rb --enable-shared
|
|
ruby configure.rb --enable-shared
|
|
make
|
|
make
|
|
cd ..
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
|
|
|
|
-mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
+mkdir -p %{buildroot}%{_bindir}
|
|
|
|
+mkdir -p %{buildroot}%{_libdir}
|
|
|
|
+mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
|
+mkdir -p %{buildroot}%{_includedir}
|
|
|
|
|
|
# installing binaries ...
|
|
# installing binaries ...
|
|
-cd %{name}-%{version}
|
|
|
|
-make install prefix=${RPM_BUILD_ROOT}%{prefix} \
|
|
|
|
- libdir=${RPM_BUILD_ROOT}%{_libdir} \
|
|
|
|
- mandir=${RPM_BUILD_ROOT}%{_mandir}
|
|
|
|
-cd ..
|
|
|
|
|
|
+make install prefix=%{buildroot}%{prefix} \
|
|
|
|
+ libdir=%{buildroot}%{_libdir} \
|
|
|
|
+ mandir=%{buildroot}%{_mandir}
|
|
|
|
+
|
|
|
|
+# remove the unnecessary files
|
|
|
|
+rm %{buildroot}%{_libdir}/*.a
|
|
|
|
+
|
|
|
|
+# change permissions
|
|
|
|
+find %{buildroot}%{_libdir} -name '*.so*' | xargs chmod 0755
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig -n liberuby
|
|
%post -p /sbin/ldconfig -n liberuby
|
|
@@ -96,27 +95,27 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
%files -n eruby
|
|
%files -n eruby
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{rbindir}/%{name}
|
|
%{rbindir}/%{name}
|
|
-%{mandir}/man1/%{name}.1*
|
|
|
|
-%doc %{name}-%{version}/README.en
|
|
|
|
-%doc %{name}-%{version}/README.ja
|
|
|
|
-%doc %{name}-%{version}/ChangeLog
|
|
|
|
-%doc %{name}-%{version}/examples
|
|
|
|
|
|
+%{_mandir}/man1/%{name}.1*
|
|
|
|
+%doc COPYING GPL LGPL
|
|
|
|
+%doc README* ChangeLog examples
|
|
|
|
|
|
|
|
|
|
%files -n liberuby
|
|
%files -n liberuby
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%{libdir}/lib%{name}.so.*
|
|
|
|
|
|
+%{_libdir}/lib%{name}.so.*
|
|
%{rarchdir}/%{name}*
|
|
%{rarchdir}/%{name}*
|
|
|
|
|
|
|
|
|
|
%files -n liberuby-devel
|
|
%files -n liberuby-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%{libdir}/lib%{name}.so
|
|
|
|
-%{libdir}/lib%{name}.a
|
|
|
|
-%{incdir}/%{name}*.h
|
|
|
|
|
|
+%{_libdir}/lib%{name}.so
|
|
|
|
+%{_includedir}/%{name}*.h
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.5-2
|
|
|
|
+- rebuild; spec revamp; remove *.a file
|
|
|
|
+
|
|
* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5
|
|
* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5
|
|
- applied new versioning policy, spec in utf-8
|
|
- applied new versioning policy, spec in utf-8
|
|
|
|
|