Commit 71e65f9a575baf348e498978b37871bb1a034dcc
1 parent
9861400a
Exists in
master
and in
5 other branches
Ajustando empacotamento rpm.
Showing
2 changed files
with
397 additions
and
241 deletions
Show diff stats
Makefile.in
| ... | ... | @@ -370,7 +370,8 @@ install-sdk: |
| 370 | 370 | @$(INSTALL_DATA) src/include/lib3270/session.h $(DESTDIR)/$(includedir)/lib3270 |
| 371 | 371 | |
| 372 | 372 | @$(MKDIR) $(DESTDIR)$(includedir)/pw3270 |
| 373 | - @$(INSTALL_DATA) src/include/pw3270/v3270.h $(DESTDIR)/$(includedir)/pw3270 | |
| 373 | + @$(INSTALL_DATA) src/pw3270/include/*.h $(DESTDIR)/$(includedir)/pw3270 | |
| 374 | + | |
| 374 | 375 | @$(INSTALL_DATA) src/include/pw3270/trace.h $(DESTDIR)/$(includedir)/pw3270 |
| 375 | 376 | @$(INSTALL_DATA) src/include/pw3270/plugin.h $(DESTDIR)/$(includedir)/pw3270 |
| 376 | 377 | @$(INSTALL_DATA) src/include/pw3270.h $(DESTDIR)/$(includedir) | ... | ... |
pw3270.spec.in
| 1 | 1 | # |
| 2 | -# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
| 3 | -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
| 4 | -# aplicativos mainframe. Registro no INPI sob o nome G3270. | |
| 2 | +# spec file for package @PACKAGE@ | |
| 5 | 3 | # |
| 6 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 4 | +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. | |
| 5 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | |
| 7 | 6 | # |
| 8 | -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
| 9 | -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
| 10 | -# Free Software Foundation. | |
| 7 | +# All modifications and additions to the file contributed by third parties | |
| 8 | +# remain the property of their copyright owners, unless otherwise agreed | |
| 9 | +# upon. The license for this file, and modifications and additions to the | |
| 10 | +# file, is the same license as for the pristine package itself (unless the | |
| 11 | +# license for the pristine package is not an Open Source License, in which | |
| 12 | +# case the license is the MIT License). An "Open Source License" is a | |
| 13 | +# license that conforms to the Open Source Definition (Version 1.9) | |
| 14 | +# published by the Open Source Initiative. | |
| 15 | + | |
| 16 | +# Please submit bugfixes or comments via http://bugs.opensuse.org/ | |
| 11 | 17 | # |
| 12 | -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
| 13 | -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
| 14 | -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
| 15 | -# obter mais detalhes. | |
| 16 | -# | |
| 17 | -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
| 18 | -# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple | |
| 19 | -# Place, Suite 330, Boston, MA, 02111-1307, USA | |
| 20 | -# | |
| 21 | -# Contatos: | |
| 18 | + | |
| 19 | +%define LIBVERSION %(echo @PACKAGE_VERSION@ | sed -e "s@.@_@g") | |
| 20 | +#5_1 | |
| 21 | + | |
| 22 | +# | |
| 23 | +# References: | |
| 22 | 24 | # |
| 23 | -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
| 24 | -# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | |
| 25 | -# licinio@bb.com.br (Licínio Luis Branco) | |
| 26 | -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) | |
| 25 | +# https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code | |
| 27 | 26 | # |
| 28 | 27 | |
| 28 | +%define _dbus 1 | |
| 29 | +%define _office 0 | |
| 30 | +%define _php 0 | |
| 31 | +%define _ooRexx 1 | |
| 32 | +%define _java 1 | |
| 33 | +%define _python 1 | |
| 29 | 34 | |
| 30 | -#---[ Check for distro ]---------------------------------------------------------------------------------------------- | |
| 35 | +%define _distro linux | |
| 31 | 36 | |
| 32 | -%define _rel @PACKAGE_LEVEL@ | |
| 37 | +#---[ Packaging ]----------------------------------------------------------------------------------------------------- | |
| 33 | 38 | |
| 34 | -%define _release %{_rel} | |
| 35 | -%define _distro Linux | |
| 36 | -%define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0) | |
| 37 | -%define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0) | |
| 38 | -%define _python %(which python-config 2> /dev/null > /dev/null && echo 1 || echo 0) | |
| 39 | -%define _bldreq gtk3-devel libopenssl-devel | |
| 40 | -%define _java 1 | |
| 39 | +Name: @PACKAGE@ | |
| 40 | +Version: @PACKAGE_VERSION@ | |
| 41 | +Release: @PACKAGE_LEVEL@ | |
| 42 | +Summary: IBM 3270 Terminal emulator for GTK | |
| 43 | +License: GPL-2.0 | |
| 44 | +Group: System/X11/Terminals | |
| 45 | +Url: https://portal.softwarepublico.gov.br/social/@PACKAGE@/ | |
| 46 | + | |
| 47 | +Source: %{name}-%{version}.tar.bz2 | |
| 48 | + | |
| 49 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
| 50 | + | |
| 51 | +Requires: lib3270 = %{version} | |
| 52 | +Requires: shared-mime-info | |
| 53 | + | |
| 54 | +Provides: lib@PACKAGE@ = %{version} | |
| 55 | +Provides: lib@PACKAGE@.so = %{version} | |
| 56 | + | |
| 57 | +#--[ Red HAT ]-------------------------------------------------------------------------------------------------------- | |
| 58 | + | |
| 59 | +%if 0%{?rhel_version} | |
| 60 | + | |
| 61 | +%define _distro rhel%{rhel_version} | |
| 62 | + | |
| 63 | +BuildRequires: dbus-devel | |
| 64 | +BuildRequires: dbus-glib-devel | |
| 65 | +BuildRequires: openssl-devel | |
| 66 | + | |
| 67 | +%define _office 0 | |
| 68 | +%define _php 0 | |
| 69 | + | |
| 70 | +%if 0%{?rhel_version} >= 0700 | |
| 71 | + | |
| 72 | +# RHEL 7.0 | |
| 73 | + | |
| 74 | +BuildRequires: gtk3-devel | |
| 75 | + | |
| 76 | +%else | |
| 77 | + | |
| 78 | +# RHEL 6.0 | |
| 79 | +%define _python 0 | |
| 80 | + | |
| 81 | +BuildRequires: gtk2-devel | |
| 82 | +BuildRequires: java-1.6.0-devel | |
| 41 | 83 | |
| 42 | -%if 0%{?_php} | |
| 43 | - %define phpmajor %(php-config --version | cut -d. -f1) | |
| 44 | 84 | %endif |
| 45 | 85 | |
| 46 | -%if 0%{?suse_version} | |
| 47 | - %define _release %{_rel}.suse%{suse_version} | |
| 48 | - %define _distro SuSE Linux %{suse_version} | |
| 49 | - %if %{?suse_version} < 1200 | |
| 50 | - %define _bldreq gtk2-devel >= 2.16 libopenssl-devel | |
| 51 | - %endif | |
| 52 | - | |
| 53 | - %if %{?suse_version} >= 1310 | |
| 54 | - %define _office 0 | |
| 55 | - %define _bldreq gtk3-devel libopenssl-devel | |
| 56 | - %endif | |
| 57 | 86 | %endif |
| 58 | 87 | |
| 88 | +#--[ CentOS ]--------------------------------------------------------------------------------------------------------- | |
| 89 | + | |
| 90 | +%if 0%{?centos_version} | |
| 91 | + | |
| 92 | +%define _distro centos%{centos_version} | |
| 93 | + | |
| 94 | +BuildRequires: pkgconfig(dbus-1) | |
| 95 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 96 | +BuildRequires: pkgconfig(openssl) | |
| 97 | + | |
| 98 | +%if 0%{?centos_version} >= 0700 | |
| 99 | + | |
| 100 | +# CentOS 7 | |
| 101 | + | |
| 102 | +%define _php 5 | |
| 103 | +BuildRequires: php-devel | |
| 104 | + | |
| 105 | +%define _office 0 | |
| 106 | + | |
| 107 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 108 | + | |
| 109 | +%else | |
| 110 | + | |
| 111 | +# CentOS 6 | |
| 112 | + | |
| 113 | +%define _office 0 | |
| 114 | +%define _python 0 | |
| 115 | + | |
| 116 | +BuildRequires: gtk2-devel | |
| 117 | +BuildRequires: java-1.8.0-devel | |
| 118 | + | |
| 119 | +%endif | |
| 120 | + | |
| 121 | +%endif | |
| 122 | + | |
| 123 | +#--[ Fedora ]--------------------------------------------------------------------------------------------------------- | |
| 124 | + | |
| 59 | 125 | %if 0%{?fedora} |
| 60 | - %define _release %{_rel}.fc%{fedora} | |
| 61 | - %define _redhat 0 | |
| 62 | - %define _distro Fedora %{fedora} | |
| 63 | - %define _bldreq gtk3-devel openssl-devel | |
| 126 | + | |
| 127 | +%define _distro fedora%{fedora} | |
| 128 | + | |
| 129 | +BuildRequires: pkgconfig(dbus-1) | |
| 130 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 131 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 132 | +BuildRequires: pkgconfig(openssl) | |
| 133 | + | |
| 134 | +%define _php 5 | |
| 135 | +BuildRequires: php-devel | |
| 136 | + | |
| 137 | +%if 0%{?fedora} >= 21 | |
| 138 | + | |
| 139 | +# Fedora 21 fails on libreoffice sdk | |
| 140 | +%define _office 0 | |
| 141 | + | |
| 142 | +%else | |
| 143 | + | |
| 144 | +#%define _office 0 | |
| 145 | +#BuildRequires: libreoffice-sdk | |
| 146 | +#BuildRequires: libreoffice-ure | |
| 147 | +#BuildRequires: librsvg2-tools | |
| 148 | + | |
| 64 | 149 | %endif |
| 65 | 150 | |
| 66 | -%if 0%{?_redhat} | |
| 67 | - %define _redhat_prefix %(grep -q "Red Hat Linux" /etc/redhat-release && echo rhl || echo el) | |
| 68 | - %define _redhat_vernum %(rpm -qf --queryformat %{VERSION} /etc/redhat-release|tr -d '.') | |
| 69 | - %define _release %{_rel}.%{_redhat_prefix}%{_redhat_vernum} | |
| 70 | - %define _distro %{_redhat_prefix} %{_redhat_vernum} | |
| 71 | - %define _bldreq gtk2-devel openssl-devel | |
| 72 | 151 | %endif |
| 73 | 152 | |
| 74 | -#---[ Packaging ]----------------------------------------------------------------------------------------------------- | |
| 153 | +#--[ SuSE ]----------------------------------------------------------------------------------------------------------- | |
| 75 | 154 | |
| 76 | -Name: @PACKAGE@ | |
| 77 | -License: GPL-2.0 | |
| 78 | -Group: System/X11/Terminals | |
| 79 | -Version: @PACKAGE_VERSION@ | |
| 80 | -Release: %_release | |
| 81 | -Summary: IBM 3270 Terminal emulator for gtk | |
| 82 | -Source: %{name}-%{version}.tar.bz2 | |
| 83 | -Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
| 84 | -BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
| 85 | -Requires: openssl shared-mime-info lib3270 = @PACKAGE_VERSION@ | |
| 86 | -Provides: lib@PACKAGE@ = @PACKAGE_VERSION@ lib@PACKAGE@.so = @PACKAGE_VERSION@ | |
| 87 | -Distribution: %_distro | |
| 88 | - | |
| 89 | -BuildRequires: which | |
| 90 | -BuildRequires: autoconf >= 2.61 | |
| 91 | -BuildRequires: automake | |
| 92 | -BuildRequires: gcc-c++ | |
| 93 | -BuildRequires: sed | |
| 94 | -BuildRequires: pkgconfig | |
| 95 | -BuildRequires: %{_bldreq} | |
| 96 | -BuildRequires: gettext-devel | |
| 97 | -BuildRequires: findutils | |
| 98 | -BuildRequires: coreutils | |
| 99 | -BuildRequires: desktop-file-utils | |
| 100 | -BuildRequires: dbus-1-devel | |
| 101 | -BuildRequires: dbus-1-glib-devel | |
| 155 | +%if 0%{?suse_version} | |
| 102 | 156 | |
| 103 | -%if 0%{?_office} | |
| 104 | -BuildRequires: libreoffice-sdk | |
| 105 | -BuildRequires: ucpp | |
| 157 | +# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25sles_version | |
| 158 | +%if 0%{?sles_version} | |
| 159 | + %define _distro sles%{sles_version} | |
| 160 | + %define _office 0 | |
| 161 | +%else | |
| 162 | +%if 0%{?sled_version} | |
| 163 | + %define _distro sled%{sled_version} | |
| 164 | + %define _office 0 | |
| 165 | +%else | |
| 166 | + %define _distro suse%{suse_version} | |
| 106 | 167 | %endif |
| 107 | 168 | |
| 108 | -%if 0%{?_php} | |
| 109 | -BuildRequires: php-devel | |
| 110 | 169 | %endif |
| 111 | 170 | |
| 112 | -%if 0%{?_java} | |
| 113 | -BuildRequires: java-devel | |
| 171 | +BuildRequires: libopenssl-devel | |
| 172 | +BuildRequires: rsvg-view | |
| 173 | + | |
| 174 | +# OpenSUSE >= 12.2 enable GTK3 & D-Bus | |
| 175 | +%if 0%{?suse_version} >= 1220 | |
| 176 | + | |
| 177 | +BuildRequires: pkgconfig(dbus-1) | |
| 178 | +BuildRequires: pkgconfig(dbus-glib-1) | |
| 179 | +BuildRequires: pkgconfig(gtk+-3.0) | |
| 180 | + | |
| 181 | +%else | |
| 182 | + | |
| 183 | +%define _dbus 0 | |
| 184 | +%define _python 0 | |
| 185 | +BuildRequires: gtk2-devel | |
| 186 | + | |
| 187 | +%endif | |
| 188 | + | |
| 189 | +# OpenSUSE >= 13.1 uses PHP5 | |
| 190 | +%if 0%{?suse_version} >= 1310 | |
| 191 | +%define _php 5 | |
| 192 | +BuildRequires: php%{_php}-devel | |
| 193 | +%endif | |
| 194 | + | |
| 195 | +%endif | |
| 196 | + | |
| 197 | +#--------------------------------------------------------------------------------------------------------------------- | |
| 198 | + | |
| 199 | +BuildRequires: autoconf >= 2.61 | |
| 200 | +BuildRequires: automake | |
| 201 | +BuildRequires: binutils | |
| 202 | +BuildRequires: coreutils | |
| 203 | + | |
| 204 | +%if 0%{?_ooRexx} | |
| 205 | +BuildRequires: ooRexx-devel >= 4.2.0 | |
| 114 | 206 | %endif |
| 115 | 207 | |
| 116 | 208 | %if 0%{?_python} |
| 117 | -BuildRequires: python-devel | |
| 209 | +BuildRequires: python | |
| 210 | +BuildRequires: python-devel | |
| 211 | + | |
| 118 | 212 | %define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
| 119 | 213 | %endif |
| 120 | 214 | |
| 121 | -BuildRequires: rsvg-view | |
| 215 | +%if 0%{?_php} | |
| 216 | +%define _phpextdir %(php-config --extension-dir) | |
| 217 | +%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2) | |
| 218 | +%endif | |
| 122 | 219 | |
| 123 | -%description | |
| 124 | -IBM 3270 terminal emulator gtk. It can be used to communicate with | |
| 125 | -any IBM host that supports 3270-style connections over TELNET. | |
| 220 | +%if 0%{?_java} | |
| 221 | +BuildRequires: java-devel | |
| 222 | +BuildRequires: javapackages-tools | |
| 223 | +%endif | |
| 126 | 224 | |
| 127 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 225 | +BuildRequires: desktop-file-utils | |
| 226 | +BuildRequires: findutils | |
| 227 | +BuildRequires: gcc-c++ | |
| 228 | +BuildRequires: gettext-devel | |
| 229 | +BuildRequires: m4 | |
| 230 | +BuildRequires: pkgconfig | |
| 231 | +BuildRequires: sed | |
| 128 | 232 | |
| 129 | -%package devel | |
| 130 | -Summary: Files required for development of %{name} plugins | |
| 131 | -Group: Development/Libraries/C and C++ | |
| 132 | -Requires: %{name} = @PACKAGE_VERSION@ | |
| 133 | 233 | |
| 134 | -%description devel | |
| 135 | -Development files for %{name} | |
| 234 | +%description | |
| 235 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 236 | +Based on the original x3270 code, @PACKAGE@ was originally created for Banco do Brasil, and is now used worldwide. | |
| 136 | 237 | |
| 137 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 238 | +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | |
| 138 | 239 | |
| 139 | -%package -n lib3270 | |
| 140 | -Summary: 3270 Communication library for %{name} | |
| 141 | -Group: Development/Libraries/C and C++ | |
| 240 | +%package -n lib3270-%LIBVERSION | |
| 241 | +Summary: 3270 Communication library for %{name} | |
| 242 | +Group: Development/Libraries/C and C++ | |
| 142 | 243 | Requires: openssl |
| 244 | +Provides: lib3270 | |
| 143 | 245 | |
| 144 | -%description -n lib3270 | |
| 145 | -tn3270 protocol library for %{name} | |
| 246 | +%description -n lib3270-%LIBVERSION | |
| 247 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 146 | 248 | |
| 147 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 249 | +This package contains the tn3270 protocol library for %{name} | |
| 250 | + | |
| 251 | +#--[ Devel ]---------------------------------------------------------------------------------------------------------- | |
| 148 | 252 | |
| 149 | 253 | %package -n lib3270-devel |
| 150 | -Summary: Devel for 3270 Communication library for %{name} | |
| 151 | -Group: Development/Libraries/C and C++ | |
| 152 | -Requires: lib3270 = @PACKAGE_VERSION@ | |
| 153 | -Requires: pw3270 = @PACKAGE_VERSION@ | |
| 254 | +Summary: Devel for 3270 Communication library for %{name} | |
| 255 | +Group: Development/Libraries/C and C++ | |
| 256 | +Requires: lib3270-%LIBVERSION = %{version} | |
| 154 | 257 | |
| 155 | 258 | %description -n lib3270-devel |
| 156 | -devel for tn3270 protocol library for %{name} | |
| 259 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 260 | +This package contains the development files for tn3270 protocol library for %{name} | |
| 157 | 261 | |
| 158 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 262 | +%package -n @PACKAGE@-devel | |
| 263 | +Summary: Files required for development of %{name} plugins | |
| 264 | +Group: Development/Libraries/C and C++ | |
| 265 | +Requires: lib3270-devel = %{version} | |
| 266 | +Requires: @PACKAGE@ = %{version} | |
| 159 | 267 | |
| 160 | -%package plugin-dbus | |
| 161 | -Summary: DBUS object for %{name} | |
| 162 | -Group: System/X11/Terminals | |
| 163 | -Requires: %{name} = @PACKAGE_VERSION@ | |
| 268 | +%description -n @PACKAGE@-devel | |
| 269 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
| 164 | 270 | |
| 165 | -%description plugin-dbus | |
| 166 | -Plugin exporting a DBUS object from every %{name} open session. | |
| 271 | +This package contains the development files for %{name} | |
| 167 | 272 | |
| 168 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 273 | +#--[ Plugins ]-------------------------------------------------------------------------------------------------------- | |
| 169 | 274 | |
| 170 | -%if 0%{?_office} | |
| 171 | -%package -n %{name}-libreoffice | |
| 172 | -Summary: %{name} extension for libreoffice | |
| 173 | -Group: Productivity/Office/Suite | |
| 174 | -Requires: %{name} = @PACKAGE_VERSION@ | |
| 175 | -Requires: libreoffice | |
| 176 | - | |
| 177 | -%description -n %{name}-libreoffice | |
| 178 | -This package provides 3270 access object to StarBasic. | |
| 275 | +%if 0%{?_dbus} | |
| 276 | +%package plugin-dbus | |
| 277 | +Summary: DBUS object for %{name} | |
| 278 | +Group: System/X11/Terminals | |
| 279 | +Requires: %{name} = %{version} | |
| 280 | +Requires: dbus-1 | |
| 179 | 281 | |
| 180 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 282 | +%description plugin-dbus | |
| 283 | +Plugin exporting a DBUS object from every %{name} open session. | |
| 181 | 284 | %endif |
| 182 | 285 | |
| 183 | 286 | %if 0%{?_ooRexx} |
| 184 | 287 | %package -n %{name}-plugin-rexx |
| 185 | -Summary: Rexx class for 3270 access | |
| 186 | -Group: Development/Languages/Other | |
| 187 | -Requires: %{name} >= @PACKAGE_VERSION@ | |
| 188 | -Requires: ooRexx | |
| 288 | +Summary: Rexx class for 3270 access | |
| 289 | +Group: Development/Languages/Other | |
| 290 | +Requires: lib3270 = %{version} | |
| 291 | +Requires: ooRexx >= 4.1 | |
| 189 | 292 | |
| 190 | 293 | %description -n %{name}-plugin-rexx |
| 191 | 294 | This package provides Rexx class and associated libraries |
| 192 | 295 | allowing rexx scripts to access tn3270e hosts. |
| 296 | +%endif | |
| 297 | + | |
| 298 | +#--[ Extensions ]----------------------------------------------------------------------------------------------------- | |
| 299 | + | |
| 300 | +%if 0%{?_office} | |
| 301 | +%package -n %{name}-libreoffice | |
| 302 | +Summary: 3270 host access extension for libreoffice | |
| 303 | +Group: Productivity/Office/Suite | |
| 304 | +Requires: lib3270 = %{version} | |
| 305 | +Requires: libreoffice | |
| 193 | 306 | |
| 194 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 307 | +%description -n %{name}-libreoffice | |
| 308 | +This package provides 3270 access object to StarBasic. | |
| 195 | 309 | %endif |
| 196 | 310 | |
| 197 | 311 | %if 0%{?_php} |
| 312 | +%package -n php%{_php}-tn3270 | |
| 313 | +Summary: PHP%{_php} Extension Module implementing tn3270 protocol | |
| 314 | +Group: Development/Libraries/PHP | |
| 315 | +Requires: lib3270 = %{version} | |
| 198 | 316 | |
| 199 | -%package -n php%{phpmajor}-tn3270 | |
| 200 | -Summary: PHP%{phpmajor} Extension Module implementing tn3270 protocol | |
| 201 | -Group: Development/Libraries/PHP | |
| 202 | -Requires: lib3270 = @PACKAGE_VERSION@ | |
| 203 | - | |
| 204 | -%description -n php%{phpmajor}-tn3270 | |
| 317 | +%description -n php%{_php}-tn3270 | |
| 205 | 318 | This is an extension for acessing 3270 hosts directly |
| 206 | 319 | from PHP apps. |
| 207 | - | |
| 208 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 209 | - | |
| 210 | 320 | %endif |
| 211 | 321 | |
| 212 | 322 | %if 0%{?_python} |
| 213 | - | |
| 214 | 323 | %package -n python-tn3270 |
| 215 | -Summary: Python Extension Module implementing tn3270 protocol | |
| 216 | -Group: Development/Libraries/PHP | |
| 217 | -Requires: lib3270 = @PACKAGE_VERSION@ | |
| 324 | +Summary: Python Extension Module implementing tn3270 protocol | |
| 325 | +Group: Development/Libraries/Python | |
| 326 | +Requires: lib3270 = %{version} | |
| 218 | 327 | |
| 219 | 328 | %description -n python-tn3270 |
| 220 | 329 | This is an extension for acessing 3270 hosts directly |
| 221 | 330 | from python apps. |
| 222 | - | |
| 223 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 224 | - | |
| 225 | 331 | %endif |
| 226 | 332 | |
| 227 | - | |
| 228 | 333 | %if 0%{?_java} |
| 229 | - | |
| 230 | -%package java | |
| 231 | -Summary: Java class to interact with pw3270 | |
| 232 | -Group: Development/Libraries/Java | |
| 233 | -Requires: lib3270 = @PACKAGE_VERSION@ | |
| 334 | +%package java | |
| 335 | +Summary: Java class to interact with @PACKAGE@ | |
| 336 | +Group: Development/Libraries/Java | |
| 337 | +Requires: javapackages-tools | |
| 338 | +Requires: lib3270 = %{version} | |
| 234 | 339 | |
| 235 | 340 | %description java |
| 236 | -Java class for lib3270/pw3270 interaction. | |
| 237 | - | |
| 238 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 239 | - | |
| 341 | +Java class for lib3270/@PACKAGE@ interaction. | |
| 240 | 342 | |
| 241 | -%package -n %{name}-plugin-java | |
| 242 | -Summary: Java plugin for %{name} | |
| 243 | -Group: Development/Libraries/Java | |
| 244 | -Requires: %{name} = @PACKAGE_VERSION@ | |
| 245 | -Requires: %{name}-java = @PACKAGE_VERSION@ | |
| 343 | +%package plugin-java | |
| 344 | +Summary: Java plugin for %{name} | |
| 345 | +Group: Development/Libraries/Java | |
| 346 | +Requires: %{name} = %{version} | |
| 347 | +Requires: %{name}-java = %{version} | |
| 246 | 348 | |
| 247 | -%description -n %{name}-plugin-java | |
| 349 | +%description plugin-java | |
| 248 | 350 | This package provides a plugin allowing calling of java classes |
| 249 | -from pw3270 application. | |
| 351 | +from @PACKAGE@ application. | |
| 250 | 352 | |
| 251 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 252 | - | |
| 253 | -%package javadoc | |
| 254 | -Summary: Javadoc for %{name} | |
| 255 | -Group: Documentation | |
| 353 | +%package javadoc | |
| 354 | +Summary: Javadoc for %{name} | |
| 355 | +Group: Documentation | |
| 256 | 356 | Requires: jpackage-utils |
| 257 | -Requires: %{name}-plugin-java | |
| 258 | - | |
| 259 | -%description javadoc | |
| 260 | -API documentation for %{name}. | |
| 261 | - | |
| 262 | -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ | |
| 263 | 357 | |
| 358 | +%description javadoc | |
| 359 | +API documentation for %{name}. | |
| 264 | 360 | %endif |
| 265 | 361 | |
| 266 | - | |
| 267 | 362 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
| 268 | 363 | |
| 269 | 364 | %prep |
| 270 | 365 | |
| 366 | +echo "Distribution: %{_distro}" | |
| 367 | + | |
| 368 | +%if 0%{?_php} | |
| 369 | + echo " * PHP%{_php} is enabled" | |
| 370 | +%endif | |
| 371 | +%if 0%{?_dbus} | |
| 372 | + echo " * DBUS is enabled" | |
| 373 | +%endif | |
| 374 | + | |
| 271 | 375 | %setup -q -n %{name}-%{version} |
| 272 | 376 | find . -exec touch {} \; |
| 273 | 377 | aclocal |
| 274 | 378 | autoconf |
| 379 | + | |
| 275 | 380 | export CFLAGS="$RPM_OPT_FLAGS" |
| 276 | 381 | export CXXFLAGS="$RPM_OPT_FLAGS" |
| 277 | 382 | export FFLAGS="$RPM_OPT_FLAGS" |
| 278 | 383 | |
| 279 | -%if 0%{?_office} | |
| 280 | -export OFFICE_HOME=%{_libdir}/libreoffice | |
| 281 | -export OO_SDK_HOME=%{_libdir}/libreoffice/sdk | |
| 282 | -%endif | |
| 283 | - | |
| 284 | 384 | %if 0%{?_java} |
| 285 | 385 | export JAVA_HOME=%{java_home} |
| 386 | +echo "JAVA_HOME=$JAVA_HOME" | |
| 387 | +echo "javadocdir=%{_javadocdir}" | |
| 286 | 388 | %endif |
| 287 | 389 | |
| 288 | 390 | %configure --disable-strip \ |
| 289 | 391 | --enable-pic \ |
| 290 | 392 | --with-jnidir="%{_jnidir}" \ |
| 291 | 393 | --with-jvmjardir="%{_jvmjardir}" \ |
| 292 | - --with-javadocdir="%{_javadocdir}" \ | |
| 293 | - --with-rexxlibdir="%{_rexxlibdir}" | |
| 294 | - | |
| 394 | + --with-javadocdir="%{_javadocdir}" | |
| 295 | 395 | |
| 296 | 396 | %build |
| 297 | 397 | make clean |
| 298 | 398 | make all |
| 299 | 399 | |
| 300 | 400 | %install |
| 301 | -rm -rf $RPM_BUILD_ROOT | |
| 302 | -%makeinstall | |
| 401 | +export NO_BRP_CHECK_BYTECODE_VERSION=true | |
| 402 | + | |
| 403 | +make DESTDIR=$RPM_BUILD_ROOT install | |
| 404 | + | |
| 405 | +find $RPM_BUILD_ROOT | |
| 406 | + | |
| 303 | 407 | %find_lang %{name} langfiles |
| 304 | 408 | |
| 409 | +cat > @PACKAGE@.desktop << EOF | |
| 410 | +[Desktop Entry] | |
| 411 | +X-SuSE-translate=true | |
| 412 | +GenericName=@PACKAGE@ | |
| 413 | +Name=3270 Terminal | |
| 414 | +Comment=IBM 3270 Terminal emulator | |
| 415 | +Exec=@PACKAGE@ | |
| 416 | +Icon=%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 417 | +Terminal=false | |
| 418 | +Type=Application | |
| 419 | +StartupNotify=true | |
| 420 | +EOF | |
| 421 | +chmod 644 @PACKAGE@.desktop | |
| 422 | + | |
| 423 | +desktop-file-install --mode 644 \ | |
| 424 | + --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ | |
| 425 | + --add-category System \ | |
| 426 | + --add-category TerminalEmulator \ | |
| 427 | + @PACKAGE@.desktop | |
| 428 | + | |
| 429 | +%if 0%{?_ooRexx} == 0 | |
| 430 | +# remove rexx-files from builddir if it's disabled | |
| 431 | +rm -f ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 432 | +%endif | |
| 433 | + | |
| 434 | +%if 0%{?_java} == 0 | |
| 435 | +# remove java-files from builddir if it's disabled | |
| 436 | +rm ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 437 | +%endif | |
| 438 | + | |
| 439 | +find ${RPM_BUILD_ROOT} | |
| 440 | + | |
| 305 | 441 | %clean |
| 306 | -rm -rf $RPM_BUILD_ROOT | |
| 442 | +rm -rf %{buildroot} | |
| 307 | 443 | |
| 308 | 444 | #---[ Files ]--------------------------------------------------------------------------------------------------------- |
| 309 | 445 | |
| 310 | 446 | %files -f langfiles |
| 311 | 447 | %defattr(-,root,root) |
| 312 | -%doc AUTHORS LICENSE | |
| 448 | +%doc AUTHORS LICENSE | |
| 313 | 449 | %{_mandir}/*/* |
| 314 | 450 | |
| 315 | 451 | # Main application |
| 316 | -%dir %{_datadir}/@PACKAGE_NAME@ | |
| 317 | -%dir %{_datadir}/@PACKAGE_NAME@/ui | |
| 318 | -%{_datadir}/applications/@PACKAGE_NAME@.desktop | |
| 319 | - | |
| 320 | -%{_bindir}/@PACKAGE_NAME@ | |
| 321 | -%{_libdir}/libpw3270.so.@MAJOR_VERSION@ | |
| 322 | -%{_libdir}/libpw3270.so.@PACKAGE_VERSION@ | |
| 323 | - | |
| 324 | -%{_datadir}/@PACKAGE_NAME@/colors.conf | |
| 325 | -%{_datadir}/@PACKAGE_NAME@/ui/00default.xml | |
| 326 | -%{_datadir}/@PACKAGE_NAME@/ui/10functions.xml | |
| 327 | -%{_datadir}/@PACKAGE_NAME@/ui/10keypad.xml | |
| 328 | -%{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@.png | |
| 329 | -%{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@-logo.png | |
| 330 | - | |
| 331 | -%files -n lib3270 | |
| 452 | +%dir %{_datadir}/@PACKAGE@ | |
| 453 | +%dir %{_datadir}/@PACKAGE@/ui | |
| 454 | +%{_bindir}/@PACKAGE@ | |
| 455 | +%{_libdir}/lib@PACKAGE@.so.5 | |
| 456 | +%{_libdir}/lib@PACKAGE@.so.%version | |
| 457 | + | |
| 458 | +%{_datadir}/applications/@PACKAGE@.desktop | |
| 459 | + | |
| 460 | +%{_datadir}/@PACKAGE@/ui/00default.xml | |
| 461 | +%{_datadir}/@PACKAGE@/ui/10functions.xml | |
| 462 | +%{_datadir}/@PACKAGE@/ui/10keypad.xml | |
| 463 | +%{_datadir}/@PACKAGE@/colors.conf | |
| 464 | +%{_datadir}/@PACKAGE@/@PACKAGE@.png | |
| 465 | +%{_datadir}/@PACKAGE@/@PACKAGE@-logo.png | |
| 466 | +%{_datadir}/locale/pt_BR/LC_MESSAGES/@PACKAGE@.mo | |
| 467 | +%dir %{_libdir}/@PACKAGE@-plugins | |
| 468 | + | |
| 469 | +%files -n lib3270-%LIBVERSION | |
| 332 | 470 | %defattr(-,root,root) |
| 333 | -%{_libdir}/lib3270.so.@MAJOR_VERSION@ | |
| 334 | -%{_libdir}/lib3270.so.@PACKAGE_VERSION@ | |
| 471 | +%{_libdir}/lib3270.so.%version | |
| 472 | +%{_libdir}/lib3270.so.5 | |
| 335 | 473 | |
| 336 | 474 | %files -n lib3270-devel |
| 337 | 475 | %defattr(-,root,root) |
| 338 | -%{_includedir}/pw3270/*.h | |
| 339 | -%{_includedir}/lib3270/*.h | |
| 476 | +%{_includedir}/lib3270 | |
| 340 | 477 | %{_includedir}/lib3270.h |
| 341 | -%{_includedir}/pw3270.h | |
| 342 | -%{_datadir}/@PACKAGE_NAME@/ui/99debug.xml | |
| 343 | -%{_datadir}/@PACKAGE_NAME@/ui/98trace.xml | |
| 344 | -%{_libdir}/pkgconfig/*.pc | |
| 478 | +%{_libdir}/pkgconfig/lib3270.pc | |
| 345 | 479 | %{_libdir}/lib3270.so |
| 346 | -%{_libdir}/libpw3270.so | |
| 347 | -%{_libdir}/*.a | |
| 348 | -%dir %{_datadir}/@PACKAGE_NAME@/sample | |
| 349 | -%{_datadir}/@PACKAGE_NAME@/sample/* | |
| 350 | 480 | |
| 481 | +%files -n @PACKAGE@-devel | |
| 482 | +%defattr(-,root,root) | |
| 483 | +%{_includedir}/@PACKAGE@ | |
| 484 | +%{_includedir}/@PACKAGE@.h | |
| 485 | +%{_datadir}/@PACKAGE@/ui/98trace.xml | |
| 486 | +%{_datadir}/@PACKAGE@/ui/99debug.xml | |
| 487 | +%{_libdir}/lib@PACKAGE@.so | |
| 488 | +%{_libdir}/@PACKAGE@class.a | |
| 489 | +%{_libdir}/pkgconfig/@PACKAGE@.pc | |
| 490 | + | |
| 491 | +%dir %{_datadir}/@PACKAGE@/sample | |
| 492 | +%{_datadir}/@PACKAGE@/sample/* | |
| 493 | + | |
| 494 | +%if 0%{?_dbus} | |
| 351 | 495 | %files plugin-dbus |
| 352 | 496 | %defattr(-,root,root) |
| 353 | -%{_libdir}/@PACKAGE_NAME@-plugins/dbus3270.so | |
| 497 | +%{_libdir}/@PACKAGE@-plugins/dbus3270.so | |
| 498 | +%endif | |
| 354 | 499 | |
| 355 | 500 | %if 0%{?_office} |
| 356 | 501 | %files -n %{name}-libreoffice |
| 357 | 502 | %defattr(-,root,root) |
| 358 | 503 | %dir %{_libdir}/libreoffice/share/extensions/%{name} |
| 504 | +%dir %{_libdir}/libreoffice/share/extensions/%{name}/META-INF | |
| 359 | 505 | %{_libdir}/libreoffice/share/extensions/%{name}/META-INF/manifest.xml |
| 360 | 506 | %{_libdir}/libreoffice/share/extensions/%{name}/description.txt |
| 361 | 507 | %{_libdir}/libreoffice/share/extensions/%{name}/description.xml |
| 362 | -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.png | |
| 363 | -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.rdb | |
| 364 | -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.uno.so | |
| 508 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.png | |
| 509 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.rdb | |
| 510 | +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.uno.so | |
| 365 | 511 | %endif |
| 366 | 512 | |
| 367 | 513 | %if 0%{?_ooRexx} |
| 368 | 514 | %files -n %{name}-plugin-rexx |
| 369 | 515 | %defattr(-,root,root) |
| 370 | -%{_rexxlibdir}/librx3270.so.@PACKAGE_VERSION@ | |
| 516 | +%{_rexxlibdir}/librx3270.so.%version | |
| 371 | 517 | %{_rexxlibdir}/librx3270.so |
| 372 | 518 | %{_rexxclassdir}/rx3270.cls |
| 373 | -%{_libdir}/@PACKAGE_NAME@-plugins/rx3270.so | |
| 374 | -%{_datadir}/pw3270/ui/80rexx.xml | |
| 519 | +%{_libdir}/@PACKAGE@-plugins/rx3270.so | |
| 520 | +%{_datadir}/@PACKAGE@/ui/80rexx.xml | |
| 375 | 521 | %endif |
| 376 | 522 | |
| 377 | 523 | %if 0%{?_php} |
| 378 | -%files -n php%{phpmajor}-tn3270 | |
| 524 | +%files -n php%{_php}-tn3270 | |
| 379 | 525 | %defattr(-,root,root) |
| 380 | -%{_sysconfdir}/php%{phpmajor}/conf.d/tn3270.ini | |
| 381 | -%{_libdir}/php%{phpmajor}/extensions/tn3270.so | |
| 526 | +%config %{_phpconf}/tn3270.ini | |
| 527 | +%{_phpextdir}/*.so | |
| 382 | 528 | %endif |
| 383 | 529 | |
| 384 | 530 | %if 0%{?_python} |
| ... | ... | @@ -387,23 +533,26 @@ rm -rf $RPM_BUILD_ROOT |
| 387 | 533 | %{pythonextpath}/py3270.so |
| 388 | 534 | %endif |
| 389 | 535 | |
| 390 | - | |
| 391 | 536 | %if 0%{?_java} |
| 392 | 537 | %files java |
| 393 | 538 | %defattr(-,root,root) |
| 539 | +%dir %{_jnidir} | |
| 540 | +%dir %{_jvmjardir} | |
| 541 | + | |
| 394 | 542 | %{_jnidir}/libjni3270.so |
| 395 | -%{_jvmjardir}/pw3270.jar | |
| 543 | +%{_jvmjardir}/@PACKAGE@.jar | |
| 396 | 544 | |
| 397 | -%files -n %{name}-plugin-java | |
| 398 | -%{_libdir}/@PACKAGE_NAME@-plugins/j3270.so | |
| 545 | +%files plugin-java | |
| 546 | +%defattr(-,root,root) | |
| 547 | +%{_libdir}/@PACKAGE@-plugins/j3270.so | |
| 399 | 548 | |
| 400 | -%files javadoc | |
| 401 | -%dir %{_javadocdir}/%{name}/* | |
| 402 | -%{_javadocdir}/%{name}/* | |
| 403 | -%{_datadir}/pw3270/ui/80javasamples.xml | |
| 549 | +%files javadoc | |
| 550 | +%defattr(-,root,root) | |
| 551 | +%dir %{_javadocdir} | |
| 552 | +%{_javadocdir}/%{name} | |
| 553 | +%{_datadir}/@PACKAGE@/ui/*java*.xml | |
| 404 | 554 | %endif |
| 405 | 555 | |
| 406 | - | |
| 407 | 556 | #---[ Scripts ]------------------------------------------------------------------------------------------------------- |
| 408 | 557 | |
| 409 | 558 | %post |
| ... | ... | @@ -414,16 +563,22 @@ exit 0 |
| 414 | 563 | /sbin/ldconfig |
| 415 | 564 | exit 0 |
| 416 | 565 | |
| 417 | -%post -n lib3270 | |
| 566 | +%post -n lib3270-%LIBVERSION | |
| 418 | 567 | /sbin/ldconfig |
| 419 | 568 | exit 0 |
| 420 | 569 | |
| 421 | -%postun -n lib3270 | |
| 570 | +%postun -n lib3270-%LIBVERSION | |
| 422 | 571 | /sbin/ldconfig |
| 423 | 572 | exit 0 |
| 424 | 573 | |
| 425 | 574 | %if 0%{?_ooRexx} |
| 575 | +%post -n %{name}-plugin-rexx | |
| 576 | +/sbin/ldconfig | |
| 577 | +exit 0 | |
| 578 | + | |
| 426 | 579 | %postun -n %{name}-plugin-rexx |
| 427 | 580 | /sbin/ldconfig |
| 428 | 581 | exit 0 |
| 429 | 582 | %endif |
| 583 | + | |
| 584 | +%changelog | ... | ... |