%define pkg_name Apache-AxKit-Plugin-Session %define pkg_version 0.99 %define rpm_version 0.99 %define rpm_release 1.n0i.2 %define filelist %{_tmppath}/%{name}-%{version}-%{release}.filelist %define make_test %{?_without_test:0}%{!?_without_test:1} %{!?perl_vendorlib: %define perl_vendorlib %(perl -MConfig -le 'print $Config{vendorlibexp}')} Summary: flexible session management for AxKit Version: %{rpm_version} Name: perl-%{pkg_name} %if "%{pkg_version}" == "%{rpm_version}" Release: %{rpm_release} %else Release: %{rpm_release}.%{pkg_version} %endif Epoch: 0 License: Artistic Group: Development/Languages URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: ftp://ftp.cpan.org/authors/id/J/JW/JWALT/%{pkg_name}-%{pkg_version}.tar.gz Requires: perl(:MODULE_COMPAT_%(%{__perl} -le 'printf "%%vd", $^V')) BuildRequires: perl(ExtUtils::MakeMaker) %if %{?make_test} BuildRequires: perl(Apache::Session) BuildRequires: perl(AxKit) >= 1.6.1 %endif Requires: perl(AxKit) >= 1.6.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %description This is a session management plugin for AxKit. It features Session ID tracking via URL encoding or cookies, with auto- fallback when cookies are not avialable. It also provides utilities to avoid the pitfalls commonly encountered with URL based session IDs. You get XSP taglibs for accessing and modifying all session related data. The "Session" taglib is compatible with Cocoon, while the others don't have any known counterpart. %prep %setup -n %{pkg_name}-%{pkg_version} %build export PERL_MM_USE_DEFAULT=1 perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor make %if %{?make_test} make test %endif %install rm -rf $RPM_BUILD_ROOT make install [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress # remove unnecessary files find $RPM_BUILD_ROOT -name perllocal.pod -o -name .packlist | xargs -ri rm -f {} find $RPM_BUILD_ROOT -name "*.bs" -a -empty | xargs -ri rm -f {} # no empty directories find $RPM_BUILD_ROOT -depth -type d -a -empty | xargs -ri rmdir {} # build files list find $RPM_BUILD_ROOT -type f -print \ | sed "s@^$RPM_BUILD_ROOT@@g" > %{filelist} find $RPM_BUILD_ROOT%{perl_vendorlib} -type d -print \ | sed "s@^$RPM_BUILD_ROOT@%%dir @g" \ | grep -v '^%dir %{perl_vendorlib}$' \ >> %{filelist} || : if [ -z %{filelist} ] ; then echo "ERROR: EMPTY FILE LIST" exit -1 fi # mark POD files as documentation perl -pi -e 's/^(.+?\.pod)$/%%doc $1/' %{filelist} %clean rm -rf $RPM_BUILD_ROOT rm -f %{filelist} %files -f %{filelist} %defattr(-,root,root) %doc Changes logoff.xsp logon.xsp README session-cleanup.sh %changelog * Sun Mar 20 2005 Marius Feraru 0:0.99-1.n0i.2 - automatic rebuild (perl 5.8.6) * Thu Jan 27 2005 Marius Feraru 0:0.99-1.n0i.1 - version 0.99 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601