[perl-OpenOffice-UNO/el6] Forget OpenOffice.org

Lubomir Rintel lkundrak at fedoraproject.org
Wed Aug 8 22:01:46 UTC 2012


commit 55a52c17cf14cfa376780e0c744f948a53922f74
Author: Lubomir Rintel <lubo.rintel at gooddata.com>
Date:   Thu Aug 9 00:01:31 2012 +0200

    Forget OpenOffice.org
    
    - Forget what?

 perl-OpenOffice-UNO.spec |   26 ++++++++++++--------------
 1 files changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/perl-OpenOffice-UNO.spec b/perl-OpenOffice-UNO.spec
index 297db82..b0e82b8 100644
--- a/perl-OpenOffice-UNO.spec
+++ b/perl-OpenOffice-UNO.spec
@@ -1,12 +1,6 @@
-%if 0%{?rhel} < 7 && 0%{?fedora} < 16
-%global soffice openoffice.org
-%else
-%global soffice libreoffice
-%endif
-
 Name:           perl-OpenOffice-UNO
 Version:        0.07
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Interface to OpenOffice's UNO run-time
 License:        LGPLv2+ and SISSL
 Group:          Development/Libraries
@@ -21,11 +15,11 @@ BuildRequires:  perl(Cwd)
 BuildRequires:  perl(Exporter)
 BuildRequires:  perl(File::Path)
 BuildRequires:  /usr/bin/ooffice
-BuildRequires:  %{soffice}-sdk >= 1:3
-BuildRequires:  %{soffice}-sdk < 1:4
-BuildRequires:  %{soffice}-writer
-BuildRequires:  %{soffice}-calc
-BuildRequires:  %{soffice}-headless
+BuildRequires:  libreoffice-sdk >= 1:3
+BuildRequires:  libreoffice-sdk < 1:4
+BuildRequires:  libreoffice-writer
+BuildRequires:  libreoffice-calc
+BuildRequires:  libreoffice-headless
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
@@ -39,11 +33,11 @@ A bridge to the OpenOffice.org API.
 
 
 %build
-. $(find %{_libdir}/%{soffice} -name setsdkenv_unix.sh -print -quit)
+. $(find %{_libdir}/libreoffice -name setsdkenv_unix.sh -print -quit)
 
 # Auto-set bootstrap. Weird, but similar to what is done for python bindings.
 awk '/bootstrap OpenOffice::UNO/ \
-        {print "$ENV{URE_BOOTSTRAP} ||= \"vnd.sun.star.pathname:'$(echo %{_libdir}/%{soffice}*/program/fundamentalrc)'\";"}
+        {print "$ENV{URE_BOOTSTRAP} ||= \"vnd.sun.star.pathname:'$(echo %{_libdir}/libreoffice*/program/fundamentalrc)'\";"}
         {print}' UNO.pm >UNO-bootstrap.pm
 mv UNO-bootstrap.pm UNO.pm
 
@@ -83,6 +77,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Aug 08 2012 Lubomir Rintel (GoodData) <lubo.rintel at gooddata.com> 0.07-4
+- Forget OpenOffice.org
+- Forget what?
+
 * Sat Feb 11 2012 Lubomir Rintel (GoodData) <lubo.rintel at gooddata.com> 0.07-3
 - Add missing BRs, fix up the rpath patch (Petr Ĺ abata, #788990)
 


More information about the scm-commits mailing list