From 71e65f9a575baf348e498978b37871bb1a034dcc Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 24 May 2016 16:53:10 -0300 Subject: [PATCH] Ajustando empacotamento rpm. --- Makefile.in | 3 ++- pw3270.spec.in | 635 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2 files changed, 397 insertions(+), 241 deletions(-) diff --git a/Makefile.in b/Makefile.in index c88a887..ce6bf80 100644 --- a/Makefile.in +++ b/Makefile.in @@ -370,7 +370,8 @@ install-sdk: @$(INSTALL_DATA) src/include/lib3270/session.h $(DESTDIR)/$(includedir)/lib3270 @$(MKDIR) $(DESTDIR)$(includedir)/pw3270 - @$(INSTALL_DATA) src/include/pw3270/v3270.h $(DESTDIR)/$(includedir)/pw3270 + @$(INSTALL_DATA) src/pw3270/include/*.h $(DESTDIR)/$(includedir)/pw3270 + @$(INSTALL_DATA) src/include/pw3270/trace.h $(DESTDIR)/$(includedir)/pw3270 @$(INSTALL_DATA) src/include/pw3270/plugin.h $(DESTDIR)/$(includedir)/pw3270 @$(INSTALL_DATA) src/include/pw3270.h $(DESTDIR)/$(includedir) diff --git a/pw3270.spec.in b/pw3270.spec.in index f38a98c..9c3bd3b 100644 --- a/pw3270.spec.in +++ b/pw3270.spec.in @@ -1,384 +1,530 @@ # -# "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 -# (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a -# aplicativos mainframe. Registro no INPI sob o nome G3270. +# spec file for package @PACKAGE@ # -# Copyright (C) <2008> +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (C) <2008> # -# Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob -# os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela -# Free Software Foundation. +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER -# GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO -# A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para -# obter mais detalhes. -# -# Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este -# programa; se não, escreva para a Free Software Foundation, Inc., 59 Temple -# Place, Suite 330, Boston, MA, 02111-1307, USA -# -# Contatos: + +%define LIBVERSION %(echo @PACKAGE_VERSION@ | sed -e "s@.@_@g") +#5_1 + +# +# References: # -# perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) -# erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) -# licinio@bb.com.br (Licínio Luis Branco) -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) +# https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code # +%define _dbus 1 +%define _office 0 +%define _php 0 +%define _ooRexx 1 +%define _java 1 +%define _python 1 -#---[ Check for distro ]---------------------------------------------------------------------------------------------- +%define _distro linux -%define _rel @PACKAGE_LEVEL@ +#---[ Packaging ]----------------------------------------------------------------------------------------------------- -%define _release %{_rel} -%define _distro Linux -%define _redhat %(test -e /etc/redhat-release && echo 1 || echo 0) -%define _php %(which php-config 2> /dev/null > /dev/null && echo 1 || echo 0) -%define _python %(which python-config 2> /dev/null > /dev/null && echo 1 || echo 0) -%define _bldreq gtk3-devel libopenssl-devel -%define _java 1 +Name: @PACKAGE@ +Version: @PACKAGE_VERSION@ +Release: @PACKAGE_LEVEL@ +Summary: IBM 3270 Terminal emulator for GTK +License: GPL-2.0 +Group: System/X11/Terminals +Url: https://portal.softwarepublico.gov.br/social/@PACKAGE@/ + +Source: %{name}-%{version}.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +Requires: lib3270 = %{version} +Requires: shared-mime-info + +Provides: lib@PACKAGE@ = %{version} +Provides: lib@PACKAGE@.so = %{version} + +#--[ Red HAT ]-------------------------------------------------------------------------------------------------------- + +%if 0%{?rhel_version} + +%define _distro rhel%{rhel_version} + +BuildRequires: dbus-devel +BuildRequires: dbus-glib-devel +BuildRequires: openssl-devel + +%define _office 0 +%define _php 0 + +%if 0%{?rhel_version} >= 0700 + +# RHEL 7.0 + +BuildRequires: gtk3-devel + +%else + +# RHEL 6.0 +%define _python 0 + +BuildRequires: gtk2-devel +BuildRequires: java-1.6.0-devel -%if 0%{?_php} - %define phpmajor %(php-config --version | cut -d. -f1) %endif -%if 0%{?suse_version} - %define _release %{_rel}.suse%{suse_version} - %define _distro SuSE Linux %{suse_version} - %if %{?suse_version} < 1200 - %define _bldreq gtk2-devel >= 2.16 libopenssl-devel - %endif - - %if %{?suse_version} >= 1310 - %define _office 0 - %define _bldreq gtk3-devel libopenssl-devel - %endif %endif +#--[ CentOS ]--------------------------------------------------------------------------------------------------------- + +%if 0%{?centos_version} + +%define _distro centos%{centos_version} + +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(openssl) + +%if 0%{?centos_version} >= 0700 + +# CentOS 7 + +%define _php 5 +BuildRequires: php-devel + +%define _office 0 + +BuildRequires: pkgconfig(gtk+-3.0) + +%else + +# CentOS 6 + +%define _office 0 +%define _python 0 + +BuildRequires: gtk2-devel +BuildRequires: java-1.8.0-devel + +%endif + +%endif + +#--[ Fedora ]--------------------------------------------------------------------------------------------------------- + %if 0%{?fedora} - %define _release %{_rel}.fc%{fedora} - %define _redhat 0 - %define _distro Fedora %{fedora} - %define _bldreq gtk3-devel openssl-devel + +%define _distro fedora%{fedora} + +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(openssl) + +%define _php 5 +BuildRequires: php-devel + +%if 0%{?fedora} >= 21 + +# Fedora 21 fails on libreoffice sdk +%define _office 0 + +%else + +#%define _office 0 +#BuildRequires: libreoffice-sdk +#BuildRequires: libreoffice-ure +#BuildRequires: librsvg2-tools + %endif -%if 0%{?_redhat} - %define _redhat_prefix %(grep -q "Red Hat Linux" /etc/redhat-release && echo rhl || echo el) - %define _redhat_vernum %(rpm -qf --queryformat %{VERSION} /etc/redhat-release|tr -d '.') - %define _release %{_rel}.%{_redhat_prefix}%{_redhat_vernum} - %define _distro %{_redhat_prefix} %{_redhat_vernum} - %define _bldreq gtk2-devel openssl-devel %endif -#---[ Packaging ]----------------------------------------------------------------------------------------------------- +#--[ SuSE ]----------------------------------------------------------------------------------------------------------- -Name: @PACKAGE@ -License: GPL-2.0 -Group: System/X11/Terminals -Version: @PACKAGE_VERSION@ -Release: %_release -Summary: IBM 3270 Terminal emulator for gtk -Source: %{name}-%{version}.tar.bz2 -Url: https://portal.softwarepublico.gov.br/social/pw3270/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: openssl shared-mime-info lib3270 = @PACKAGE_VERSION@ -Provides: lib@PACKAGE@ = @PACKAGE_VERSION@ lib@PACKAGE@.so = @PACKAGE_VERSION@ -Distribution: %_distro - -BuildRequires: which -BuildRequires: autoconf >= 2.61 -BuildRequires: automake -BuildRequires: gcc-c++ -BuildRequires: sed -BuildRequires: pkgconfig -BuildRequires: %{_bldreq} -BuildRequires: gettext-devel -BuildRequires: findutils -BuildRequires: coreutils -BuildRequires: desktop-file-utils -BuildRequires: dbus-1-devel -BuildRequires: dbus-1-glib-devel +%if 0%{?suse_version} -%if 0%{?_office} -BuildRequires: libreoffice-sdk -BuildRequires: ucpp +# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25sles_version +%if 0%{?sles_version} + %define _distro sles%{sles_version} + %define _office 0 +%else +%if 0%{?sled_version} + %define _distro sled%{sled_version} + %define _office 0 +%else + %define _distro suse%{suse_version} %endif -%if 0%{?_php} -BuildRequires: php-devel %endif -%if 0%{?_java} -BuildRequires: java-devel +BuildRequires: libopenssl-devel +BuildRequires: rsvg-view + +# OpenSUSE >= 12.2 enable GTK3 & D-Bus +%if 0%{?suse_version} >= 1220 + +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(gtk+-3.0) + +%else + +%define _dbus 0 +%define _python 0 +BuildRequires: gtk2-devel + +%endif + +# OpenSUSE >= 13.1 uses PHP5 +%if 0%{?suse_version} >= 1310 +%define _php 5 +BuildRequires: php%{_php}-devel +%endif + +%endif + +#--------------------------------------------------------------------------------------------------------------------- + +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils + +%if 0%{?_ooRexx} +BuildRequires: ooRexx-devel >= 4.2.0 %endif %if 0%{?_python} -BuildRequires: python-devel +BuildRequires: python +BuildRequires: python-devel + %define pythonextpath %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") %endif -BuildRequires: rsvg-view +%if 0%{?_php} +%define _phpextdir %(php-config --extension-dir) +%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2) +%endif -%description -IBM 3270 terminal emulator gtk. It can be used to communicate with -any IBM host that supports 3270-style connections over TELNET. +%if 0%{?_java} +BuildRequires: java-devel +BuildRequires: javapackages-tools +%endif -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +BuildRequires: desktop-file-utils +BuildRequires: findutils +BuildRequires: gcc-c++ +BuildRequires: gettext-devel +BuildRequires: m4 +BuildRequires: pkgconfig +BuildRequires: sed -%package devel -Summary: Files required for development of %{name} plugins -Group: Development/Libraries/C and C++ -Requires: %{name} = @PACKAGE_VERSION@ -%description devel -Development files for %{name} +%description +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. +Based on the original x3270 code, @PACKAGE@ was originally created for Banco do Brasil, and is now used worldwide. -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- -%package -n lib3270 -Summary: 3270 Communication library for %{name} -Group: Development/Libraries/C and C++ +%package -n lib3270-%LIBVERSION +Summary: 3270 Communication library for %{name} +Group: Development/Libraries/C and C++ Requires: openssl +Provides: lib3270 -%description -n lib3270 -tn3270 protocol library for %{name} +%description -n lib3270-%LIBVERSION +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. -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +This package contains the tn3270 protocol library for %{name} + +#--[ Devel ]---------------------------------------------------------------------------------------------------------- %package -n lib3270-devel -Summary: Devel for 3270 Communication library for %{name} -Group: Development/Libraries/C and C++ -Requires: lib3270 = @PACKAGE_VERSION@ -Requires: pw3270 = @PACKAGE_VERSION@ +Summary: Devel for 3270 Communication library for %{name} +Group: Development/Libraries/C and C++ +Requires: lib3270-%LIBVERSION = %{version} %description -n lib3270-devel -devel for tn3270 protocol library for %{name} +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. +This package contains the development files for tn3270 protocol library for %{name} -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +%package -n @PACKAGE@-devel +Summary: Files required for development of %{name} plugins +Group: Development/Libraries/C and C++ +Requires: lib3270-devel = %{version} +Requires: @PACKAGE@ = %{version} -%package plugin-dbus -Summary: DBUS object for %{name} -Group: System/X11/Terminals -Requires: %{name} = @PACKAGE_VERSION@ +%description -n @PACKAGE@-devel +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. -%description plugin-dbus -Plugin exporting a DBUS object from every %{name} open session. +This package contains the development files for %{name} -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +#--[ Plugins ]-------------------------------------------------------------------------------------------------------- -%if 0%{?_office} -%package -n %{name}-libreoffice -Summary: %{name} extension for libreoffice -Group: Productivity/Office/Suite -Requires: %{name} = @PACKAGE_VERSION@ -Requires: libreoffice - -%description -n %{name}-libreoffice -This package provides 3270 access object to StarBasic. +%if 0%{?_dbus} +%package plugin-dbus +Summary: DBUS object for %{name} +Group: System/X11/Terminals +Requires: %{name} = %{version} +Requires: dbus-1 -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +%description plugin-dbus +Plugin exporting a DBUS object from every %{name} open session. %endif %if 0%{?_ooRexx} %package -n %{name}-plugin-rexx -Summary: Rexx class for 3270 access -Group: Development/Languages/Other -Requires: %{name} >= @PACKAGE_VERSION@ -Requires: ooRexx +Summary: Rexx class for 3270 access +Group: Development/Languages/Other +Requires: lib3270 = %{version} +Requires: ooRexx >= 4.1 %description -n %{name}-plugin-rexx This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. +%endif + +#--[ Extensions ]----------------------------------------------------------------------------------------------------- + +%if 0%{?_office} +%package -n %{name}-libreoffice +Summary: 3270 host access extension for libreoffice +Group: Productivity/Office/Suite +Requires: lib3270 = %{version} +Requires: libreoffice -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +%description -n %{name}-libreoffice +This package provides 3270 access object to StarBasic. %endif %if 0%{?_php} +%package -n php%{_php}-tn3270 +Summary: PHP%{_php} Extension Module implementing tn3270 protocol +Group: Development/Libraries/PHP +Requires: lib3270 = %{version} -%package -n php%{phpmajor}-tn3270 -Summary: PHP%{phpmajor} Extension Module implementing tn3270 protocol -Group: Development/Libraries/PHP -Requires: lib3270 = @PACKAGE_VERSION@ - -%description -n php%{phpmajor}-tn3270 +%description -n php%{_php}-tn3270 This is an extension for acessing 3270 hosts directly from PHP apps. - -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ - %endif %if 0%{?_python} - %package -n python-tn3270 -Summary: Python Extension Module implementing tn3270 protocol -Group: Development/Libraries/PHP -Requires: lib3270 = @PACKAGE_VERSION@ +Summary: Python Extension Module implementing tn3270 protocol +Group: Development/Libraries/Python +Requires: lib3270 = %{version} %description -n python-tn3270 This is an extension for acessing 3270 hosts directly from python apps. - -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ - %endif - %if 0%{?_java} - -%package java -Summary: Java class to interact with pw3270 -Group: Development/Libraries/Java -Requires: lib3270 = @PACKAGE_VERSION@ +%package java +Summary: Java class to interact with @PACKAGE@ +Group: Development/Libraries/Java +Requires: javapackages-tools +Requires: lib3270 = %{version} %description java -Java class for lib3270/pw3270 interaction. - -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ - +Java class for lib3270/@PACKAGE@ interaction. -%package -n %{name}-plugin-java -Summary: Java plugin for %{name} -Group: Development/Libraries/Java -Requires: %{name} = @PACKAGE_VERSION@ -Requires: %{name}-java = @PACKAGE_VERSION@ +%package plugin-java +Summary: Java plugin for %{name} +Group: Development/Libraries/Java +Requires: %{name} = %{version} +Requires: %{name}-java = %{version} -%description -n %{name}-plugin-java +%description plugin-java This package provides a plugin allowing calling of java classes -from pw3270 application. +from @PACKAGE@ application. -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ - -%package javadoc -Summary: Javadoc for %{name} -Group: Documentation +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation Requires: jpackage-utils -Requires: %{name}-plugin-java - -%description javadoc -API documentation for %{name}. - -Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ +%description javadoc +API documentation for %{name}. %endif - #---[ Build & Install ]----------------------------------------------------------------------------------------------- %prep +echo "Distribution: %{_distro}" + +%if 0%{?_php} + echo " * PHP%{_php} is enabled" +%endif +%if 0%{?_dbus} + echo " * DBUS is enabled" +%endif + %setup -q -n %{name}-%{version} find . -exec touch {} \; aclocal autoconf + export CFLAGS="$RPM_OPT_FLAGS" export CXXFLAGS="$RPM_OPT_FLAGS" export FFLAGS="$RPM_OPT_FLAGS" -%if 0%{?_office} -export OFFICE_HOME=%{_libdir}/libreoffice -export OO_SDK_HOME=%{_libdir}/libreoffice/sdk -%endif - %if 0%{?_java} export JAVA_HOME=%{java_home} +echo "JAVA_HOME=$JAVA_HOME" +echo "javadocdir=%{_javadocdir}" %endif %configure --disable-strip \ --enable-pic \ --with-jnidir="%{_jnidir}" \ --with-jvmjardir="%{_jvmjardir}" \ - --with-javadocdir="%{_javadocdir}" \ - --with-rexxlibdir="%{_rexxlibdir}" - + --with-javadocdir="%{_javadocdir}" %build make clean make all %install -rm -rf $RPM_BUILD_ROOT -%makeinstall +export NO_BRP_CHECK_BYTECODE_VERSION=true + +make DESTDIR=$RPM_BUILD_ROOT install + +find $RPM_BUILD_ROOT + %find_lang %{name} langfiles +cat > @PACKAGE@.desktop << EOF +[Desktop Entry] +X-SuSE-translate=true +GenericName=@PACKAGE@ +Name=3270 Terminal +Comment=IBM 3270 Terminal emulator +Exec=@PACKAGE@ +Icon=%{_datadir}/@PACKAGE@/@PACKAGE@.png +Terminal=false +Type=Application +StartupNotify=true +EOF +chmod 644 @PACKAGE@.desktop + +desktop-file-install --mode 644 \ + --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ + --add-category System \ + --add-category TerminalEmulator \ + @PACKAGE@.desktop + +%if 0%{?_ooRexx} == 0 +# remove rexx-files from builddir if it's disabled +rm -f ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/80rexx.xml +%endif + +%if 0%{?_java} == 0 +# remove java-files from builddir if it's disabled +rm ${RPM_BUILD_ROOT}/%{_datadir}/@PACKAGE@/ui/*java*.xml +%endif + +find ${RPM_BUILD_ROOT} + %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} #---[ Files ]--------------------------------------------------------------------------------------------------------- %files -f langfiles %defattr(-,root,root) -%doc AUTHORS LICENSE +%doc AUTHORS LICENSE %{_mandir}/*/* # Main application -%dir %{_datadir}/@PACKAGE_NAME@ -%dir %{_datadir}/@PACKAGE_NAME@/ui -%{_datadir}/applications/@PACKAGE_NAME@.desktop - -%{_bindir}/@PACKAGE_NAME@ -%{_libdir}/libpw3270.so.@MAJOR_VERSION@ -%{_libdir}/libpw3270.so.@PACKAGE_VERSION@ - -%{_datadir}/@PACKAGE_NAME@/colors.conf -%{_datadir}/@PACKAGE_NAME@/ui/00default.xml -%{_datadir}/@PACKAGE_NAME@/ui/10functions.xml -%{_datadir}/@PACKAGE_NAME@/ui/10keypad.xml -%{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@.png -%{_datadir}/@PACKAGE_NAME@/@PACKAGE_NAME@-logo.png - -%files -n lib3270 +%dir %{_datadir}/@PACKAGE@ +%dir %{_datadir}/@PACKAGE@/ui +%{_bindir}/@PACKAGE@ +%{_libdir}/lib@PACKAGE@.so.5 +%{_libdir}/lib@PACKAGE@.so.%version + +%{_datadir}/applications/@PACKAGE@.desktop + +%{_datadir}/@PACKAGE@/ui/00default.xml +%{_datadir}/@PACKAGE@/ui/10functions.xml +%{_datadir}/@PACKAGE@/ui/10keypad.xml +%{_datadir}/@PACKAGE@/colors.conf +%{_datadir}/@PACKAGE@/@PACKAGE@.png +%{_datadir}/@PACKAGE@/@PACKAGE@-logo.png +%{_datadir}/locale/pt_BR/LC_MESSAGES/@PACKAGE@.mo +%dir %{_libdir}/@PACKAGE@-plugins + +%files -n lib3270-%LIBVERSION %defattr(-,root,root) -%{_libdir}/lib3270.so.@MAJOR_VERSION@ -%{_libdir}/lib3270.so.@PACKAGE_VERSION@ +%{_libdir}/lib3270.so.%version +%{_libdir}/lib3270.so.5 %files -n lib3270-devel %defattr(-,root,root) -%{_includedir}/pw3270/*.h -%{_includedir}/lib3270/*.h +%{_includedir}/lib3270 %{_includedir}/lib3270.h -%{_includedir}/pw3270.h -%{_datadir}/@PACKAGE_NAME@/ui/99debug.xml -%{_datadir}/@PACKAGE_NAME@/ui/98trace.xml -%{_libdir}/pkgconfig/*.pc +%{_libdir}/pkgconfig/lib3270.pc %{_libdir}/lib3270.so -%{_libdir}/libpw3270.so -%{_libdir}/*.a -%dir %{_datadir}/@PACKAGE_NAME@/sample -%{_datadir}/@PACKAGE_NAME@/sample/* +%files -n @PACKAGE@-devel +%defattr(-,root,root) +%{_includedir}/@PACKAGE@ +%{_includedir}/@PACKAGE@.h +%{_datadir}/@PACKAGE@/ui/98trace.xml +%{_datadir}/@PACKAGE@/ui/99debug.xml +%{_libdir}/lib@PACKAGE@.so +%{_libdir}/@PACKAGE@class.a +%{_libdir}/pkgconfig/@PACKAGE@.pc + +%dir %{_datadir}/@PACKAGE@/sample +%{_datadir}/@PACKAGE@/sample/* + +%if 0%{?_dbus} %files plugin-dbus %defattr(-,root,root) -%{_libdir}/@PACKAGE_NAME@-plugins/dbus3270.so +%{_libdir}/@PACKAGE@-plugins/dbus3270.so +%endif %if 0%{?_office} %files -n %{name}-libreoffice %defattr(-,root,root) %dir %{_libdir}/libreoffice/share/extensions/%{name} +%dir %{_libdir}/libreoffice/share/extensions/%{name}/META-INF %{_libdir}/libreoffice/share/extensions/%{name}/META-INF/manifest.xml %{_libdir}/libreoffice/share/extensions/%{name}/description.txt %{_libdir}/libreoffice/share/extensions/%{name}/description.xml -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.png -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.rdb -%{_libdir}/libreoffice/share/extensions/%{name}/pw3270.uno.so +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.png +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.rdb +%{_libdir}/libreoffice/share/extensions/%{name}/@PACKAGE@.uno.so %endif %if 0%{?_ooRexx} %files -n %{name}-plugin-rexx %defattr(-,root,root) -%{_rexxlibdir}/librx3270.so.@PACKAGE_VERSION@ +%{_rexxlibdir}/librx3270.so.%version %{_rexxlibdir}/librx3270.so %{_rexxclassdir}/rx3270.cls -%{_libdir}/@PACKAGE_NAME@-plugins/rx3270.so -%{_datadir}/pw3270/ui/80rexx.xml +%{_libdir}/@PACKAGE@-plugins/rx3270.so +%{_datadir}/@PACKAGE@/ui/80rexx.xml %endif %if 0%{?_php} -%files -n php%{phpmajor}-tn3270 +%files -n php%{_php}-tn3270 %defattr(-,root,root) -%{_sysconfdir}/php%{phpmajor}/conf.d/tn3270.ini -%{_libdir}/php%{phpmajor}/extensions/tn3270.so +%config %{_phpconf}/tn3270.ini +%{_phpextdir}/*.so %endif %if 0%{?_python} @@ -387,23 +533,26 @@ rm -rf $RPM_BUILD_ROOT %{pythonextpath}/py3270.so %endif - %if 0%{?_java} %files java %defattr(-,root,root) +%dir %{_jnidir} +%dir %{_jvmjardir} + %{_jnidir}/libjni3270.so -%{_jvmjardir}/pw3270.jar +%{_jvmjardir}/@PACKAGE@.jar -%files -n %{name}-plugin-java -%{_libdir}/@PACKAGE_NAME@-plugins/j3270.so +%files plugin-java +%defattr(-,root,root) +%{_libdir}/@PACKAGE@-plugins/j3270.so -%files javadoc -%dir %{_javadocdir}/%{name}/* -%{_javadocdir}/%{name}/* -%{_datadir}/pw3270/ui/80javasamples.xml +%files javadoc +%defattr(-,root,root) +%dir %{_javadocdir} +%{_javadocdir}/%{name} +%{_datadir}/@PACKAGE@/ui/*java*.xml %endif - #---[ Scripts ]------------------------------------------------------------------------------------------------------- %post @@ -414,16 +563,22 @@ exit 0 /sbin/ldconfig exit 0 -%post -n lib3270 +%post -n lib3270-%LIBVERSION /sbin/ldconfig exit 0 -%postun -n lib3270 +%postun -n lib3270-%LIBVERSION /sbin/ldconfig exit 0 %if 0%{?_ooRexx} +%post -n %{name}-plugin-rexx +/sbin/ldconfig +exit 0 + %postun -n %{name}-plugin-rexx /sbin/ldconfig exit 0 %endif + +%changelog -- libgit2 0.21.2