#
-# "$Id: cups.spec.in 5224 2006-03-04 02:00:43Z mike $"
+# "$Id: cups.spec.in 5310 2006-03-19 03:23:34Z mike $"
#
# RPM "spec" file for the Common UNIX Printing System (CUPS).
#
%{!?_with_dbus: %define _dbus --disable-dbus}
%{!?_with_php: %{!?_without_php: %define _with_php --with-php}}
+%{?_with_php: %define _php --with-php}
+%{!?_with_php: %define _php --without-php}
Summary: Common UNIX Printing System
Name: cups
Group: System Environment/Daemons
Requires: %{name} = %{epoch}:%{version} xinetd
+%package es
+Summary: Common UNIX Printing System - Spanish support
+Group: System Environment/Daemons
+Requires: %{name} = %{epoch}:%{version}
+
%package ja
Summary: Common UNIX Printing System - Japanese support
Group: System Environment/Daemons
The Common UNIX Printing System provides a portable printing layer for
UNIX® operating systems. This package provides LPD client support.
+%description es
+The Common UNIX Printing System provides a portable printing layer for
+UNIX® operating systems. This package provides Spanish support.
+
%description ja
The Common UNIX Printing System provides a portable printing layer for
UNIX® operating systems. This package provides Japanese support.
%setup
%build
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure %{_dbus} %{_without_php}
-
+%ifarch x86_64
+./configure --enable-32bit %{_dbus} %{_php}
+%else
+CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" \
+ ./configure %{_dbus} %{_php}
+%endif
# If we got this far, all prerequisite libraries must be here.
make
%attr(0710,lp,sys) %dir /var/spool/cups
%attr(1770,lp,sys) %dir /var/spool/cups/tmp
+# Desktop files
+/usr/share/applications/*
+/usr/share/icons/*
+
%files devel
%defattr(-,root,root)
%dir /usr/share/man/man1
%dir /usr/include/cups
/usr/include/cups/*
#/usr/lib/*.a
-/usr/lib/*.so
+/usr/lib*/*.so
%dir /usr/share/doc/cups/help
/usr/share/doc/cups/help/api*.html
%files libs
%defattr(-,root,root)
-/usr/lib/*.so.*
+/usr/lib*/*.so.*
%files lpd
%defattr(-,root,root)
-#/etc/xinetd.d/cups-lpd
+/etc/xinetd.d/cups-lpd
%dir /usr/lib/cups
%dir /usr/lib/cups/daemon
/usr/lib/cups/daemon/cups-lpd
%dir /usr/share/man/man8
/usr/share/man/man8/cups-lpd.8.gz
+%files es
+%defattr(-,root,root)
+%dir /usr/share/doc/cups/es
+/usr/share/doc/cups/es/index.html
+%dir /usr/share/doc/cups/es/images
+/usr/share/doc/cups/es/images/*
+%dir /usr/share/cups/templates/es
+/usr/share/cups/templates/es/*
+/usr/share/locale/es/cups_es.po
+
%files ja
%defattr(-,root,root)
%dir /usr/share/doc/cups/ja
%if %{?_with_php:1}%{!?_with_php:0}
%files php
# PHP
-/usr/lib/php*
+/usr/lib*/php*
%endif
#
-# End of "$Id: cups.spec.in 5224 2006-03-04 02:00:43Z mike $".
+# End of "$Id: cups.spec.in 5310 2006-03-19 03:23:34Z mike $".
#