SPECS: apache-mod_bt.spec - unified - doesn't build, so rel 0.1
glen
glen at pld-linux.org
Mon Dec 26 20:09:28 CET 2005
Author: glen Date: Mon Dec 26 19:09:28 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- unified
- doesn't build, so rel 0.1
---- Files affected:
SPECS:
apache-mod_bt.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: SPECS/apache-mod_bt.spec
diff -u SPECS/apache-mod_bt.spec:1.3 SPECS/apache-mod_bt.spec:1.4
--- SPECS/apache-mod_bt.spec:1.3 Thu May 27 18:44:02 2004
+++ SPECS/apache-mod_bt.spec Mon Dec 26 20:09:23 2005
@@ -5,21 +5,21 @@
Summary(pl): Tracker BitTorrenta w formie modułu Apache'a
Name: apache-mod_%{mod_name}
Version: 0.0.4
-Release: 1
+Release: 0.1
License: GPL
Group: Networking/Daemons
-Source0: http://www.crackerjack.net/mod_%{mod_name}/mod_%{mod_name}-0.0.4.tgz
+Source0: http://www.crackerjack.net/mod_%{mod_name}/mod_%{mod_name}-%{version}.tgz
# Source0-md5: dfb1f1a1aaae3313d8e1056a3d317740
Patch0: %{name}-paths.patch
URL: http://www.crackerjack.net/mod_bt/
BuildRequires: %{apxs}
-BuildRequires: apache-devel
+BuildRequires: apache-devel >= 2.0
BuildRequires: db-devel >= 4.2.52
-Requires(post,preun): %{apxs}
-Requires: apache
+Requires: apache(modules-api) = %apache_modules_api
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _pkglibdir %(%{apxs} -q LIBEXECDIR)
+%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null)
%description
Apache-based BitTorrent Tracker.
@@ -36,22 +36,22 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_pkglibdir}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/httpd.conf}
install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
+ $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/90_mod_%{mod_name}.conf
%clean
rm -rf $RPM_BUILD_ROOT
%post
-%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
fi
%preun
if [ "$1" = "0" ]; then
- %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
if [ -f /var/lock/subsys/httpd ]; then
/etc/rc.d/init.d/httpd restart 1>&2
fi
@@ -60,6 +60,7 @@
%files
%defattr(644,root,root,755)
%doc README
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*_mod_%{mod_name}.conf
%attr(755,root,root) %{_pkglibdir}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -68,6 +69,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2005/12/26 19:09:23 glen
+- unified
+- doesn't build, so rel 0.1
+
Revision 1.3 2004/05/27 16:44:02 qboosh
- pl
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/apache-mod_bt.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list