X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=apache1-mod_log_sql.spec;h=b0299bafbfd57763b29c4f7932d3f6227a3ae42a;hb=36deac54683797d4e9f13cb46b6ed32da0a71364;hp=a91abc2f9f7019095bd8776e4df48a8a686dc7e5;hpb=2acba8dcb645ee722293844228bba61b7b8d0be5;p=packages%2Fapache1-mod_log_sql.git diff --git a/apache1-mod_log_sql.spec b/apache1-mod_log_sql.spec index a91abc2..b0299ba 100644 --- a/apache1-mod_log_sql.spec +++ b/apache1-mod_log_sql.spec @@ -3,11 +3,11 @@ %define mod_name log_sql %define apxs /usr/sbin/apxs1 Summary: SQL logging module for Apache -Summary(pl): Modu³ logowania zapytañ do Apache do bazy SQL +Summary(pl.UTF-8): Moduł logowania zapytań do Apache do bazy SQL Name: apache1-mod_%{mod_name} # NOTE: remember about apache-mod_log_sql when updating! Version: 1.99 -Release: 3 +Release: 6 License: Apache (?) Group: Networking/Daemons Source0: http://www.outoforder.cc/downloads/mod_log_sql/mod_%{mod_name}-%{version}.tar.gz @@ -15,29 +15,29 @@ Source0: http://www.outoforder.cc/downloads/mod_log_sql/mod_%{mod_name}-%{versio Patch0: mod_%{mod_name}-acam_libexecdir.patch Patch1: mod_%{mod_name}-subdirs.patch URL: http://www.outoforder.cc/projects/apache/mod_log_sql/ -BuildRequires: %{apxs} -BuildRequires: apache1-devel >= 1.3.33-2 +BuildRequires: apache1-devel >= 1.3.39 BuildRequires: apache1-mod_ssl-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: libdbi-devel >= 0.7.0 BuildRequires: libtool BuildRequires: mysql-devel >= 3.23.30 +BuildRequires: rpmbuild(macros) >= 1.268 Requires(triggerpostun): %{apxs} -Requires: apache1 >= 1.3.33-2 +Requires: apache1(EAPI) Obsoletes: apache-mod_log_sql <= 1.13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) -%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) +%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d %description -mod_log_sql is a logging module for Apache 1.3 and 2.0 which logs all requests -to a database. +mod_log_sql is a logging module for Apache 1.3 and 2.0 which logs all +requests to a database. -%description -l pl -mod_log_sql jest modu³em loguj±cym dla Apache 1.3 i 2.0, który pozwala na -logowanie wszystkich zapytañ do bazy danych. +%description -l pl.UTF-8 +mod_log_sql jest modułem logującym dla Apache 1.3 i 2.0, który pozwala +na logowanie wszystkich zapytań do bazy danych. %prep %setup -q -n mod_%{mod_name}-%{version} @@ -56,26 +56,22 @@ rm -f docs/{Makefile*,*.xml} contrib/Makefile* %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d} +install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}} install *.so $RPM_BUILD_ROOT%{_pkglibdir} echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \ - $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf + $RPM_BUILD_ROOT%{_sysconfdir}/90_mod_%{mod_name}.conf %clean rm -rf $RPM_BUILD_ROOT %post -if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 -fi +%service -q apache restart %postun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/apache ]; then - /etc/rc.d/init.d/apache restart 1>&2 - fi + %service -q apache restart fi %triggerpostun -- apache1-mod_%{mod_name} < 1.99-2.1 @@ -87,5 +83,5 @@ fi %files %defattr(644,root,root,755) %doc AUTHORS CHANGELOG TODO contrib docs LICENSE -%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf %attr(755,root,root) %{_pkglibdir}/*