]> git.pld-linux.org Git - packages/libapreq2.git/blame - libapreq2.spec
- use conf.d for apache config fragment; rel 5
[packages/libapreq2.git] / libapreq2.spec
CommitLineData
8facfd24
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
515d014e 4%bcond_with tests # perform "make test"
8facfd24 5#
143a123d 6%include /usr/lib/rpm/macros.perl
41104300 7%define apxs /usr/sbin/apxs
42f796f2 8%define pdir libapreq2
cf832cb6 9Summary: Apache Request Library
5ef5a38d 10Summary(pl.UTF-8): Biblioteka żądań Apache
cf832cb6 11Name: libapreq2
93a73a41 12Version: 2.09
b3c6ac5e 13Release: 5
7b5dd0f7 14License: Apache 2.0
cf832cb6 15Group: Libraries
7b5dd0f7
JB
16#Source0: http://www.apache.org/dist/httpd/libapreq/%{name}-%{version}.tar.gz
17Source0: http://people.apache.org/~pgollucci/apreq2/%{name}-%{version}.tar.gz
18# Source0-md5: 3cd98755da8a8431ef35a47461ad67d7
84d5e113 19Source1: apache-mod_apreq2.conf
cf832cb6 20URL: http://httpd.apache.org/apreq/
45100b3a 21BuildRequires: %{apxs}
379711c0 22BuildRequires: apache-base >= 2.0.46
cf832cb6 23BuildRequires: apache-devel >= 2.0.46
379711c0 24BuildRequires: apache-mod_perl-devel >= 1:2
45100b3a 25BuildRequires: apr-devel >= 1.0.0
54449e60
JB
26BuildRequires: autoconf >= 2.53
27BuildRequires: automake
54449e60 28BuildRequires: libtool
42f796f2 29BuildRequires: perl-ExtUtils-XSBuilder >= 0.23
515d014e 30%if %{with tests}
515d014e 31BuildRequires: apache-mod_mime
7b5dd0f7 32BuildRequires: perl-libwww
515d014e 33%endif
cf832cb6 34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
b3c6ac5e
ER
36%define pkgconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)/conf.d
37%define pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
42f796f2 38
cf832cb6 39%description
40libapreq is a safe, standards-compliant, high-performance library used
41for parsing HTTP cookies, query-strings and POST data.
42
43Version 2 of libapreq is an improved codebase designed around APR and
44Apache-2's input filter API.
45
23e79cf0 46%description -l pl.UTF-8
5db02f8c 47libapreq to bezpieczna, zgodna ze standardami, wysoko wydajna
23e79cf0 48biblioteka służąca do przetwarzania ciasteczek HTTP, łańcuchów zapytań
5db02f8c
JB
49oraz danych POST.
50
51Wersja 2 libapreq to ulepszony kod opracowany na bazie APR i API
23e79cf0 52filtra wejściowego Apache 2.
cf832cb6 53
54%package devel
55Summary: libapreq2 header files
5ef5a38d 56Summary(pl.UTF-8): Pliki nagłówkowe libapreq2
cf832cb6 57Group: Development/Libraries
54449e60 58Requires: %{name} = %{version}-%{release}
42f796f2 59Requires: apache-devel >= 2.0
cf832cb6 60
61%description devel
62libapreq2 header files.
63
23e79cf0
JR
64%description devel -l pl.UTF-8
65Pliki nagłówkowe biblioteki libapreq2.
cf832cb6 66
54449e60
JB
67%package static
68Summary: libapreq2 static library
5ef5a38d 69Summary(pl.UTF-8): Statyczna biblioteka libapreq2
54449e60
JB
70Group: Development/Libraries
71Requires: %{name}-devel = %{version}-%{release}
72
73%description static
74Static version of libapreq2 library.
75
23e79cf0 76%description static -l pl.UTF-8
54449e60 77Statyczna wersja biblioteki libapreq2.
cf832cb6 78
79%package -n perl-%{name}
ed847b8a 80Summary: Perl APIs for libapreq2 - Apache2::Request and Apache2::Cookie
5ef5a38d 81Summary(pl.UTF-8): Perlowe API dla libapreq2 - Apache2::Request i Apache2::Cookie
cf832cb6 82Group: Development/Languages/Perl
cf832cb6 83
84%description -n perl-%{name}
ed847b8a 85Perl APIs for libapreq2 - Apache2::Request and Apache2::Cookie.
cf832cb6 86
23e79cf0 87%description -n perl-%{name} -l pl.UTF-8
ed847b8a 88Perlowe API dla libapreq2 - Apache2::Request i Apache2::Cookie.
89
84d5e113 90%package -n apache-mod_apreq2
91Summary: Apache module mod_apreq2
5ef5a38d 92Summary(pl.UTF-8): Moduł serwera Apache mod_apreq2
42f796f2
ER
93Group: Networking/Daemons
94Requires: apache(modules-api) = %apache_modules_api
84d5e113 95Obsoletes: apache-mod_libapreq2
ed847b8a 96
84d5e113 97%description -n apache-mod_apreq2
98Apache module mod_apreq2.
ed847b8a 99
23e79cf0
JR
100%description -n apache-mod_apreq2 -l pl.UTF-8
101Moduł mod_apreq2 do serwera Apache.
5db02f8c 102
cf832cb6 103%prep
7b5dd0f7 104%setup -q
cf832cb6 105
106%build
54449e60 107%{__libtoolize}
e307f3ab 108%{__aclocal}
109%{__autoheader}
110%{__autoconf}
111%{__automake}
cf832cb6 112%configure \
93a73a41 113 --with-mm-opts="INSTALLDIRS=vendor" \
0aee70b2 114 --enable-perl-glue \
72fd97f6 115 --with-apache2-apxs=%{apxs} \
8facfd24 116 %{!?with_static_libs:--disable-static}
5db02f8c 117
a1a66e30 118%{__make}
cf832cb6 119
515d014e 120%{?with_tests:%{__make} test}
121
cf832cb6 122%install
123rm -rf $RPM_BUILD_ROOT
124
a1a66e30 125%{__make} install \
cf832cb6 126 DESTDIR=$RPM_BUILD_ROOT
5db02f8c 127
8facfd24 128rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/APR/{Request.pod,Request/*.pod}
b3c6ac5e
ER
129rm -f $RPM_BUILD_ROOT%{pkglibdir}/mod_apreq2.{a,la}
130install -D %{SOURCE1} $RPM_BUILD_ROOT%{pkgconfdir}/76_mod_apreq2.conf
84d5e113 131
cf832cb6 132%clean
133rm -rf $RPM_BUILD_ROOT
134
135%post -p /sbin/ldconfig
136%postun -p /sbin/ldconfig
137
84d5e113 138%post -n apache-mod_apreq2
1eaf33f5
ER
139%service -q httpd restart
140
84d5e113 141%preun -n apache-mod_apreq2
1eaf33f5
ER
142if [ "$1" = "0" ]; then
143 %service -q httpd restart
144fi
145
cf832cb6 146%files
147%defattr(644,root,root,755)
148%doc CHANGES README
8facfd24 149%attr(755,root,root) %{_libdir}/libapreq2.so.*.*
cf832cb6 150
151%files devel
152%defattr(644,root,root,755)
8facfd24
JB
153%attr(755,root,root) %{_libdir}/libapreq2.so
154%{_libdir}/libapreq2.la
cf832cb6 155%{_includedir}/apreq2
42f796f2
ER
156%attr(755,root,root) %{_bindir}/apreq2-config
157%dir %{_includedir}/apache/apreq2
158%{_includedir}/apache/apreq2/apreq_module_apache2.h
cf832cb6 159
8facfd24 160%if %{with static_libs}
54449e60
JB
161%files static
162%defattr(644,root,root,755)
8facfd24 163%{_libdir}/libapreq2.a
72fd97f6 164%endif
cf832cb6 165
166%files -n perl-%{name}
167%defattr(644,root,root,755)
a1a66e30 168%{perl_vendorarch}/Apache2/*.pm
a1a66e30 169%{perl_vendorarch}/APR/*.pm
170%dir %{perl_vendorarch}/APR/Request
8facfd24
JB
171%{perl_vendorarch}/APR/Request/*.pm
172%dir %{perl_vendorarch}/auto/APR/Request
173%dir %{perl_vendorarch}/auto/APR/Request/*
174%{perl_vendorarch}/auto/APR/Request/*/*.bs
175%attr(755,root,root) %{perl_vendorarch}/auto/APR/Request/*/*.so
a1a66e30 176
55dd29cf 177# TODO: generate these manually; Makefile.PL (and overall logic) is broken
a1a66e30 178%{_mandir}/man3/Apache*
179%{_mandir}/man3/APR*
ed847b8a 180
84d5e113 181%files -n apache-mod_apreq2
ed847b8a 182%defattr(644,root,root,755)
b3c6ac5e
ER
183%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{pkgconfdir}/*_mod_apreq2.conf
184%attr(755,root,root) %{pkglibdir}/mod_apreq2.so
This page took 0.158514 seconds and 4 git commands to generate.