]> git.pld-linux.org Git - packages/apache1-mod_chroot.git/blobdiff - apache1-mod_chroot.spec
- converted to UTF-8
[packages/apache1-mod_chroot.git] / apache1-mod_chroot.spec
index 81e2e11b5cad6b95aad8a70dcb9c169b7eceef64..e5f27296d74b22381118a2335cbcc533416f97f8 100644 (file)
@@ -1,32 +1,33 @@
 %define                mod_name        chroot
 %define        apxs            /usr/sbin/apxs1
 Summary:       Apache module: makes running Apache in a secure chroot environment easy
-Summary(pl):   Modu³ Apache'a do uruchamiania serwera w bezpiecznym ¶rodowisku chroot
+Summary(pl.UTF-8):   Moduł Apache'a do uruchamiania serwera w bezpiecznym środowisku chroot
 Name:          apache1-mod_%{mod_name}
-Version:       0.2
-Release:       0.1
+Version:       0.5
+Release:       0.4
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://core.segfault.pl/~hobbit/mod_chroot/dist/mod_chroot-%{version}.tar.gz
-# Source0-md5: 85211cd8cafcfe64258e02291ea6439e
+# Source0-md5: d72716052faa3bdd3371210f26b13f38
 URL:           http://core.segfault.pl/~hobbit/mod_chroot/
 BuildRequires: %{apxs}
-BuildRequires: apache1-devel >= 1.3.31
-Requires(post,preun):  %{apxs}
-Requires:      apache1 >= 1.3.31
+BuildRequires: apache1-devel >= 1.3.33-2
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires:      apache1 >= 1.3.33-2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR)
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 mod_chroot makes running Apache in a secure chroot environment easy.
 You don't need to create a special directory hierarchy containing
 /dev, /lib, /etc...
 
-%description -l pl
-mod_chroot u³atwia uruchamianie Apache'a w bezpiecznym ¶rodowisku
-chroot. Nie trzeba tworzyæ specjalnej hierarchii katalogów /dev/, /lib
-itp.
+%description -l pl.UTF-8
+mod_chroot ułatwia uruchamianie Apache'a w bezpiecznym środowisku
+chroot. Nie trzeba tworzyć specjalnej hierarchii katalogów /dev, /lib,
+/etc, itp.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
@@ -37,12 +38,25 @@ itp.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -D mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}/mod_%{mod_name}.so
+
+echo 'LoadModule %{mod_name}_module    modules/mod_%{mod_name}.so' > \
+       $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%service -q apache restart
+
+%postun
+if [ "$1" = "0" ]; then
+       %service -q apache restart
+fi
+
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog INSTALL
+%doc CAVEATS ChangeLog INSTALL README
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
 %attr(755,root,root) %{_pkglibdir}/*.so
This page took 0.085455 seconds and 4 git commands to generate.