%define mod_name mod_caml
%define apxs /usr/sbin/apxs
-Summary: Apache mod_caml module - allows using bytcode compiled ocaml files with apache
-Summary(pl): Modu³ Apache'a mod_caml - zapewniaj±cy obs³ugê skompilowanego do bytekodu ocamla
+Summary: Apache mod_caml module - allows using bytecode compiled ocaml files with apache
+Summary(pl): Modu³ Apache'a mod_caml - zapewniaj±cy obs³ugê skompilowanego do bajtkodu ocamla
Name: apache-%{mod_name}
Version: 1.3.4
Release: 1
Source0: http://savannah.nongnu.org/download/modcaml/%{mod_name}-%{version}.tar.gz
# Source-md5: b21b6a1fee031490a925895b88b3a92f
Patch0: %{mod_name}-Makefile.diff
-URL: ttp://merjis.com/developers/mod_caml/
+URL: http://merjis.com/developers/mod_caml/
BuildRequires: apache-devel >= 1.3.3
BuildRequires: %{apxs}
BuildRequires: apr-devel
%define _noautostrip .*\/mod_caml.so
%description
-mod_caml is a set of Objective CAML (OCaml) bindings for the Apache API.
-It allows you to run CGI scripts written in OCaml directly inside the Apache webserver.
-However, it is much much more than just that:
+mod_caml is a set of Objective CAML (OCaml) bindings for the Apache
+API. It allows you to run CGI scripts written in OCaml directly inside
+the Apache webserver. However, it is much much more than just that:
* Bind to any part of the Apache request cycle.
* Read and modify internal Apache structures.
* Share modules of code between handlers and scripts.
- * CGI library and templating system (allows separation of code and presentation).
- * Works with Apache 1.3 and Apache 2.0 [see note below].
+ * CGI library and templating system (allows separation of code and
+ presentation).
+ * Works with Apache 1.3 and Apache 2.0.
* DBI library for simple database access.
- * DBI library can use Perl DBDs (database drivers) [requires Perl4Caml >= 0.3.6].
+ * DBI library can use Perl DBDs (database drivers)
+ [requires Perl4Caml >= 0.3.6].
+
+%description -l pl
+mod_caml to zbiór dowi±zañ Objective CAML-a (OCamla) dla API Apache'a.
+Umo¿liwia uruchamianie skryptów CGI napisanych w OCamlu bezpo¶rednio
+wewn±trz serwera WWW Apache. Umo¿liwia jednak znacznie wiêcej:
+ - dowi±zanie do dowolnej czê¶ci cyklu przetwarzania ¿±dania,
+ - odczyt i modyfikowanie wewnêtrznych struktur Apache'a,
+ - wspó³dzielenie modu³ów kodu miêdzy procedurami obs³ugi a skryptami,
+ - udostêpnia bibliotekê CGI i system szablonów (umo¿lwiaj±cych
+ oddzielenie kodu i prezentacji),
+ - dzia³a z Apache 1.3 i Apache 2.0,
+ - udostêpnia bibliotekê DBI do prostego dostêpu do baz danych,
+ - udostêpnia bibliotekê DBI wykorzystuj±c± sterowniki DBD Perla
+ (wymaga pakietu Perl4Caml >= 0.3.6).
%prep
%setup -q -n %{mod_name}-%{version}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} DESTDIR=$RPM_BUILD_ROOT install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/httpd.conf/*.conf
%attr(755,root,root) %{_pkglibdir}/*.so
%{_libdir}/ocaml
-%{_datadir}/%{mod_name}/
+%{_datadir}/%{mod_name}