Search
j0ke.net Open Build Service
>
Projects
>
Apache
:
Modules
>
apache2-mod_zrkadlo
> apache2-mod_zrkadlo.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File apache2-mod_zrkadlo.spec of Package apache2-mod_zrkadlo (Revision 2)
Currently displaying revision
2
,
show latest
# # spec file for package apache2-mod_zrkadlo (Version 1.0) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild %define apxs /usr/sbin/apxs2 %define apache apache2 %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define apache_includedir %(%{apxs} -q INCLUDEDIR) %define apache_serverroot %(%{apxs} -q PREFIX) %define apache_localstatedir %(%{apxs} -q LOCALSTATEDIR) %define apache_mmn %(MMN=$(%{apxs} -q LIBEXECDIR)_MMN; test -x $MMN && $MMN) Name: apache2-mod_zrkadlo Summary: A download redirector BuildRequires: apache2-devel apache2-prefork GeoIP GeoIP-devel apache2-webthings-collection BuildRequires: apache2-mod_memcache BuildRequires: python-devel Version: 2.2 Release: 0 License: Apache License 2.0 Group: Productivity/Networking/Web/Servers #Source1: mod_zrkadlo.c Requires: apache2 %{apache_mmn} # # for mod_form Requires: apache2-webthings-collection Requires: apache2-mod_memcache # # for the tools: Requires: python-mysql python-sqlobject python-cmdln perl-Config-IniFiles # Autoreqprov: on # # svn export 'https://forgesvn1.novell.com/svn/opensuse/trunk/tools/download-redirector-v2' download-redirector-v2; tar czf download-redirector-v2.tar.gz download-redirector-v2 Source: download-redirector-v2.tar.gz # BuildRoot: %{_tmppath}/%{name}-%{version}-build %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description This apache module redirects clients to mirror servers, using an SQL backend. The package contains also * tools to maintain the mirror database * mirror monitoring * mirror scanning (The tools should be split into a subpackage in fact...) Author: Peter Poeml <poeml@suse.de> %prep %setup -n download-redirector-v2 %build cd mod_zrkadlo %{apxs} -c -lGeoIP -Wc,"-Wall -g" mod_zrkadlo.c gcc $RPM_OPT_FLAGS -Wall -lGeoIP -o geoiplookup_continent geoiplookup_continent.c cd ../mod_autoindex_mb %{apxs} -c -Wc,"-Wall -g" mod_autoindex_mb.c cd ../mirrordoctor CFLAGS="%{optflags}" \ %{__python} setup.py build %install mkdir -p $RPM_BUILD_ROOT/%{apache_libexecdir} cp -p mod_zrkadlo/.libs/mod_zrkadlo.so $RPM_BUILD_ROOT/%{apache_libexecdir} cp -p mod_autoindex_mb/.libs/mod_autoindex_mb.so $RPM_BUILD_ROOT/%{apache_libexecdir} install -D -m 755 mod_zrkadlo/geoiplookup_continent $RPM_BUILD_ROOT/%{_bindir}/geoiplookup_continent # tools install -D -m 755 tools/set_mirror_score $RPM_BUILD_ROOT/%{_bindir}/set_mirror_score install -D -m 755 tools/rsyncinfo.py $RPM_BUILD_ROOT/%{_bindir}/rsyncinfo install -D -m 755 tools/rsyncusers $RPM_BUILD_ROOT/%{_bindir}/rsyncusers install -D -m 755 tools/metalink-hasher.py $RPM_BUILD_ROOT/%{_bindir}/metalink-hasher install -D -m 755 tools/geoip-lite-update $RPM_BUILD_ROOT/%{_bindir}/geoip-lite-update install -D -m 755 scanner/scanner.pl $RPM_BUILD_ROOT/%{_bindir}/scanner install -D -m 755 mirrorprobe/mirrorprobe.py $RPM_BUILD_ROOT/%{_bindir}/mirrorprobe # compat for previous name ln -s mirrorprobe $RPM_BUILD_ROOT/%{_bindir}/pingd cd mirrordoctor %{__python} setup.py install --prefix=%{_prefix} --root %{buildroot} ln -s mirrordoctor.py %{buildroot}/%{_bindir}/mirrordoctor ln -s mirrordoctor.py %{buildroot}/%{_bindir}/mb %files %defattr(-,root,root) %{apache_libexecdir}/*.so %doc ABOUT BUGS INSTALL THANKS FAQ TODO NEWS %doc mod_autoindex_mb/NOTICE %doc mod_zrkadlo/*.conf %doc sql %{_bindir}/* %{python_sitelib}/* %changelog -n apache2-mod_zrkadlo