Lines 1-12
Link Here
|
1 |
# hey Emacs, its -*- rpm-spec -*- |
1 |
# vim: set ft=spec: -*- rpm-spec -*- |
2 |
# $Id: apache,v 1.19 2002/10/10 13:43:07 ab Exp $ |
2 |
# $Id$ |
3 |
# you can build --with/--without: |
3 |
# you can build --with/--without: |
4 |
# - M22 or Sisyphus |
4 |
# - M22, M24 or Sisyphus |
5 |
# - mod_deflate |
5 |
# - mod_deflate |
6 |
%define russian_patchlevel PL30.20 |
6 |
%define russian_patchlevel PL30.20 |
7 |
%define apache_vanilla_version 1.3.31 |
7 |
%define apache_vanilla_version 1.3.31 |
8 |
%define apache_version %{apache_vanilla_version}rus%russian_patchlevel |
8 |
%define apache_version %{apache_vanilla_version}rus%russian_patchlevel |
9 |
%define apache_release alt10 |
9 |
%define apache_release alt11 |
10 |
%define mod_perl_version 1.29 |
10 |
%define mod_perl_version 1.29 |
11 |
%define mod_perl_version_pad %{mod_perl_version}00 |
11 |
%define mod_perl_version_pad %{mod_perl_version}00 |
12 |
%define mod_deflate_version 1.0.21 |
12 |
%define mod_deflate_version 1.0.21 |
Lines 27-48
Link Here
|
27 |
|
27 |
|
28 |
%if_with M22 |
28 |
%if_with M22 |
29 |
%define feature_initscripts 2_2 |
29 |
%define feature_initscripts 2_2 |
|
|
30 |
%define release_tag .M22 |
31 |
%endif |
32 |
|
33 |
%if_with M24 |
34 |
%define feature_initscripts 2_3 |
35 |
%define release_tag .M24 |
30 |
%endif |
36 |
%endif |
31 |
|
37 |
|
32 |
%if_with Sisyphus |
38 |
%if_with Sisyphus |
33 |
%define feature_initscripts 2_3 |
39 |
%define feature_initscripts 2_3 |
|
|
40 |
%define release_tag %nil |
34 |
%endif |
41 |
%endif |
35 |
|
42 |
|
36 |
%if "%feature_initscripts" == "" |
43 |
%if "%feature_initscripts" == "" |
37 |
%define feature_initscripts %([ -e /etc/init.d/functions-compat ] && echo "2_3" || echo "2_2") |
44 |
%define feature_initscripts %([ -e /etc/init.d/functions-compat ] && echo "2_3" || echo "2_2") |
|
|
45 |
%define release_tag %(cat /etc/altlinux-release | sed -e 's;^ALT Linux ;;' -e 's; (.*)$;;' -e 's;^\\\([A-Z]\\\)[a-z]* \\\([0-9]\\\)\\\.\\\([0-9]\\\)$;.\\\1\\\2\\\3;' | grep '^\\\.[A-Z][0-9][0-9]$') |
38 |
%endif |
46 |
%endif |
39 |
|
47 |
|
40 |
# we don't want to add a feature to legacy package by default |
48 |
# we don't want to add a feature to legacy package by default |
41 |
%if "%feature_initscripts" == "2_2" |
49 |
%if "%feature_initscripts" == "2_2" |
42 |
%define release_tag .M22 |
|
|
43 |
%def_without mod_deflate |
50 |
%def_without mod_deflate |
44 |
%else |
51 |
%else |
45 |
%define release_tag %nil |
|
|
46 |
%def_with mod_deflate |
52 |
%def_with mod_deflate |
47 |
%endif |
53 |
%endif |
48 |
|
54 |
|
Lines 183-196
Link Here
|
183 |
Group: System/Servers |
189 |
Group: System/Servers |
184 |
Icon: mod_perl.gif |
190 |
Icon: mod_perl.gif |
185 |
Requires: mm >= %mm_version, perl >= 1:5.6.0 |
191 |
Requires: mm >= %mm_version, perl >= 1:5.6.0 |
186 |
PreReq: apache-common = %version-%release |
192 |
PreReq: apache-common = %version-%release, mod_perl-common = %version-%release |
187 |
Provides: russian-apache = %russian_patchlevel webserver |
193 |
Provides: russian-apache = %russian_patchlevel webserver |
188 |
Provides: mod_perl = %mod_perl_version |
194 |
Provides: mod_perl = %mod_perl_version |
189 |
Obsoletes: mod_perl |
|
|
190 |
AutoProv: yes, perl |
191 |
|
192 |
# ugly hack ][ |
193 |
Provides: perl(mod_perl.pm) = %mod_perl_version_pad |
194 |
|
195 |
|
195 |
%description mod_perl |
196 |
%description mod_perl |
196 |
Apache is a powerful, full-featured, efficient and freely-available |
197 |
Apache is a powerful, full-featured, efficient and freely-available |
Lines 251-256
Link Here
|
251 |
ЦÄÔÒÉÍËÏÀ ÒÏÚĦÌÀ×ÁÎϧ ÐÁÍ'ÑÔ¦, ЦÄÔÒÉÍËÕ ÍÏÄÕÌÑ SSL ÔÁ ÄÅ˦ÌØËÁ ËÏÓÍÅÔÉÞÎÉÈ |
252 |
ЦÄÔÒÉÍËÏÀ ÒÏÚĦÌÀ×ÁÎϧ ÐÁÍ'ÑÔ¦, ЦÄÔÒÉÍËÕ ÍÏÄÕÌÑ SSL ÔÁ ÄÅ˦ÌØËÁ ËÏÓÍÅÔÉÞÎÉÈ |
252 |
ÐÏËÒÁÝÅÎØ. |
253 |
ÐÏËÒÁÝÅÎØ. |
253 |
|
254 |
|
|
|
255 |
%package -n mod_perl |
256 |
Summary: Perl interpreter for Apache Web server |
257 |
Summary(ru_RU.KOI8-R): éÎÔÅÒÐÒÅÔÁÔÏÒ Perl ÄÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache |
258 |
Group: System/Servers |
259 |
Requires: mm >= %mm_version, perl >= 1:5.6.0 |
260 |
PreReq: apache = %version-%release, mod_perl-common = %version-%release |
261 |
Provides: mod_perl = %mod_perl_version |
262 |
|
263 |
%description -n mod_perl |
264 |
Apache is a powerful, full-featured, efficient and freely-available |
265 |
Web server. Russian Apache is an extended version that supports various |
266 |
character sets, which are necessary for Russian, Ukrainian, Czech |
267 |
and other websites. |
268 |
|
269 |
mod_perl incorporates a Perl interpreter into the Apache web |
270 |
server, so that the Apache web server can directly execute Perl |
271 |
code. Mod_perl links the Perl runtime library into the Apache |
272 |
web server and provides an object-oriented Perl interface for |
273 |
Apache's C language API. The end result is a quicker CGI script |
274 |
turnaround process, since no external Perl interpreter has to |
275 |
be started. |
276 |
|
277 |
This package contains mod_perl as a DSO. |
278 |
|
279 |
%description -l ru_RU.KOI8-R -n mod_perl |
280 |
Apache - ÍÏÝÎÙÊ, ÆÕÎËÃÉÏÎÁÌØÎÙÊ, ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ É |
281 |
Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ×ÅÂ-ÓÅÒ×ÅÒ. |
282 |
|
283 |
Russian Apache - ÓÐÅÃÉÁÌØÎÏ ÄÏÒÁÂÏÔÁÎÎÁÑ ×ÅÒÓÉÑ ÓÅÒ×ÅÒÁ Ó ÐÏÄÄÅÒÖËÏÊ ÒÁÚÌÉÞÎÙÈ |
284 |
ËÏÄÉÒÏ×ÏË, ÐÒÅÄÎÁÚÎÁÞÅÎÎÁÑ ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÎÁ ÓÁÊÔÁÈ Ó ËÏÎÔÅÎÔÏÍ ÎÁ |
285 |
ÒÕÓÓËÏÍ, ÕËÒÁÉÎÓËÏÍ, ÞÅÛÓËÏÍ É ÄÒÕÇÉÈ ÑÚÙËÁÈ. |
286 |
|
287 |
mod_perl ÉÎÔÅÇÒÉÒÕÅÔ × Apache ÉÎÔÅÒÐÒÅÔÁÔÏÒ ÑÚÙËÁ Perl É ÐÒÅÄÏÓÔÁ×ÌÑÅÔ |
288 |
ÏÂßÅËÔÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÙÊ ÉÎÔÅÒÆÅÊÓ ÉÚ Perl Ë ÆÕÎËÃÉÑÍ Apache API. ïÄÎÏ ÉÚ |
289 |
ÐÒÅÉÍÕÝÅÓÔ× - ÕÓËÏÒÅÎÉÅ ÏÂÒÁÂÏÔËÉ CGI-ÚÁÐÒÏÓÏ×, ÐÏÓËÏÌØËÕ ÎÅÔ ÎÕÖÄÙ |
290 |
ÚÁÐÕÓËÁÔØ ×ÎÅÛÎÉÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ ÄÌÑ ÉÓÐÏÌÎÅÎÉÑ Perl-ËÏÄÁ. |
291 |
|
292 |
ðÁËÅÔ ÓÏÄÅÒÖÉÔ ÄÉÎÁÍÉÞÅÓËÉ ÚÁÇÒÕÖÁÅÍÙÊ mod_perl. |
293 |
|
254 |
%package common |
294 |
%package common |
255 |
Summary: Files common for apache and apache-mod_perl installations |
295 |
Summary: Files common for apache and apache-mod_perl installations |
256 |
Summary(ru_RU.KOI8-R): ïÂÝÉÅ ÆÁÊÌÙ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ apache É apache-mod_perl |
296 |
Summary(ru_RU.KOI8-R): ïÂÝÉÅ ÆÁÊÌÙ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ apache É apache-mod_perl |
Lines 272-277
Link Here
|
272 |
ãÅÊ ÐÁËÕÎÏË Í¦ÓÔÉÔØ ÆÁÊÌÉ, Ñ˦ ÎÅÏÂȦÄΦ ÄÌÑ apache ÔÁ apache-mod_perl. |
312 |
ãÅÊ ÐÁËÕÎÏË Í¦ÓÔÉÔØ ÆÁÊÌÉ, Ñ˦ ÎÅÏÂȦÄΦ ÄÌÑ apache ÔÁ apache-mod_perl. |
273 |
÷ÓÔÁÎÏצÔØ ÊÏÇÏ, ÑËÝÏ ÚÂÉÒÁ¤ÔÅÓØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ Russian Apache. |
313 |
÷ÓÔÁÎÏצÔØ ÊÏÇÏ, ÑËÝÏ ÚÂÉÒÁ¤ÔÅÓØ ×ÉËÏÒÉÓÔÏ×Õ×ÁÔÉ Russian Apache. |
274 |
|
314 |
|
|
|
315 |
%package -n mod_perl-common |
316 |
Summary: Files common for apache-mod_perl and DSO mod_perl |
317 |
Summary(ru_RU.KOI8-R): ïÂÝÉÅ ÆÁÊÌÙ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ apache-mod_perl É ÄÉÎÁÍÉÞÅÓËÏÇÏ mod_perl |
318 |
Group: System/Servers |
319 |
AutoProv: yes, perl |
320 |
|
321 |
# ugly hack ][ |
322 |
Provides: perl(mod_perl.pm) = %mod_perl_version_pad |
323 |
|
324 |
%description -n mod_perl-common |
325 |
This package contains files required for both apache-mod_perl and mod_perl |
326 |
package installations. Install this if you want to install Apache with |
327 |
mod_perl enabled. |
328 |
|
329 |
%description -l ru_RU.KOI8-R -n mod_perl-common |
330 |
÷ ÜÔÏÍ ÐÁËÅÔÅ ÎÁÈÏÄÑÔÓÑ ÆÁÊÌÙ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ apache-mod_perl É ÄÉÎÁÍÉÞÅÓËÏÇÏ |
331 |
mod_perl. õÓÔÁÎÏ×ÉÔÅ, ÅÓÌÉ ÓÏÂÉÒÁÅÔÅÓØ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ Russian Apache Ó ÐÏÄÄÅÒÖËÏÊ |
332 |
mod_perl. |
333 |
|
275 |
%package devel |
334 |
%package devel |
276 |
Summary: Module development tools for the Apache web server |
335 |
Summary: Module development tools for the Apache web server |
277 |
Summary(ru_RU.KOI8-R): óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache |
336 |
Summary(ru_RU.KOI8-R): óÒÅÄÓÔ×Á ÒÁÚÒÁÂÏÔËÉ ÍÏÄÕÌÅÊ ÄÌÑ ×ÅÂ-ÓÅÒ×ÅÒÁ Apache |
Lines 365-371
Link Here
|
365 |
%prep |
424 |
%prep |
366 |
%if "%feature_initscripts" == "" |
425 |
%if "%feature_initscripts" == "" |
367 |
echo "*** Unable to determine target distribution" |
426 |
echo "*** Unable to determine target distribution" |
368 |
echo "*** use --with M22 or --with Sisyphus" |
427 |
echo "*** use --with M22, --with M24 or --with Sisyphus" |
369 |
exit 1 |
428 |
exit 1 |
370 |
%endif |
429 |
%endif |
371 |
|
430 |
|
Lines 421-426
Link Here
|
421 |
popd |
480 |
popd |
422 |
|
481 |
|
423 |
%__cp -pr apache_%apache_vanilla_version apache-mod_perl_%apache_vanilla_version |
482 |
%__cp -pr apache_%apache_vanilla_version apache-mod_perl_%apache_vanilla_version |
|
|
483 |
%__cp -pr mod_perl-%mod_perl_version mod_perl-standalone-%mod_perl_version |
424 |
|
484 |
|
425 |
%build |
485 |
%build |
426 |
echo "### define configure flags" |
486 |
echo "### define configure flags" |
Lines 449-455
Link Here
|
449 |
--suexec-caller=%apache_user \ |
509 |
--suexec-caller=%apache_user \ |
450 |
--suexec-docroot=%suexec_docroot \ |
510 |
--suexec-docroot=%suexec_docroot \ |
451 |
--suexec-userdir=public_html \ |
511 |
--suexec-userdir=public_html \ |
|
|
512 |
%if_with mod_deflate |
452 |
--activate-module=src/modules/extra/mod_deflate.o \ |
513 |
--activate-module=src/modules/extra/mod_deflate.o \ |
|
|
514 |
%endif |
453 |
" |
515 |
" |
454 |
|
516 |
|
455 |
%if_with mod_deflate |
517 |
%if_with mod_deflate |
Lines 518-523
Link Here
|
518 |
%__make build-std |
580 |
%__make build-std |
519 |
%__make -C src/support apxs |
581 |
%__make -C src/support apxs |
520 |
|
582 |
|
|
|
583 |
echo "### build mod_perl DSO" |
584 |
cd $RPM_BUILD_DIR/mod_perl-standalone-%mod_perl_version |
585 |
%__sed -e "s;^#!/.*;#!/usr/bin/perl;" \ |
586 |
-e "s;\@prefix\@;%buildroot%prefix;" \ |
587 |
-e "s;\@sbindir\@;%buildroot%_sbindir;" \ |
588 |
-e "s;\@libexecdir\@;%buildroot%_libdir/apache;" \ |
589 |
-e "s;\@includedir\@;$RPM_BUILD_DIR/apache_%apache_vanilla_version/src/include;" \ |
590 |
-e "s;\@sysconfdir\@;%buildroot%_sysconfdir/httpd/conf;" \ |
591 |
< $RPM_BUILD_DIR/apache-mod_perl_%apache_vanilla_version/src/support/apxs > local-apxs |
592 |
%__chmod +x local-apxs |
593 |
%__cp -p $RPM_BUILD_DIR/apache_%apache_vanilla_version/src/os/unix/{*.h,*inline.c} $RPM_BUILD_DIR/apache_%apache_vanilla_version/src/include/ |
594 |
%__subst 's,$(APXS) -i -a -n perl libperl.so,$(APXS) -i -A -n perl libperl.so,' apaci/Makefile.tmpl |
595 |
%__perl Makefile.PL PREFIX=%prefix INSTALLDIRS=vendor \ |
596 |
USE_APXS=1 \ |
597 |
WITH_APXS="$RPM_BUILD_DIR/mod_perl-standalone-%mod_perl_version/local-apxs" \ |
598 |
EVERYTHING=1 |
599 |
%make_build apxs_libperl |
600 |
|
521 |
%install |
601 |
%install |
522 |
# install the normal Apache |
602 |
# install the normal Apache |
523 |
cd $RPM_BUILD_DIR/apache_%apache_vanilla_version |
603 |
cd $RPM_BUILD_DIR/apache_%apache_vanilla_version |
Lines 603-608
Link Here
|
603 |
%__perl -pi -e 's,/usr/local/bin/perl,%_bindir/perl,' \ |
683 |
%__perl -pi -e 's,/usr/local/bin/perl,%_bindir/perl,' \ |
604 |
%buildroot%perl_vendor_archlib/Apache/Resource.pm |
684 |
%buildroot%perl_vendor_archlib/Apache/Resource.pm |
605 |
|
685 |
|
|
|
686 |
# install mod_perl DSO |
687 |
cd $RPM_BUILD_DIR/mod_perl-standalone-%mod_perl_version |
688 |
%make_install apxs_install |
689 |
|
606 |
# install proper initscripts |
690 |
# install proper initscripts |
607 |
%__mkdir_p %buildroot%_sysconfdir/rc.d/init.d |
691 |
%__mkdir_p %buildroot%_sysconfdir/rc.d/init.d |
608 |
|
692 |
|
Lines 684-689
Link Here
|
684 |
%_sbindir/apachectl update |
768 |
%_sbindir/apachectl update |
685 |
fi |
769 |
fi |
686 |
|
770 |
|
|
|
771 |
%post -n mod_perl |
772 |
if [ -e %_sbindir/apachectl ]; then |
773 |
%_sbindir/apachectl update |
774 |
fi |
775 |
|
776 |
%postun -n mod_perl |
777 |
if [ -e %_sbindir/apachectl ]; then |
778 |
%_sbindir/apachectl update |
779 |
fi |
780 |
|
687 |
%post -n mod_perl-doc |
781 |
%post -n mod_perl-doc |
688 |
%__ln_s -nf %_docdir/mod_perl-doc-%mod_perl_version \ |
782 |
%__ln_s -nf %_docdir/mod_perl-doc-%mod_perl_version \ |
689 |
%apache_home/html/addon-modules/mod_perl |
783 |
%apache_home/html/addon-modules/mod_perl |
Lines 745-753
Link Here
|
745 |
%config(noreplace) %_sysconfdir/logrotate.d/apache |
839 |
%config(noreplace) %_sysconfdir/logrotate.d/apache |
746 |
%doc README LICENSE ABOUT_APACHE CHANGES.rus* |
840 |
%doc README LICENSE ABOUT_APACHE CHANGES.rus* |
747 |
%doc ../EAPI-%EAPI_version/pkg.eapi/README.EAPI |
841 |
%doc ../EAPI-%EAPI_version/pkg.eapi/README.EAPI |
|
|
842 |
%if_with mod_deflate |
748 |
%doc ../mod_deflate-%mod_deflate_version/CHANGES.mod_deflate* |
843 |
%doc ../mod_deflate-%mod_deflate_version/CHANGES.mod_deflate* |
749 |
%doc ../mod_deflate-%mod_deflate_version/LICENSE.mod_deflate |
844 |
%doc ../mod_deflate-%mod_deflate_version/LICENSE.mod_deflate |
750 |
%doc ../mod_deflate-%mod_deflate_version/readme.mod_deflate.ru.html |
845 |
%doc ../mod_deflate-%mod_deflate_version/readme.mod_deflate.ru.html |
|
|
846 |
%endif |
847 |
|
848 |
%files -n mod_perl-common |
849 |
%perl_vendor_archlib/Apache* |
850 |
%perl_vendor_archlib/Bundle* |
851 |
%perl_vendor_archlib/mod_perl* |
852 |
%perl_vendor_autolib/Apache* |
751 |
|
853 |
|
752 |
%files |
854 |
%files |
753 |
%_initdir/httpd |
855 |
%_initdir/httpd |
Lines 756-761
Link Here
|
756 |
%_sbindir/apxs |
858 |
%_sbindir/apxs |
757 |
%config(noreplace) %_sysconfdir/httpd/conf/httpd.conf |
859 |
%config(noreplace) %_sysconfdir/httpd/conf/httpd.conf |
758 |
%_libdir/apache/ |
860 |
%_libdir/apache/ |
|
|
861 |
%exclude %_libdir/apache/libperl.so |
759 |
%apache_root/modules |
862 |
%apache_root/modules |
760 |
|
863 |
|
761 |
%files mod_perl |
864 |
%files mod_perl |
Lines 768-779
Link Here
|
768 |
%config(noreplace) %_sysconfdir/httpd/conf/httpd-perl.conf |
871 |
%config(noreplace) %_sysconfdir/httpd/conf/httpd-perl.conf |
769 |
%dir %_sysconfdir/httpd/conf/addon-modules/ |
872 |
%dir %_sysconfdir/httpd/conf/addon-modules/ |
770 |
%config(noreplace) %_sysconfdir/httpd/conf/addon-modules/proxied_handlers.pl |
873 |
%config(noreplace) %_sysconfdir/httpd/conf/addon-modules/proxied_handlers.pl |
771 |
%perl_vendor_archlib/Apache* |
|
|
772 |
%perl_vendor_archlib/Bundle* |
773 |
%perl_vendor_archlib/mod_perl* |
774 |
%perl_vendor_autolib/Apache* |
775 |
%attr(3771,root,%apache_group) %dir %apache_home/perl/ |
874 |
%attr(3771,root,%apache_group) %dir %apache_home/perl/ |
776 |
|
875 |
|
|
|
876 |
%files -n mod_perl |
877 |
%config(noreplace) %_sysconfdir/httpd/conf/addon-modules/mod_perl.conf |
878 |
%_libdir/apache/libperl.so |
879 |
|
777 |
%files -n mod_perl-doc |
880 |
%files -n mod_perl-doc |
778 |
%doc perldocs/* |
881 |
%doc perldocs/* |
779 |
%doc %perl_vendor_privlib/*/*.pod |
882 |
%doc %perl_vendor_privlib/*/*.pod |
Lines 797-803
Link Here
|
797 |
# - implement RA versioning instead of renaming the patch? |
900 |
# - implement RA versioning instead of renaming the patch? |
798 |
|
901 |
|
799 |
%changelog |
902 |
%changelog |
800 |
* Mon Aug 16 2004 Michael Shigorin <mike@altlinux.ru> 1.3.31rusPL30.20-alt10 |
903 |
* Thu Sep 30 2004 Sir Raorn <raorn@altlinux.ru> 1.3.31rusPL30.20-alt11%release_tag |
|
|
904 |
- Build mod_perl as DSO |
905 |
|
906 |
* Mon Aug 16 2004 Michael Shigorin <mike@altlinux.ru> 1.3.31rusPL30.20-alt10%release_tag |
801 |
- fixed #5002 (wrong perms on apache-common binaries excl. sample cgi-bin/*), |
907 |
- fixed #5002 (wrong perms on apache-common binaries excl. sample cgi-bin/*), |
802 |
thanks Vladimir Lettiev (crux@) for notifying! |
908 |
thanks Vladimir Lettiev (crux@) for notifying! |
803 |
|
909 |
|