Commit 29c24154ffa3c697a2a9f031b2871544ccbfaeb9
1 parent
774480e6
Exists in
master
Updating java bindings.
Showing
2 changed files
with
126 additions
and
126 deletions
Show diff stats
| @@ -0,0 +1,126 @@ | @@ -0,0 +1,126 @@ | ||
| 1 | +# | ||
| 2 | +# spec file for package pw3270-plugin-java | ||
| 3 | +# | ||
| 4 | +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. | ||
| 5 | +# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 6 | +# | ||
| 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/ | ||
| 17 | +# | ||
| 18 | + | ||
| 19 | +%define vrslib %(pkg-config --modversion lib3270) | ||
| 20 | + | ||
| 21 | +Summary: Plugin module for embedding java on pw3270. | ||
| 22 | +Name: pw3270-plugin-java | ||
| 23 | +Version: 5.1 | ||
| 24 | +Release: 0 | ||
| 25 | +License: GPL-2.0 | ||
| 26 | +Source: %{name}-%{version}.tar.bz2 | ||
| 27 | +URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270-java | ||
| 28 | +Group: Development/Languages/Java | ||
| 29 | + | ||
| 30 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
| 31 | + | ||
| 32 | +BuildRequires: autoconf >= 2.61 | ||
| 33 | +BuildRequires: automake | ||
| 34 | +BuildRequires: binutils | ||
| 35 | +BuildRequires: coreutils | ||
| 36 | +BuildRequires: gcc-c++ | ||
| 37 | +BuildRequires: m4 | ||
| 38 | +BuildRequires: pkgconfig | ||
| 39 | +BuildRequires: pkgconfig(pw3270) >= 5.1 | ||
| 40 | +BuildRequires: pkgconfig(lib3270) >= 5.1 | ||
| 41 | + | ||
| 42 | +BuildRequires: java-devel | ||
| 43 | +BuildRequires: javapackages-tools | ||
| 44 | +BuildRequires: fdupes | ||
| 45 | + | ||
| 46 | +Requires: pw3270 >= 5.1 | ||
| 47 | +Requires: java-extension-tn3270 = %{version} | ||
| 48 | + | ||
| 49 | +%description | ||
| 50 | + | ||
| 51 | +Plugin module for java plugins in pw3270. | ||
| 52 | + | ||
| 53 | +This package provides a pw3270 plugin allowing use of java classes | ||
| 54 | +directly from pw3270 main window. | ||
| 55 | + | ||
| 56 | +%package -n pw3270-java | ||
| 57 | + | ||
| 58 | +Summary: Java class to interact with pw3270 | ||
| 59 | +Group: Development/Libraries/Java | ||
| 60 | +Requires: java | ||
| 61 | +Requires: lib3270 = %{vrslib} | ||
| 62 | + | ||
| 63 | +%description -n pw3270-java | ||
| 64 | + | ||
| 65 | +This package provides Java class for lib3270/pw3270 interaction. | ||
| 66 | + | ||
| 67 | +%package -n pw3270-java-doc | ||
| 68 | +Summary: Javadoc for %{name} | ||
| 69 | +Group: Documentation | ||
| 70 | +Requires: jpackage-utils | ||
| 71 | + | ||
| 72 | +%description -n pw3270-java-doc | ||
| 73 | +API documentation for %{name}. | ||
| 74 | + | ||
| 75 | +%prep | ||
| 76 | + | ||
| 77 | +%setup | ||
| 78 | + | ||
| 79 | +export CFLAGS="$RPM_OPT_FLAGS" | ||
| 80 | +export CXXFLAGS="$RPM_OPT_FLAGS" | ||
| 81 | +export FFLAGS="$RPM_OPT_FLAGS" | ||
| 82 | +export JAVA_HOME=%{java_home} | ||
| 83 | + | ||
| 84 | +aclocal | ||
| 85 | +autoconf | ||
| 86 | + | ||
| 87 | +%configure --with-jnidir="%{_jnidir}" \ | ||
| 88 | + --with-jvmjardir="%{_jvmjardir}" \ | ||
| 89 | + --with-javadocdir="%{_javadocdir}" | ||
| 90 | + | ||
| 91 | +%build | ||
| 92 | +make clean | ||
| 93 | +make Release | ||
| 94 | + | ||
| 95 | +%install | ||
| 96 | +rm -rf $RPM_BUILD_ROOT | ||
| 97 | + | ||
| 98 | +%make_install | ||
| 99 | + | ||
| 100 | +%fdupes $RPM_BUILD_ROOT | ||
| 101 | + | ||
| 102 | +%clean | ||
| 103 | +rm -rf $RPM_BUILD_ROOT | ||
| 104 | + | ||
| 105 | +%files | ||
| 106 | +%defattr(-,root,root) | ||
| 107 | +%dir %{_libdir}/pw3270-plugins | ||
| 108 | +%{_libdir}/pw3270-plugins/j3270.so | ||
| 109 | + | ||
| 110 | +%files -n pw3270-java | ||
| 111 | +%defattr(-,root,root) | ||
| 112 | +%doc README.md | ||
| 113 | +%dir %{_jnidir} | ||
| 114 | +%dir %{_jvmjardir} | ||
| 115 | + | ||
| 116 | +%{_jnidir}/libjni3270.so | ||
| 117 | +%{_jvmjardir}/pw3270.jar | ||
| 118 | + | ||
| 119 | +%files -n pw3270-java-doc | ||
| 120 | +%defattr(-,root,root) | ||
| 121 | +%dir %{_javadocdir}/pw3270 | ||
| 122 | +%{_javadocdir}/pw3270/* | ||
| 123 | + | ||
| 124 | +%changelog | ||
| 125 | + | ||
| 126 | + |
rpm/pw3270-plugin-java.spec
| @@ -1,126 +0,0 @@ | @@ -1,126 +0,0 @@ | ||
| 1 | -# | ||
| 2 | -# spec file for package pw3270-plugin-java | ||
| 3 | -# | ||
| 4 | -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. | ||
| 5 | -# Copyright (C) <2008> <Banco do Brasil S.A.> | ||
| 6 | -# | ||
| 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/ | ||
| 17 | -# | ||
| 18 | - | ||
| 19 | -%define vrslib %(pkg-config --modversion lib3270) | ||
| 20 | - | ||
| 21 | -Summary: Plugin module for embedding java on pw3270. | ||
| 22 | -Name: pw3270-plugin-java | ||
| 23 | -Version: 5.1 | ||
| 24 | -Release: 0 | ||
| 25 | -License: GPL-2.0 | ||
| 26 | -Source: %{name}-%{version}.tar.bz2 | ||
| 27 | -URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270-java | ||
| 28 | -Group: Development/Languages/Java | ||
| 29 | - | ||
| 30 | -BuildRoot: /var/tmp/%{name}-%{version} | ||
| 31 | - | ||
| 32 | -BuildRequires: autoconf >= 2.61 | ||
| 33 | -BuildRequires: automake | ||
| 34 | -BuildRequires: binutils | ||
| 35 | -BuildRequires: coreutils | ||
| 36 | -BuildRequires: gcc-c++ | ||
| 37 | -BuildRequires: m4 | ||
| 38 | -BuildRequires: pkgconfig | ||
| 39 | -BuildRequires: pkgconfig(pw3270) >= 5.1 | ||
| 40 | -BuildRequires: pkgconfig(lib3270) >= 5.1 | ||
| 41 | - | ||
| 42 | -BuildRequires: java-devel | ||
| 43 | -BuildRequires: javapackages-tools | ||
| 44 | -BuildRequires: fdupes | ||
| 45 | - | ||
| 46 | -Requires: pw3270 >= 5.1 | ||
| 47 | -Requires: java-extension-tn3270 = %{version} | ||
| 48 | - | ||
| 49 | -%description | ||
| 50 | - | ||
| 51 | -Plugin module for java plugins in pw3270. | ||
| 52 | - | ||
| 53 | -This package provides a pw3270 plugin allowing use of java classes | ||
| 54 | -directly from pw3270 main window. | ||
| 55 | - | ||
| 56 | -%package -n pw3270-java | ||
| 57 | - | ||
| 58 | -Summary: Java class to interact with pw3270 | ||
| 59 | -Group: Development/Libraries/Java | ||
| 60 | -Requires: java | ||
| 61 | -Requires: lib3270 = %{vrslib} | ||
| 62 | - | ||
| 63 | -%description -n pw3270-java | ||
| 64 | - | ||
| 65 | -This package provides Java class for lib3270/pw3270 interaction. | ||
| 66 | - | ||
| 67 | -%package -n pw3270-java-doc | ||
| 68 | -Summary: Javadoc for %{name} | ||
| 69 | -Group: Documentation | ||
| 70 | -Requires: jpackage-utils | ||
| 71 | - | ||
| 72 | -%description -n pw3270-java-doc | ||
| 73 | -API documentation for %{name}. | ||
| 74 | - | ||
| 75 | -%prep | ||
| 76 | - | ||
| 77 | -%setup | ||
| 78 | - | ||
| 79 | -export CFLAGS="$RPM_OPT_FLAGS" | ||
| 80 | -export CXXFLAGS="$RPM_OPT_FLAGS" | ||
| 81 | -export FFLAGS="$RPM_OPT_FLAGS" | ||
| 82 | -export JAVA_HOME=%{java_home} | ||
| 83 | - | ||
| 84 | -aclocal | ||
| 85 | -autoconf | ||
| 86 | - | ||
| 87 | -%configure --with-jnidir="%{_jnidir}" \ | ||
| 88 | - --with-jvmjardir="%{_jvmjardir}" \ | ||
| 89 | - --with-javadocdir="%{_javadocdir}" | ||
| 90 | - | ||
| 91 | -%build | ||
| 92 | -make clean | ||
| 93 | -make Release | ||
| 94 | - | ||
| 95 | -%install | ||
| 96 | -rm -rf $RPM_BUILD_ROOT | ||
| 97 | - | ||
| 98 | -%make_install | ||
| 99 | - | ||
| 100 | -%fdupes $RPM_BUILD_ROOT | ||
| 101 | - | ||
| 102 | -%clean | ||
| 103 | -rm -rf $RPM_BUILD_ROOT | ||
| 104 | - | ||
| 105 | -%files | ||
| 106 | -%defattr(-,root,root) | ||
| 107 | -%dir %{_libdir}/pw3270-plugins | ||
| 108 | -%{_libdir}/pw3270-plugins/j3270.so | ||
| 109 | - | ||
| 110 | -%files -n pw3270-java | ||
| 111 | -%defattr(-,root,root) | ||
| 112 | -%doc README.md | ||
| 113 | -%dir %{_jnidir} | ||
| 114 | -%dir %{_jvmjardir} | ||
| 115 | - | ||
| 116 | -%{_jnidir}/libjni3270.so | ||
| 117 | -%{_jvmjardir}/pw3270.jar | ||
| 118 | - | ||
| 119 | -%files -n pw3270-java-doc | ||
| 120 | -%defattr(-,root,root) | ||
| 121 | -%dir %{_javadocdir}/pw3270 | ||
| 122 | -%{_javadocdir}/pw3270/* | ||
| 123 | - | ||
| 124 | -%changelog | ||
| 125 | - | ||
| 126 | - |