]> git.pld-linux.org Git - packages/apache-mod_ruby.git/commitdiff
- up to 1.2.0, works.
authoraredridel <aredridel@pld-linux.org>
Fri, 16 Jul 2004 01:45:51 +0000 (01:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- STBR

Changed files:
    apache-mod_ruby.spec -> 1.4

apache-mod_ruby.spec

index f8bcae698fa58ae19691db36ccb016038357fedb..113fad209a7b3000d3c437ebbe592fb7684fd858 100644 (file)
@@ -1,17 +1,16 @@
 %define                mod_name        mod_ruby
 %define        apxs            /usr/sbin/apxs
 %define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
-%define                _httpdconf      %{_sysconfdir}/httpd/httpd.conf
-%define                _modrubyconf    %{_sysconfdir}/httpd/mod_ruby.conf
+%define                _modrubyconf    %{_sysconfdir}/httpd/httpd.conf/70_mod_ruby.conf
 Summary:       Apache mod_ruby module - embeds the Ruby interpreter into the Apache web server
 Summary(pl):   Modu³ Apache'a mod_ruby - zapewniaj±cy obs³ugê skryptów rubego przez serwer Apache
 Name:          apache-%{mod_name}
-Version:       1.0.7
+Version:       1.2.0
 Release:       0.9
 Group:         Networking/Daemons
 License:       BSD-like
 Source0:       http://www.modruby.net/archive/%{mod_name}-%{version}.tar.gz
-# Source0-md5: b03bb4e2fe58f6f3251a8aa168364221
+# Source0-md5: baf4f0fe44ae557528754f49b4ae46b9
 Source1:       %{name}.conf
 Patch0:                %{name}-struct.patch
 URL:           http://www.modruby.net/
@@ -39,6 +38,7 @@ gdyby by
 
 %build
 ./configure.rb \
+       --with-apr-includes='/usr/include/apr -I/usr/include/apr-util'\
        --with-apxs=%{apxs}
 %{__make}
 
@@ -49,35 +49,27 @@ install -d $RPM_BUILD_ROOT%{_pkglibdir}
 install %{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/%{mod_name}.so
 
 # Install the config file
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf
 install %{SOURCE1} $RPM_BUILD_ROOT%{_modrubyconf}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{apxs} -e -a -n ruby %{_pkglibdir}/%{mod_name}.so 1>&2
-if [ -f %{_httpdconf} ] && ! grep -q "^Include.*%{modrubyconf}" %{_httpdconf}; then
-       echo "Include %{_modrubyconf}" >> %{_httpdconf}
-fi
 if [ -f /var/lock/subsys/httpd ]; then
        /etc/rc.d/init.d/httpd restart 1>&2
 fi
 
 %preun
 if [ "$1" = "0" ]; then
-       %{apxs} -e -A -n ruby %{_pkglibdir}/%{mod_name}.so 1>&2
        if [ -f /var/lock/subsys/httpd ]; then
                /etc/rc.d/init.d/httpd restart 1>&2
        fi
-       umask 027
-       cat %{_httpdconf} | grep -v "Include %{_modrubyconf}" > %{_httpdconf}.tmp
-       mv -f %{_httpdconf}.tmp %{_httpdconf}
 fi
 
 %files
 %defattr(644,root,root,755)
 %doc COPYING ChangeLog README.en examples doc/*
 %lang(ja) %doc README.ja
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/mod_ruby.conf
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd/httpd.conf/70_mod_ruby.conf
 %attr(755,root,root) %{_pkglibdir}/*
This page took 0.055717 seconds and 4 git commands to generate.