rpms/cups/devel cups.spec,1.394,1.395
Tim Waugh (twaugh)
fedora-extras-commits at redhat.com
Tue Feb 26 16:41:18 UTC 2008
- Previous message (by thread): rpms/libpfm/devel libpfm-3.3-ia64-build.patch, NONE, 1.1 libpfm.spec, 1.29, 1.30
- Next message (by thread): rpms/jd/F-7 .cvsignore, 1.182, 1.183 jd.spec, 1.207, 1.208 sources, 1.183, 1.184
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: twaugh
Update of /cvs/pkgs/rpms/cups/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24031
Modified Files:
cups.spec
Log Message:
* Tue Feb 26 2008 Tim Waugh <twaugh at redhat.com>
- Move HTML-related files to main application directory so that the CUPS
web interface still works even with --excludedocs (bug #375631).
Index: cups.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cups/devel/cups.spec,v
retrieving revision 1.394
retrieving revision 1.395
diff -u -r1.394 -r1.395
--- cups.spec 26 Feb 2008 14:56:43 -0000 1.394
+++ cups.spec 26 Feb 2008 16:40:37 -0000 1.395
@@ -179,7 +179,7 @@
%build
export CFLAGS="-DLDAP_DEPRECATED=1"
-%configure --with-docdir=%{_docdir}/cups-%{version} \
+%configure --with-docdir=%{_datadir}/%{name}/www \
--with-optim="$RPM_OPT_FLAGS $CFLAGS -fstack-protector-all" \
%if %lspp
--enable-lspp \
@@ -239,31 +239,6 @@
install -c -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{cups_serverbin}/filter
%endif
-# Deal with users trying to access the admin tool at
-# /usr/share/doc/cups-%{version}/index.html rather than the
-# correct http://localhost:631/
-for i in admin classes jobs printers; do
- mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i
- cat >$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i/index.html <<EOF
-<?xml version="1.0"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
-<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="refresh" content="2; URL=http://localhost:631/$i" />
-<title>CUPS $i</title>
-</head>
-<body bgcolor="#cccc99" text="#000000" link="#0000ff" vlink="#ff00ff">
-<p>You are trying to access the CUPS admin frontend through reading the files.
-The correct way to access the CUPS admin frontend is pointing your browser at
-<a href="http://localhost:631/">http://localhost:631/</a>.</p>
-<p>You should be automatically redirected to the correct URL in 2 seconds.
-If your browser does not support redirection, please use
-<a href="http://localhost:631/$i">this link</a>.</p>
-</body>
-</html>
-EOF
-done
-
cat >$RPM_BUILD_ROOT%{_sysconfdir}/cups/snmp.conf <<"EOF"
#Address @LOCAL
#Community public
@@ -380,27 +355,22 @@
/etc/cups/pstoraster.convs
%config(noreplace) /etc/pam.d/cups
%config(noreplace) %{_sysconfdir}/logrotate.d/cups
-%dir %{_docdir}/cups-%{version}
-%{_docdir}/cups-%{version}/favicon.*
-%{_docdir}/cups-%{version}/images
-%{_docdir}/cups-%{version}/de
-%{_docdir}/cups-%{version}/es
-%{_docdir}/cups-%{version}/et
-%{_docdir}/cups-%{version}/fr
-%{_docdir}/cups-%{version}/he
-%{_docdir}/cups-%{version}/it
-%{_docdir}/cups-%{version}/ja
-%{_docdir}/cups-%{version}/pl
-%{_docdir}/cups-%{version}/sv
-%{_docdir}/cups-%{version}/zh_TW
-%{_docdir}/cups-%{version}/*.css
-%{_docdir}/cups-%{version}/admin
-%{_docdir}/cups-%{version}/classes
-%{_docdir}/cups-%{version}/jobs
-%{_docdir}/cups-%{version}/printers
-%doc %{_docdir}/cups-%{version}/index.html
-%doc %{_docdir}/cups-%{version}/help
-%doc %{_docdir}/cups-%{version}/robots.txt
+%{_datadir}/%{name}/www/favicon.*
+%{_datadir}/%{name}/www/images
+%{_datadir}/%{name}/www/de
+%{_datadir}/%{name}/www/es
+%{_datadir}/%{name}/www/et
+%{_datadir}/%{name}/www/fr
+%{_datadir}/%{name}/www/he
+%{_datadir}/%{name}/www/it
+%{_datadir}/%{name}/www/ja
+%{_datadir}/%{name}/www/pl
+%{_datadir}/%{name}/www/sv
+%{_datadir}/%{name}/www/zh_TW
+%{_datadir}/%{name}/www/*.css
+%doc %{_datadir}/%{name}/www/index.html
+%doc %{_datadir}/%{name}/www/help
+%doc %{_datadir}/%{name}/www/robots.txt
%config(noreplace) %{initdir}/cups
%{_bindir}/cupstestppd
%{_bindir}/cupstestdsc
@@ -457,6 +427,10 @@
%{cups_serverbin}/daemon/cups-lpd
%changelog
+* Tue Feb 26 2008 Tim Waugh <twaugh at redhat.com>
+- Move HTML-related files to main application directory so that the CUPS
+ web interface still works even with --excludedocs (bug #375631).
+
* Tue Feb 26 2008 Tim Waugh <twaugh at redhat.com> 1:1.3.6-3
- Set MaxLogSize to 0 to prevent log rotation. Upstream default is 1Mb, but
we want logrotate to be in charge.
- Previous message (by thread): rpms/libpfm/devel libpfm-3.3-ia64-build.patch, NONE, 1.1 libpfm.spec, 1.29, 1.30
- Next message (by thread): rpms/jd/F-7 .cvsignore, 1.182, 1.183 jd.spec, 1.207, 1.208 sources, 1.183, 1.184
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list