%define apxs /usr/sbin/apxs
%define mod_name perl
+%define ver 2.0.8
+%define snap svn1624218
+%define rel 1
Summary: A Perl interpreter for the Apache Web server
Summary(cs.UTF-8): Vestavěný interpret Perlu pro WWW server Apache
Summary(da.UTF-8): En indbygget Perl-fortolker for webtjeneren Apache
Summary(uk.UTF-8): Модуль вбудовування інтерпретатора Perl в сервер Apache
Summary(zh_CN.UTF-8): 用于 Apache web 服务程序的 Perl 解释程序。
Name: apache-mod_perl
-%define ver 2.0.5
Version: %{ver}
-Release: 1
+Release: 0.%{snap}.%{rel}
Epoch: 1
License: Apache
Group: Networking/Daemons/HTTP
-Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
-# Source0-md5: 03d01d135a122bd8cebd0cd5b185d674
+#Source0: http://perl.apache.org/dist/mod_perl-%{version}.tar.gz
+# svn export -r 1624218 https://svn.apache.org/repos/asf/perl/modperl/branches/httpd24 mod_perl-2.0.8-svn1624218
+# tar cvf - mod_perl-2.0.8-svn1624218 | xz >mod_perl-2.0.8-svn1624218.tar.xz
+Source0: mod_perl-%{version}-%{snap}.tar.xz
+# Source0-md5: d9f3ec5b4d845c360cf5773f90980c81
Source1: %{name}.conf
Patch0: %{name}-Makefile_PL.patch
URL: http://perl.apache.org/
BuildRequires: gdbm-devel
BuildRequires: openldap-devel >= 2.4.6
%{?with_autodeps:BuildRequires: perl-Data-Flow}
-BuildRequires: perl-devel >= 1:5.8.2
+BuildRequires: perl-devel >= 1:5.18.0
BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.671
%if %{with tests}
BuildRequires: apache-mod_auth_basic
BuildRequires: apache-mod_authz_host
%endif
# older apache-mod_perl could make bad autodeps to perl-mod_perl
BuildConflicts: apache-mod_perl < 1:2.0.2-9
+Requires(post,preun,postun): systemd-units >= 38
Requires: apache(modules-api) = %apache_modules_api
Requires: perl-mod_%{mod_name} = %{epoch}:%{version}-%{release}
+Requires: rc-scripts
+Requires: systemd-units >= 38
Provides: apache(mod_perl)
+Obsoletes: perl-Apache-Reload
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# TODO: separate -devel with ExtUtils::Embed and friends?
%package -n perl-Apache-Test
Summary: Apache::Test - Test.pm wrapper with helpers for testing Apache
Summary(pl.UTF-8): Apache::Test - wrapper na Test.pm z funkcjami do testowania Apache
-Version: 1.36
+Version: 1.37
Group: Development/Languages/Perl
Requires: perl-mod_%{mod_name} = %{epoch}:%{ver}-%{release}
Requires: perl-dirs >= 2.0-5
pomocnicze do testowania serwera Apache.
%prep
-%setup -q -n mod_%{mod_name}-%{ver}
+%setup -q -n mod_%{mod_name}-%{ver}-%{snap}
%patch0 -p1
%build
INSTALLDIRS=vendor
%{__make} \
- OPTIMIZE="%{rpmcflags}" \
- MODPERL_OPTIMIZE="%{rpmcflags}" \
+ OPTIMIZE="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
+ MODPERL_OPTIMIZE="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
CC="%{__cc}" \
MP_APXS=%{apxs}
%post
%service -q httpd restart
+%systemd_service_restart httpd.service
%postun
if [ "$1" = "0" ]; then
%service -q httpd restart
+ %systemd_service_restart httpd.service
fi
%files