Commit b9bc31897ff1850605671978eedd8487cd9ccb05
1 parent
cf929544
Exists in
master
and in
1 other branch
Updating windows packages.
Showing
2 changed files
with
98 additions
and
75 deletions
Show diff stats
win/x86_32/mingw32-libipc3270.spec
| 1 | 1 | # |
| 2 | -# spec file for packages mingw32-pw3270-plugin-ipc | |
| 2 | +# spec file for packages mingw32-libipc3270 | |
| 3 | 3 | # |
| 4 | 4 | # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. |
| 5 | 5 | # Copyright (C) <2008> <Banco do Brasil S.A.> |
| ... | ... | @@ -26,8 +26,8 @@ |
| 26 | 26 | |
| 27 | 27 | #---[ Main package ]-------------------------------------------------------------------------------------------------- |
| 28 | 28 | |
| 29 | -Summary: D-Bus based IPC plugin for pw3270 | |
| 30 | -Name: mingw32-pw3270-plugin-ipc | |
| 29 | +Name: mingw32-libipc3270 | |
| 30 | +Summary: lib3270/pw3270 IPC client library. | |
| 31 | 31 | Version: 5.2 |
| 32 | 32 | |
| 33 | 33 | %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) |
| ... | ... | @@ -37,15 +37,11 @@ Version: 5.2 |
| 37 | 37 | |
| 38 | 38 | Release: 0 |
| 39 | 39 | License: LGPL-3.0 |
| 40 | -Source: pw3270-plugin-ipc-%{version}.tar.xz | |
| 40 | +Source: libipc3270-%{version}.tar.xz | |
| 41 | 41 | |
| 42 | -Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
| 42 | +Url: https://github.com/PerryWerneck/libipc3270.git | |
| 43 | 43 | |
| 44 | -Group: System/X11/Terminals | |
| 45 | -BuildRoot: /var/tmp/%{name}-%{version} | |
| 46 | - | |
| 47 | -Provides: mingw32-lib3270-ipc-service | |
| 48 | -Conflicts: otherproviders(mingw32-lib3270-ipc-service) | |
| 44 | +Group: Development/Libraries/C and C++ | |
| 49 | 45 | |
| 50 | 46 | BuildRequires: autoconf >= 2.61 |
| 51 | 47 | BuildRequires: automake |
| ... | ... | @@ -70,47 +66,66 @@ BuildRequires: mingw32(pkg:libv3270) |
| 70 | 66 | |
| 71 | 67 | %description |
| 72 | 68 | |
| 73 | -PW3270 IPC plugin. | |
| 69 | +IPC client library for lib3270/pw3270. | |
| 70 | + | |
| 71 | +Designed as framework for language bindings. | |
| 74 | 72 | |
| 75 | 73 | See more details at https://softwarepublico.gov.br/social/pw3270/ |
| 76 | 74 | |
| 77 | -#---[ IPC Library Package ]------------------------------------------------------------------------------------------- | |
| 75 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | |
| 78 | 76 | |
| 79 | -%package -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 80 | -Summary: IPC Library for pw3270 | |
| 77 | +%define product %(pkg-config --variable=product_name lib3270) | |
| 78 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | |
| 79 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | |
| 80 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 81 | 81 | |
| 82 | -Recommends: mingw32-lib3270-ipc-service | |
| 83 | -Provides: mingw32(lib:ipc3270) | |
| 82 | +%package -n %{name}-%{_libvrs} | |
| 83 | +Summary: IPC Library for pw3270 | |
| 84 | +Group: Development/Libraries/C and C++ | |
| 84 | 85 | |
| 85 | -%description -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 86 | +%description -n %{name}-%{_libvrs} | |
| 86 | 87 | |
| 87 | 88 | IPC client library for lib3270/pw3270. |
| 88 | 89 | |
| 89 | -Designed as a support tool for language bindings. | |
| 90 | +Designed as framework for language bindings. | |
| 91 | + | |
| 92 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 90 | 93 | |
| 91 | -%package -n mingw32-libipc3270-devel | |
| 92 | -Summary: Development files for ipc3270 | |
| 93 | -Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 94 | -Requires: pkgconfig(lib3270) | |
| 94 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 95 | 95 | |
| 96 | -%description -n mingw32-libipc3270-devel | |
| 96 | +%package devel | |
| 97 | +Summary: Development files for %{name} | |
| 98 | +Requires: mingw32(pkg:lib3270) | |
| 99 | + | |
| 100 | +%description devel | |
| 97 | 101 | |
| 98 | 102 | Development files for lib3270/pw3270 IPC client library. |
| 99 | 103 | |
| 100 | 104 | Designed as a support tool for language bindings. |
| 101 | 105 | |
| 106 | +#---[ Plugin module for pw3270 main application ]---------------------------------------------------------------------- | |
| 107 | + | |
| 108 | +%package -n mingw32-%{_product}-plugin-ipc | |
| 109 | +Summary: IPC service plugin for %{_product} | |
| 110 | +Requires: mingw32-%{_product} >= 5.2 | |
| 111 | + | |
| 112 | +%description -n mingw32-%{_product}-plugin-ipc | |
| 113 | + | |
| 114 | +PW3270 plugin exporting D-Bus objects for every tn3270 session. | |
| 115 | + | |
| 116 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 102 | 117 | |
| 103 | 118 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
| 104 | 119 | |
| 105 | 120 | %prep |
| 106 | -%setup -n pw3270-plugin-ipc-%{version} | |
| 121 | +%setup -n libipc3270-%{version} | |
| 107 | 122 | |
| 108 | -NOCONFIGURE=1 ./autogen.sh | |
| 123 | +NOCONFIGURE=1 \ | |
| 124 | + ./autogen.sh | |
| 109 | 125 | |
| 110 | 126 | %{_mingw32_configure} |
| 111 | 127 | |
| 112 | 128 | %build |
| 113 | -make clean | |
| 114 | 129 | make all |
| 115 | 130 | |
| 116 | 131 | %{_mingw32_strip} \ |
| ... | ... | @@ -122,27 +137,24 @@ rm -rf $RPM_BUILD_ROOT |
| 122 | 137 | |
| 123 | 138 | %makeinstall |
| 124 | 139 | |
| 125 | -%files | |
| 140 | +%files -n %{name}-%{_libvrs} | |
| 126 | 141 | %defattr(-,root,root) |
| 127 | 142 | |
| 128 | 143 | # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros |
| 129 | -%if 0%{?sle_version} > 120200 | |
| 130 | 144 | %doc AUTHORS README.md |
| 131 | 145 | %license LICENSE |
| 132 | -%else | |
| 133 | -%doc AUTHORS README.md LICENSE | |
| 134 | -%endif | |
| 135 | - | |
| 136 | -%dir %{_mingw32_libdir}/%{_product}-plugins | |
| 137 | -%{_mingw32_libdir}/%{_product}-plugins/ipcserver.dll | |
| 138 | 146 | |
| 139 | -%files -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 140 | -%defattr(-,root,root) | |
| 141 | 147 | %{_mingw32_libdir}/libipc3270.dll |
| 142 | 148 | %{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION} |
| 143 | 149 | %{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} |
| 144 | 150 | |
| 145 | -%files -n mingw32-libipc3270-devel | |
| 151 | +%files -n mingw32-%{_product}-plugin-ipc | |
| 152 | +%defattr(-,root,root) | |
| 153 | + | |
| 154 | +%dir %{_mingw32_libdir}/%{_product}-plugins | |
| 155 | +%{_mingw32_libdir}/%{_product}-plugins/ipcserver.dll | |
| 156 | + | |
| 157 | +%files devel | |
| 146 | 158 | %defattr(-,root,root) |
| 147 | 159 | %{_mingw32_includedir}/lib3270/ipc.h |
| 148 | 160 | %dir %{_mingw32_includedir}/lib3270/ipc | ... | ... |
win/x86_64/mingw64-libipc3270.spec
| 1 | 1 | # |
| 2 | -# spec file for packages mingw64-pw3270-plugin-ipc | |
| 2 | +# spec file for packages mingw64-libipc3270 | |
| 3 | 3 | # |
| 4 | 4 | # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. |
| 5 | 5 | # Copyright (C) <2008> <Banco do Brasil S.A.> |
| ... | ... | @@ -26,8 +26,8 @@ |
| 26 | 26 | |
| 27 | 27 | #---[ Main package ]-------------------------------------------------------------------------------------------------- |
| 28 | 28 | |
| 29 | -Summary: D-Bus based IPC plugin for pw3270 | |
| 30 | -Name: mingw64-pw3270-plugin-ipc | |
| 29 | +Name: mingw64-libipc3270 | |
| 30 | +Summary: lib3270/pw3270 IPC client library. | |
| 31 | 31 | Version: 5.2 |
| 32 | 32 | |
| 33 | 33 | %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) |
| ... | ... | @@ -35,18 +35,13 @@ Version: 5.2 |
| 35 | 35 | %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} |
| 36 | 36 | %define _product %(x86_64-w64-mingw32-pkg-config --variable=product_name lib3270) |
| 37 | 37 | |
| 38 | - | |
| 39 | 38 | Release: 0 |
| 40 | 39 | License: LGPL-3.0 |
| 41 | -Source: pw3270-plugin-ipc-%{version}.tar.xz | |
| 42 | - | |
| 43 | -Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
| 40 | +Source: libipc3270-%{version}.tar.xz | |
| 44 | 41 | |
| 45 | -Group: System/X11/Terminals | |
| 46 | -BuildRoot: /var/tmp/%{name}-%{version} | |
| 42 | +Url: https://github.com/PerryWerneck/libipc3270.git | |
| 47 | 43 | |
| 48 | -Provides: mingw64-lib3270-ipc-service | |
| 49 | -Conflicts: otherproviders(mingw64-lib3270-ipc-service) | |
| 44 | +Group: Development/Libraries/C and C++ | |
| 50 | 45 | |
| 51 | 46 | BuildRequires: autoconf >= 2.61 |
| 52 | 47 | BuildRequires: automake |
| ... | ... | @@ -71,47 +66,66 @@ BuildRequires: mingw64(pkg:libv3270) |
| 71 | 66 | |
| 72 | 67 | %description |
| 73 | 68 | |
| 74 | -PW3270 IPC plugin. | |
| 69 | +IPC client library for lib3270/pw3270. | |
| 70 | + | |
| 71 | +Designed as framework for language bindings. | |
| 75 | 72 | |
| 76 | 73 | See more details at https://softwarepublico.gov.br/social/pw3270/ |
| 77 | 74 | |
| 78 | -#---[ IPC Library Package ]------------------------------------------------------------------------------------------- | |
| 75 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | |
| 79 | 76 | |
| 80 | -%package -n mingw64-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 81 | -Summary: IPC Library for pw3270 | |
| 77 | +%define product %(pkg-config --variable=product_name lib3270) | |
| 78 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | |
| 79 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | |
| 80 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 82 | 81 | |
| 83 | -Recommends: mingw64-lib3270-ipc-service | |
| 84 | -Provides: mingw64(lib:ipc3270) | |
| 82 | +%package -n %{name}-%{_libvrs} | |
| 83 | +Summary: IPC Library for pw3270 | |
| 84 | +Group: Development/Libraries/C and C++ | |
| 85 | 85 | |
| 86 | -%description -n mingw64-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 86 | +%description -n %{name}-%{_libvrs} | |
| 87 | 87 | |
| 88 | 88 | IPC client library for lib3270/pw3270. |
| 89 | 89 | |
| 90 | -Designed as a support tool for language bindings. | |
| 90 | +Designed as framework for language bindings. | |
| 91 | + | |
| 92 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 91 | 93 | |
| 92 | -%package -n mingw64-libipc3270-devel | |
| 93 | -Summary: Development files for ipc3270 | |
| 94 | -Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 95 | -Requires: pkgconfig(lib3270) | |
| 94 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
| 96 | 95 | |
| 97 | -%description -n mingw64-libipc3270-devel | |
| 96 | +%package devel | |
| 97 | +Summary: Development files for %{name} | |
| 98 | +Requires: mingw64(pkg:lib3270) | |
| 99 | + | |
| 100 | +%description devel | |
| 98 | 101 | |
| 99 | 102 | Development files for lib3270/pw3270 IPC client library. |
| 100 | 103 | |
| 101 | 104 | Designed as a support tool for language bindings. |
| 102 | 105 | |
| 106 | +#---[ Plugin module for pw3270 main application ]---------------------------------------------------------------------- | |
| 107 | + | |
| 108 | +%package -n mingw64-%{_product}-plugin-ipc | |
| 109 | +Summary: IPC service plugin for %{_product} | |
| 110 | +Requires: mingw64-%{_product} >= 5.2 | |
| 111 | + | |
| 112 | +%description -n mingw64-%{_product}-plugin-ipc | |
| 113 | + | |
| 114 | +PW3270 plugin exporting D-Bus objects for every tn3270 session. | |
| 115 | + | |
| 116 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
| 103 | 117 | |
| 104 | 118 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
| 105 | 119 | |
| 106 | 120 | %prep |
| 107 | -%setup -n pw3270-plugin-ipc-%{version} | |
| 121 | +%setup -n libipc3270-%{version} | |
| 108 | 122 | |
| 109 | -NOCONFIGURE=1 ./autogen.sh | |
| 123 | +NOCONFIGURE=1 \ | |
| 124 | + ./autogen.sh | |
| 110 | 125 | |
| 111 | 126 | %{_mingw64_configure} |
| 112 | 127 | |
| 113 | 128 | %build |
| 114 | -make clean | |
| 115 | 129 | make all |
| 116 | 130 | |
| 117 | 131 | %{_mingw64_strip} \ |
| ... | ... | @@ -123,27 +137,24 @@ rm -rf $RPM_BUILD_ROOT |
| 123 | 137 | |
| 124 | 138 | %makeinstall |
| 125 | 139 | |
| 126 | -%files | |
| 140 | +%files -n %{name}-%{_libvrs} | |
| 127 | 141 | %defattr(-,root,root) |
| 128 | 142 | |
| 129 | 143 | # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros |
| 130 | -%if 0%{?sle_version} > 120200 | |
| 131 | 144 | %doc AUTHORS README.md |
| 132 | 145 | %license LICENSE |
| 133 | -%else | |
| 134 | -%doc AUTHORS README.md LICENSE | |
| 135 | -%endif | |
| 136 | - | |
| 137 | -%dir %{_mingw64_libdir}/%{_product}-plugins | |
| 138 | -%{_mingw64_libdir}/%{_product}-plugins/ipcserver.dll | |
| 139 | 146 | |
| 140 | -%files -n mingw64-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
| 141 | -%defattr(-,root,root) | |
| 142 | 147 | %{_mingw64_libdir}/libipc3270.dll |
| 143 | 148 | %{_mingw64_libdir}/libipc3270.dll.%{MAJOR_VERSION} |
| 144 | 149 | %{_mingw64_libdir}/libipc3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} |
| 145 | 150 | |
| 146 | -%files -n mingw64-libipc3270-devel | |
| 151 | +%files -n mingw64-%{_product}-plugin-ipc | |
| 152 | +%defattr(-,root,root) | |
| 153 | + | |
| 154 | +%dir %{_mingw64_libdir}/%{_product}-plugins | |
| 155 | +%{_mingw64_libdir}/%{_product}-plugins/ipcserver.dll | |
| 156 | + | |
| 157 | +%files devel | |
| 147 | 158 | %defattr(-,root,root) |
| 148 | 159 | %{_mingw64_includedir}/lib3270/ipc.h |
| 149 | 160 | %dir %{_mingw64_includedir}/lib3270/ipc | ... | ... |