[openoffice.org-extendedPDF] rebuild for libreoffice

Caolan McNamara caolanm at fedoraproject.org
Fri Oct 29 14:43:31 UTC 2010


commit d2924057b41c3fbb876a6b8d58ebe588ad12334c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 29 15:43:32 2010 +0100

    rebuild for libreoffice

 openoffice.org-extendedPDF.spec |   35 +++++++++++++++--------------------
 1 files changed, 15 insertions(+), 20 deletions(-)
---
diff --git a/openoffice.org-extendedPDF.spec b/openoffice.org-extendedPDF.spec
index 582122e..9c0a799 100644
--- a/openoffice.org-extendedPDF.spec
+++ b/openoffice.org-extendedPDF.spec
@@ -1,10 +1,12 @@
 %define extname extendedPDF.zip
-#Really a no-arch package, but need to be arch for OpenOffice
+%define instdir %{_libdir}
+%define baseinstdir %{instdir}/libreoffice
+#Really a no-arch package, but need to be arch for LibreOffice
 %global debug_package %{nil}
 
 Name:           openoffice.org-extendedPDF
 Version:        1.4
-Release:        10%{?dist}
+Release:        11%{?dist}
 Summary:        Create PDF with hyperlinks, bookmarks and more
 
 Group:          Applications/Productivity
@@ -20,11 +22,7 @@ Patch0:         openoffice.org-extendedPDF-1.4.0-oooVersion.patch
 # Use xdg-open instead of xpdf
 Patch1:         openoffice.org-extendedPDF-1.4.0-xdg-open.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires(pre):    openoffice.org-core
-Requires(post):   openoffice.org-core
-Requires(preun):  openoffice.org-core
-Requires(postun): openoffice.org-core
-
+Requires:       libreoffice-core
 
 %description
 Create PDF with hyperlinks, bookmarks and more.
@@ -38,10 +36,10 @@ directly from your existing document styles, with total flexibility. No extra
 work for you and a much better experience for your readers!
 
 extendedPDF also converts hyperlinks to PDF hyperlinks, so that links work
-the same in your OpenOffice.org document and your PDF document.
+the same in your LibreOffice documents and your PDF document.
 
 Allow reviewers to read and add to the notes that you made on the
-OpenOffice.org original! extendedPDF can convert OpenOffice.org Notes to PDF
+LibreOffice original! extendedPDF can convert LibreOffice Notes to PDF
 Note Annotations. These can be read in both Acrobat Reader and Acrobat, and
 can be edited in Acrobat. 
 
@@ -64,31 +62,28 @@ unzip ../extendedPDF.zip
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/openoffice.org/extensions/
-cp -a %{extname}.unpack $RPM_BUILD_ROOT%{_libdir}/openoffice.org/extensions/%{extname}
+mkdir -p $RPM_BUILD_ROOT%{baseinstdir}/share/extensions
+cp -a %{extname}.unpack $RPM_BUILD_ROOT%{baseinstdir}/share/extensions/%{extname}
 #Is empty
-rm $RPM_BUILD_ROOT%{_libdir}/openoffice.org/extensions/%{extname}/mimetype
+rm $RPM_BUILD_ROOT%{baseinstdir}/share/extensions/%{extname}/mimetype
 # Cleanup patch backups
-find $RPM_BUILD_ROOT%{_libdir}/openoffice.org/extensions/%{extname} -name \*.orig -exec rm '{}' \;
+find $RPM_BUILD_ROOT%{baseinstdir}/share/extensions/%{extname} -name \*.orig -exec rm '{}' \;
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
-%pre
-if [ $1 -gt 1 ]; then
-    # Upgrade => deregister old < 3.3 extension
-    unopkg remove --shared org.openoffice.legacy.%{extname} || :
-fi
-
 %files
 %defattr(-,root,root,-)
 %doc COPYING.txt extendedPDF-User-Guide.*
-%{_libdir}/openoffice.org/extensions/%{extname}
+%{baseinstdir}/share/extensions/%{extname}
 
 
 %changelog
+* Fri Oct 29 2010 Caolán McNamara <caolanm at redhat.com> 1.4-11
+- rebuild for LibreOffice
+
 * Mon Jul 19 2010 Orion Poplawski <orion at cora.nwra.com> 1.4-10
 - Don't build a debug package (bug #615038)
 


More information about the scm-commits mailing list