%define oover 1.1.3 %define oofile OOo_%{oover}_LinuxIntel_install Name : openoffice.org Version : %{oover} Release : 1.FC1 License : LGPL Summary : OpenOffice.org comprehensive office suite. Group : Applications/Productivity URL : http://www.openoffice.org/ Vendor : OpenOffice.org Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source0 : %{oofile}.tar.gz Source1 : ooinstall Source2 : oo Obsoletes : openoffice.org < %{oover} Obsoletes : openoffice.org-i18n < %{oover} Obsoletes : openoffice.org-libs < %{oover} AutoReq : no AutoProv : no %description OpenOffice.org is an Open Source, community-developed, multi-platform office productivity suite. It includes the key desktop applications, such as a word processor, spreadsheet, presentation manager, formula editor and drawing program, with a user interface and feature set similar to other office suites. Sophisticated and flexible, OpenOffice.org also works transparently with a variety of file formats, including Microsoft Office. Usage: Simply type "ooinstall" to install OpenOffice.org then launch it from GNOME/Office Menu. %prep rm -rf %{buildroot} ####################################################################### # setup macro # -a num : Only unpack source number after changing to the directory # -b num : Only unpack source number before changing to the directory # -c : Create directory before unpacking. # -D : Do not delete the directory before unpacking # -n name : Name the directory as name # -q : Run quiety with minimum output # -T : Disable the automatic unpacking of the archives. ####################################################################### # %setup -q -n %{oofile} ######################################################### # Common Red Hat RPM macros (rpm --showrc for more info) # {_sourcedir} : /usr/src/redhat/SOURCES # {_builddir} : /usr/src/redhat/BUILD # {_tmppath} : /var/tmp # {_libdir} : /usr/lib # {_bindir} : /usr/bin # {_datadir} : /usr/share # {_mandir} : /usr/share/man # {_docdir} : /usr/share/doc # {_sysconfdir} : /etc # {buildroot} # {name} # {version} # {release} ######################################################### %install %{__install} -D -m 644 %{SOURCE0} %{buildroot}%{_datadir}/openoffice.org/%{oofile}.tar.gz %{__install} -D -m 755 %{SOURCE1} %{buildroot}%{_bindir}/ooinstall %{__install} -D -m 755 %{SOURCE2} %{buildroot}%{_bindir}/oo %clean rm -rf %{buildroot} %post echo echo "Simply type \"ooinstall\" to install OpenOffice.org!" echo %files ############################################################################## # %defattr sets the default attributes for all files # # If you use %config(noreplace), the file will not overwrite an existing file that # has been modified. If the file has been modified on disk, the rpm command will # overwrite the file. But, if the file has been modified on disk, the rpm command will # copy the new file with an extra file-name extension of .rpmnew. ###################################################################################### %defattr(-, root, root) %{_datadir}/* %{_bindir}/* %changelog * Sun Oct 10 2004 Thomas Chung 1.1.3-1.FC1 - Add command line wrapper in /usr/bin/oo * Fri Oct 09 2004 Thomas Chung 1.1.3-0.FC1 - Initial RPM build