Commit 4870467dfa22d64da83f95f866f7bd800f248db8
1 parent
03a2aca3
Exists in
master
and in
1 other branch
Packaging for 64 bits windows.
Showing
2 changed files
with
183 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
| 1 | +<services> | ||
| 2 | + | ||
| 3 | + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | ||
| 4 | + <service name="tar_scm"> | ||
| 5 | + <param name="changesgenerate">enable</param> | ||
| 6 | + <param name="changesauthor">perry.werneck@gmail.com</param> | ||
| 7 | + <!-- param name="sslverify">disable</param --> | ||
| 8 | + <param name="versionformat">@PARENT_TAG@</param> | ||
| 9 | + <param name="url">https://github.com/PerryWerneck/pw3270-plugin-ipc.git</param> | ||
| 10 | + <param name="scm">git</param> | ||
| 11 | + </service> | ||
| 12 | + | ||
| 13 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | ||
| 14 | + <!-- service name="extract_file"> | ||
| 15 | + <param name="archive">*.tar</param> | ||
| 16 | + <param name="files">*/rpm/*.spec</param> | ||
| 17 | + </service --> | ||
| 18 | + | ||
| 19 | + <service name="recompress"> | ||
| 20 | + <param name="file">*.tar</param> | ||
| 21 | + <param name="compression">xz</param> | ||
| 22 | + </service> | ||
| 23 | + | ||
| 24 | + <service name="set_version" /> | ||
| 25 | + | ||
| 26 | +</services> |
| @@ -0,0 +1,157 @@ | @@ -0,0 +1,157 @@ | ||
| 1 | +# | ||
| 2 | +# spec file for packages mingw32-pw3270-plugin-ipc | ||
| 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 | +#---[ Versions ]------------------------------------------------------------------------------------------------------ | ||
| 20 | + | ||
| 21 | +%define MAJOR_VERSION 5 | ||
| 22 | +%define MINOR_VERSION 2 | ||
| 23 | + | ||
| 24 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 25 | + | ||
| 26 | +%define __strip %{_mingw32_strip} | ||
| 27 | +%define __objdump %{_mingw32_objdump} | ||
| 28 | +%define _use_internal_dependency_generator 0 | ||
| 29 | +%define __find_requires %{_mingw32_findrequires} | ||
| 30 | +%define __find_provides %{_mingw32_findprovides} | ||
| 31 | +%define __os_install_post %{_mingw32_debug_install_post} \ | ||
| 32 | + %{_mingw32_install_post} | ||
| 33 | + | ||
| 34 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | ||
| 35 | + | ||
| 36 | +Summary: D-Bus based IPC plugin for pw3270 | ||
| 37 | +Name: mingw32-pw3270-plugin-ipc | ||
| 38 | +Version: 5.2 | ||
| 39 | +Release: 0 | ||
| 40 | +License: LGPL-3.0 | ||
| 41 | +Source: pw3270-plugin-ipc-%{version}.tar.xz | ||
| 42 | + | ||
| 43 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
| 44 | + | ||
| 45 | +Group: System/X11/Terminals | ||
| 46 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
| 47 | + | ||
| 48 | +Provides: mingw32-lib3270-ipc-service | ||
| 49 | +Conflicts: otherproviders(mingw32-lib3270-ipc-service) | ||
| 50 | + | ||
| 51 | +BuildRequires: mingw32-lib3270-devel >= 5.2 | ||
| 52 | +BuildRequires: mingw32-libv3270-devel >= 5.2 | ||
| 53 | +BuildRequires: autoconf >= 2.61 | ||
| 54 | +BuildRequires: automake | ||
| 55 | +BuildRequires: binutils | ||
| 56 | +BuildRequires: coreutils | ||
| 57 | +BuildRequires: gcc-c++ | ||
| 58 | +BuildRequires: gettext-devel | ||
| 59 | +BuildRequires: m4 | ||
| 60 | + | ||
| 61 | +BuildRequires: mingw32-cross-binutils | ||
| 62 | +BuildRequires: mingw32-cross-gcc | ||
| 63 | +BuildRequires: mingw32-cross-gcc-c++ | ||
| 64 | +BuildRequires: mingw32-cross-pkg-config | ||
| 65 | +BuildRequires: mingw32-filesystem | ||
| 66 | +BuildRequires: mingw32-zlib-devel | ||
| 67 | +BuildRequires: mingw32(lib:iconv) | ||
| 68 | +BuildRequires: mingw32(lib:intl) | ||
| 69 | + | ||
| 70 | +BuildRequires: mingw32(pkg:gtk+-win32-3.0) | ||
| 71 | +BuildRequires: mingw32(pkg:lib3270) | ||
| 72 | +BuildRequires: mingw32(pkg:lib3270-static) | ||
| 73 | +BuildRequires: mingw32(pkg:libv3270) | ||
| 74 | + | ||
| 75 | +%description | ||
| 76 | + | ||
| 77 | +PW3270 IPC plugin. | ||
| 78 | + | ||
| 79 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 80 | + | ||
| 81 | +#---[ IPC Library Package ]------------------------------------------------------------------------------------------- | ||
| 82 | + | ||
| 83 | +%package -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 84 | +Summary: IPC Library for pw3270 | ||
| 85 | + | ||
| 86 | +Recommends: mingw32-lib3270-ipc-service | ||
| 87 | +Provides: mingw32(lib:ipc3270) | ||
| 88 | + | ||
| 89 | +%description -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 90 | + | ||
| 91 | +IPC client library for lib3270/pw3270. | ||
| 92 | + | ||
| 93 | +Designed as a support tool for language bindings. | ||
| 94 | + | ||
| 95 | +%package -n mingw32-libipc3270-devel | ||
| 96 | +Summary: Development files for ipc3270 | ||
| 97 | +Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 98 | +Requires: pkgconfig(lib3270) | ||
| 99 | + | ||
| 100 | +%description -n mingw32-libipc3270-devel | ||
| 101 | + | ||
| 102 | +Development files for lib3270/pw3270 IPC client library. | ||
| 103 | + | ||
| 104 | +Designed as a support tool for language bindings. | ||
| 105 | + | ||
| 106 | + | ||
| 107 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
| 108 | + | ||
| 109 | +%prep | ||
| 110 | +%setup -n pw3270-plugin-ipc-%{version} | ||
| 111 | + | ||
| 112 | +NOCONFIGURE=1 ./autogen.sh | ||
| 113 | + | ||
| 114 | +%{_mingw32_configure} \ | ||
| 115 | + --without-static-lib3270 | ||
| 116 | + | ||
| 117 | +%build | ||
| 118 | +make clean | ||
| 119 | +make all | ||
| 120 | + | ||
| 121 | +%{_mingw32_strip} \ | ||
| 122 | + --strip-all \ | ||
| 123 | + .bin/Release/*.dll | ||
| 124 | + | ||
| 125 | +%install | ||
| 126 | +rm -rf $RPM_BUILD_ROOT | ||
| 127 | + | ||
| 128 | +%makeinstall | ||
| 129 | + | ||
| 130 | +%files | ||
| 131 | +%defattr(-,root,root) | ||
| 132 | + | ||
| 133 | +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | ||
| 134 | +%if 0%{?sle_version} > 120200 | ||
| 135 | +%doc AUTHORS README.md | ||
| 136 | +%license LICENSE | ||
| 137 | +%else | ||
| 138 | +%doc AUTHORS README.md LICENSE | ||
| 139 | +%endif | ||
| 140 | + | ||
| 141 | +%dir %{_mingw32_libdir}/pw3270-plugins | ||
| 142 | +%{_mingw32_libdir}/pw3270-plugins/ipcserver.dll | ||
| 143 | + | ||
| 144 | +%files -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 145 | +%defattr(-,root,root) | ||
| 146 | +%{_mingw32_libdir}/libipc3270.dll | ||
| 147 | +%{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION} | ||
| 148 | +%{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 149 | + | ||
| 150 | +%files -n mingw32-libipc3270-devel | ||
| 151 | +%defattr(-,root,root) | ||
| 152 | +%{_mingw32_includedir}/lib3270/ipc.h | ||
| 153 | +%{_mingw32_libdir}/*.a | ||
| 154 | +%{_mingw32_libdir}/pkgconfig/*.pc | ||
| 155 | + | ||
| 156 | +%changelog | ||
| 157 | + |