Commit bc2a9daa5fe04d1f0c260b502764dcf842b79fc0
1 parent
3891b897
Exists in
master
and in
1 other branch
Adding windows package control files.
Showing
2 changed files
with
274 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
| 1 | +# | ||
| 2 | +# spec file for packages mingw32-libhllapi | ||
| 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 __strip %{_mingw32_strip} | ||
| 20 | +%define __objdump %{_mingw32_objdump} | ||
| 21 | +%define _use_internal_dependency_generator 0 | ||
| 22 | +%define __find_requires %{_mingw32_findrequires} | ||
| 23 | +%define __find_provides %{_mingw32_findprovides} | ||
| 24 | +%define __os_install_post %{_mingw32_debug_install_post} \ | ||
| 25 | + %{_mingw32_install_post} | ||
| 26 | + | ||
| 27 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | ||
| 28 | + | ||
| 29 | +Name: mingw32-libhllapi | ||
| 30 | +Summary: HLLAPI client library for lib3270/pw3270 | ||
| 31 | +Version: 5.2 | ||
| 32 | +Release: 0 | ||
| 33 | +License: LGPL-3.0 | ||
| 34 | +Source: libhllapi-%{version}.tar.xz | ||
| 35 | + | ||
| 36 | +URL: https://github.com/PerryWerneck/libhllapi | ||
| 37 | + | ||
| 38 | +Group: Development/Libraries/C and C++ | ||
| 39 | + | ||
| 40 | +BuildRequires: autoconf >= 2.61 | ||
| 41 | +BuildRequires: automake | ||
| 42 | +BuildRequires: binutils | ||
| 43 | +BuildRequires: coreutils | ||
| 44 | +BuildRequires: gcc-c++ | ||
| 45 | +BuildRequires: gettext-devel | ||
| 46 | +BuildRequires: m4 | ||
| 47 | + | ||
| 48 | +BuildRequires: mingw32-cross-binutils | ||
| 49 | +BuildRequires: mingw32-cross-gcc | ||
| 50 | +BuildRequires: mingw32-cross-gcc-c++ | ||
| 51 | +BuildRequires: mingw32-cross-pkg-config | ||
| 52 | +BuildRequires: mingw32-filesystem | ||
| 53 | +BuildRequires: mingw32-zlib-devel | ||
| 54 | +BuildRequires: mingw32(lib:iconv) | ||
| 55 | +BuildRequires: mingw32(lib:intl) | ||
| 56 | + | ||
| 57 | +BuildRequires: mingw32(pkg:ipc3270) | ||
| 58 | + | ||
| 59 | +%description | ||
| 60 | + | ||
| 61 | +HLLAPI client library for pw3270/lib3270 | ||
| 62 | + | ||
| 63 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 64 | + | ||
| 65 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | ||
| 66 | + | ||
| 67 | +%define _product %(i686-w64-mingw32-pkg-config --variable=product_name lib3270) | ||
| 68 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | ||
| 69 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | ||
| 70 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 71 | + | ||
| 72 | +%package -n %{name}-%{_libvrs} | ||
| 73 | +Summary: IPC Library for pw3270 | ||
| 74 | +Group: Development/Libraries/C and C++ | ||
| 75 | +Provides: mingw32(lib:ipc3270) | ||
| 76 | + | ||
| 77 | +%description -n %{name}-%{_libvrs} | ||
| 78 | + | ||
| 79 | +HLLAPI client library for pw3270/lib3270 | ||
| 80 | + | ||
| 81 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 82 | + | ||
| 83 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
| 84 | + | ||
| 85 | +%package devel | ||
| 86 | +Summary: Development files for %{name} | ||
| 87 | +Requires: mingw32(pkg:ipc3270) | ||
| 88 | + | ||
| 89 | +%description devel | ||
| 90 | + | ||
| 91 | +HLLAPI client library for pw3270/lib3270 | ||
| 92 | + | ||
| 93 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 94 | + | ||
| 95 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
| 96 | + | ||
| 97 | +%prep | ||
| 98 | +%setup -n libhllapi-%{version} | ||
| 99 | + | ||
| 100 | +NOCONFIGURE=1 \ | ||
| 101 | + ./autogen.sh | ||
| 102 | + | ||
| 103 | +%{_mingw32_configure} \ | ||
| 104 | + --enable-static | ||
| 105 | + | ||
| 106 | +%build | ||
| 107 | +make all | ||
| 108 | + | ||
| 109 | +%{_mingw32_strip} \ | ||
| 110 | + --strip-all \ | ||
| 111 | + .bin/Release/*.dll | ||
| 112 | + | ||
| 113 | +%install | ||
| 114 | +rm -rf $RPM_BUILD_ROOT | ||
| 115 | + | ||
| 116 | +%makeinstall | ||
| 117 | + | ||
| 118 | +%files -n %{name}-%{_libvrs} | ||
| 119 | +%defattr(-,root,root) | ||
| 120 | + | ||
| 121 | +%doc AUTHORS README.md | ||
| 122 | +%license LICENSE | ||
| 123 | + | ||
| 124 | +%{_mingw32_libdir}/libhllapi.dll | ||
| 125 | +%{_mingw32_libdir}/libhllapi.dll.%{MAJOR_VERSION} | ||
| 126 | +%{_mingw32_libdir}/libhllapi.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 127 | + | ||
| 128 | +%files devel | ||
| 129 | +%defattr(-,root,root) | ||
| 130 | + | ||
| 131 | +%{_mingw32_includedir}/lib3270/*.h | ||
| 132 | +%{_mingw32_libdir}/*.a | ||
| 133 | +%{_mingw32_libdir}/*.lib | ||
| 134 | +%{_mingw32_datadir}/%{_product}/def/*.def | ||
| 135 | + | ||
| 136 | +%changelog | ||
| 137 | + |
| @@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
| 1 | +# | ||
| 2 | +# spec file for packages mingw64-libhllapi | ||
| 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 __strip %{_mingw64_strip} | ||
| 20 | +%define __objdump %{_mingw64_objdump} | ||
| 21 | +%define _use_internal_dependency_generator 0 | ||
| 22 | +%define __find_requires %{_mingw64_findrequires} | ||
| 23 | +%define __find_provides %{_mingw64_findprovides} | ||
| 24 | +%define __os_install_post %{_mingw64_debug_install_post} \ | ||
| 25 | + %{_mingw64_install_post} | ||
| 26 | + | ||
| 27 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | ||
| 28 | + | ||
| 29 | +Name: mingw64-libhllapi | ||
| 30 | +Summary: HLLAPI client library for lib3270/pw3270 | ||
| 31 | +Version: 5.2 | ||
| 32 | +Release: 0 | ||
| 33 | +License: LGPL-3.0 | ||
| 34 | +Source: libhllapi-%{version}.tar.xz | ||
| 35 | + | ||
| 36 | +URL: https://github.com/PerryWerneck/libhllapi | ||
| 37 | + | ||
| 38 | +Group: Development/Libraries/C and C++ | ||
| 39 | + | ||
| 40 | +BuildRequires: autoconf >= 2.61 | ||
| 41 | +BuildRequires: automake | ||
| 42 | +BuildRequires: binutils | ||
| 43 | +BuildRequires: coreutils | ||
| 44 | +BuildRequires: gcc-c++ | ||
| 45 | +BuildRequires: gettext-devel | ||
| 46 | +BuildRequires: m4 | ||
| 47 | + | ||
| 48 | +BuildRequires: mingw64-cross-binutils | ||
| 49 | +BuildRequires: mingw64-cross-gcc | ||
| 50 | +BuildRequires: mingw64-cross-gcc-c++ | ||
| 51 | +BuildRequires: mingw64-cross-pkg-config | ||
| 52 | +BuildRequires: mingw64-filesystem | ||
| 53 | +BuildRequires: mingw64-zlib-devel | ||
| 54 | +BuildRequires: mingw64(lib:iconv) | ||
| 55 | +BuildRequires: mingw64(lib:intl) | ||
| 56 | + | ||
| 57 | +BuildRequires: mingw64(pkg:ipc3270) | ||
| 58 | + | ||
| 59 | +%description | ||
| 60 | + | ||
| 61 | +HLLAPI client library for pw3270/lib3270 | ||
| 62 | + | ||
| 63 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 64 | + | ||
| 65 | +#---[ Library ]------------------------------------------------------------------------------------------------------- | ||
| 66 | + | ||
| 67 | +%define _product %(x86_64-w64-mingw32-pkg-config --variable=product_name lib3270) | ||
| 68 | +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1) | ||
| 69 | +%define MINOR_VERSION %(echo %{version} | cut -d. -f2) | ||
| 70 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 71 | + | ||
| 72 | +%package -n %{name}-%{_libvrs} | ||
| 73 | +Summary: IPC Library for pw3270 | ||
| 74 | +Group: Development/Libraries/C and C++ | ||
| 75 | +Provides: mingw64(lib:ipc3270) | ||
| 76 | + | ||
| 77 | +%description -n %{name}-%{_libvrs} | ||
| 78 | + | ||
| 79 | +HLLAPI client library for pw3270/lib3270 | ||
| 80 | + | ||
| 81 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 82 | + | ||
| 83 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
| 84 | + | ||
| 85 | +%package devel | ||
| 86 | +Summary: Development files for %{name} | ||
| 87 | +Requires: mingw64(pkg:ipc3270) | ||
| 88 | + | ||
| 89 | +%description devel | ||
| 90 | + | ||
| 91 | +HLLAPI client library for pw3270/lib3270 | ||
| 92 | + | ||
| 93 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 94 | + | ||
| 95 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
| 96 | + | ||
| 97 | +%prep | ||
| 98 | +%setup -n libhllapi-%{version} | ||
| 99 | + | ||
| 100 | +NOCONFIGURE=1 \ | ||
| 101 | + ./autogen.sh | ||
| 102 | + | ||
| 103 | +%{_mingw64_configure} \ | ||
| 104 | + --enable-static | ||
| 105 | + | ||
| 106 | +%build | ||
| 107 | +make all | ||
| 108 | + | ||
| 109 | +%{_mingw64_strip} \ | ||
| 110 | + --strip-all \ | ||
| 111 | + .bin/Release/*.dll | ||
| 112 | + | ||
| 113 | +%install | ||
| 114 | +rm -rf $RPM_BUILD_ROOT | ||
| 115 | + | ||
| 116 | +%makeinstall | ||
| 117 | + | ||
| 118 | +%files -n %{name}-%{_libvrs} | ||
| 119 | +%defattr(-,root,root) | ||
| 120 | + | ||
| 121 | +%doc AUTHORS README.md | ||
| 122 | +%license LICENSE | ||
| 123 | + | ||
| 124 | +%{_mingw64_libdir}/libhllapi.dll | ||
| 125 | +%{_mingw64_libdir}/libhllapi.dll.%{MAJOR_VERSION} | ||
| 126 | +%{_mingw64_libdir}/libhllapi.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
| 127 | + | ||
| 128 | +%files devel | ||
| 129 | +%defattr(-,root,root) | ||
| 130 | + | ||
| 131 | +%{_mingw64_includedir}/lib3270/*.h | ||
| 132 | +%{_mingw64_libdir}/*.a | ||
| 133 | +%{_mingw64_libdir}/*.lib | ||
| 134 | +%{_mingw64_datadir}/%{_product}/def/*.def | ||
| 135 | + | ||
| 136 | +%changelog | ||
| 137 | + |