Commit 0a721dd2022308ed345aafd89bcc0412c1e36402

Authored by perry.werneck@gmail.com
1 parent 29389571

Incluindo extensão libreoffice no rpm padrao

Showing 1 changed file with 35 additions and 1 deletions   Show diff stats
pw3270.spec.in
@@ -72,7 +72,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -72,7 +72,17 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
72 Requires: openssl shared-mime-info lib3270 = @PACKAGE_VERSION@ 72 Requires: openssl shared-mime-info lib3270 = @PACKAGE_VERSION@
73 Provides: lib@PACKAGE@ = @PACKAGE_VERSION@ lib@PACKAGE@.so = @PACKAGE_VERSION@ 73 Provides: lib@PACKAGE@ = @PACKAGE_VERSION@ lib@PACKAGE@.so = @PACKAGE_VERSION@
74 Distribution: %_distro 74 Distribution: %_distro
75 -BuildRequires: autoconf >= 2.61 automake gcc-c++ sed pkgconfig %{_bldreq} gettext-devel findutils coreutils desktop-file-utils 75 +BuildRequires: autoconf >= 2.61
  76 +BuildRequires: automake
  77 +BuildRequires: gcc-c++
  78 +BuildRequires: sed
  79 +BuildRequires: pkgconfig
  80 +BuildRequires: %{_bldreq}
  81 +BuildRequires: gettext-devel
  82 +BuildRequires: findutils
  83 +BuildRequires: coreutils
  84 +BuildRequires: desktop-file-utils
  85 +BuildRequires: libreoffice-sdk
76 86
77 %description 87 %description
78 IBM 3270 terminal emulator gtk. It can be used to communicate with 88 IBM 3270 terminal emulator gtk. It can be used to communicate with
@@ -120,6 +130,18 @@ Plugin exporting a DBUS object from every %{name} open session. @@ -120,6 +130,18 @@ Plugin exporting a DBUS object from every %{name} open session.
120 130
121 Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ 131 Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@
122 132
  133 +%package -n libreoffice-extension-%{name}
  134 +Summary: %{name} extension for libreoffice
  135 +Group: Productivity/Office/Suite
  136 +Requires: %{name} = @PACKAGE_VERSION@
  137 +Requires: libreoffice
  138 +
  139 +%description -n libreoffice-extension-%{name}
  140 +This package provides 3270 access object to StarBasic.
  141 +
  142 +Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@
  143 +
  144 +
123 #---[ Build & Install ]----------------------------------------------------------------------------------------------- 145 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
124 146
125 %prep 147 %prep
@@ -131,6 +153,8 @@ autoconf @@ -131,6 +153,8 @@ autoconf
131 export CFLAGS="$RPM_OPT_FLAGS" 153 export CFLAGS="$RPM_OPT_FLAGS"
132 export CXXFLAGS="$RPM_OPT_FLAGS" 154 export CXXFLAGS="$RPM_OPT_FLAGS"
133 export FFLAGS="$RPM_OPT_FLAGS" 155 export FFLAGS="$RPM_OPT_FLAGS"
  156 +export OFFICE_HOME=%{_libdir}/libreoffice
  157 +export OO_SDK_HOME=%{_libdir}/libreoffice/sdk
134 %configure 158 %configure
135 159
136 %build 160 %build
@@ -190,6 +214,16 @@ rm -rf $RPM_BUILD_ROOT @@ -190,6 +214,16 @@ rm -rf $RPM_BUILD_ROOT
190 %files plugin-dbus 214 %files plugin-dbus
191 %{_libdir}/@PACKAGE_NAME@-plugins/dbus3270.so 215 %{_libdir}/@PACKAGE_NAME@-plugins/dbus3270.so
192 216
  217 +%files -n libreoffice-extension-%{name}
  218 +%dir %{_libdir}/libreoffice/share/extensions/%{name}
  219 +%{_libdir}/libreoffice/share/extensions/%{name}/META-INF/manifest.xml
  220 +%{_libdir}/libreoffice/share/extensions/%{name}/description.txt
  221 +%{_libdir}/libreoffice/share/extensions/%{name}/description.xml
  222 +%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.png
  223 +%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.uno.rdb
  224 +%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.uno.so
  225 +
  226 +
193 #---[ Scripts ]------------------------------------------------------------------------------------------------------- 227 #---[ Scripts ]-------------------------------------------------------------------------------------------------------
194 228
195 %post 229 %post