Commit 9664af72f1796d90d62ec2fce408fb599ec6e9a0
1 parent
1f7353c3
Exists in
master
and in
1 other branch
Updating files for windows package.
Showing
4 changed files
with
324 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,133 @@ |
1 | +# | |
2 | +# spec file for package mingw32-libv3270 | |
3 | +# | |
4 | +# Copyright (c) 2014 SUSE LINUX Products 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 MAJOR_VERSION 5 | |
20 | +%define MINOR_VERSION 2 | |
21 | + | |
22 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | |
23 | + | |
24 | +%define __strip %{_mingw32_strip} | |
25 | +%define __objdump %{_mingw32_objdump} | |
26 | +%define _use_internal_dependency_generator 0 | |
27 | +%define __find_requires %{_mingw32_findrequires} | |
28 | +%define __find_provides %{_mingw32_findprovides} | |
29 | +%define __os_install_post %{_mingw32_debug_install_post} \ | |
30 | + %{_mingw32_install_post} | |
31 | + | |
32 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | |
33 | + | |
34 | +Summary: 3270 Virtual Terminal for GTK | |
35 | +Name: mingw32-libv3270-%{_libvrs} | |
36 | +Version: 5.2 | |
37 | +Release: 0 | |
38 | +License: GPL-2.0 | |
39 | + | |
40 | +Source: %{name}-%{version}.tar.xz | |
41 | + | |
42 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
43 | + | |
44 | +Group: Development/Libraries/C and C++ | |
45 | +BuildRoot: /var/tmp/%{name}-%{version} | |
46 | + | |
47 | +Provides: mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION} | |
48 | +Conflicts: otherproviders(mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) | |
49 | + | |
50 | +BuildRequires: autoconf | |
51 | +BuildRequires: automake | |
52 | +BuildRequires: gettext-tools | |
53 | + | |
54 | +BuildRequires: mingw32-cross-binutils | |
55 | +BuildRequires: mingw32-cross-gcc | |
56 | +BuildRequires: mingw32-cross-gcc-c++ | |
57 | +BuildRequires: mingw32-cross-pkg-config | |
58 | +BuildRequires: mingw32-filesystem | |
59 | +BuildRequires: mingw32-libopenssl-devel | |
60 | +BuildRequires: mingw32-zlib-devel | |
61 | +BuildRequires: mingw32(pkg:gtk+-win32-3.0) | |
62 | + | |
63 | +BuildRequires: mingw32(lib:3270) | |
64 | + | |
65 | +%description | |
66 | + | |
67 | +TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
68 | + | |
69 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
70 | + | |
71 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
72 | + | |
73 | +%package devel | |
74 | + | |
75 | +Summary: 3270 Virtual Terminal for GTK development files | |
76 | +Group: Development/Libraries/C and C++ | |
77 | +Requires: %{name} = %{version} | |
78 | + | |
79 | +Provides: mingw32-libv3270-devel = %{version} | |
80 | +Conflicts: otherproviders(mingw32-libv3270-devel) | |
81 | + | |
82 | +%description devel | |
83 | + | |
84 | +3270 Virtual Terminal for GTK development files. | |
85 | + | |
86 | +Originally designed as part of the pw3270 application. | |
87 | + | |
88 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
89 | + | |
90 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
91 | + | |
92 | +%prep | |
93 | +%setup | |
94 | + | |
95 | +NOCONFIGURE=1 ./autogen.sh | |
96 | + | |
97 | +%{_mingw32_configure} \ | |
98 | + --with-sdk-version=%{version} | |
99 | + | |
100 | +%build | |
101 | +make clean | |
102 | +make all | |
103 | + | |
104 | +%{_mingw32_strip} \ | |
105 | + --strip-all \ | |
106 | + .bin/libv3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
107 | + | |
108 | +%install | |
109 | +%{_mingw32_makeinstall} | |
110 | + | |
111 | +%clean | |
112 | +rm -rf %{buildroot} | |
113 | + | |
114 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
115 | + | |
116 | +%files | |
117 | +%defattr(-,root,root) | |
118 | +%doc AUTHORS LICENSE README.md | |
119 | + | |
120 | +%{_mingw32_libdir}/libv3270.dll | |
121 | +%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
122 | +%{_mingw32_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
123 | + | |
124 | +%files devel | |
125 | +%defattr(-,root,root) | |
126 | +%{_mingw32_includedir}/libv3270 | |
127 | +%{_mingw32_includedir}/libv3270.h | |
128 | +%{_mingw32_libdir}/pkgconfig/libv3270.pc | |
129 | + | |
130 | +%{_mingw32_libdir}/libv3270.a | |
131 | + | |
132 | +%changelog | |
133 | + | ... | ... |
... | ... | @@ -0,0 +1,29 @@ |
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="sslverify">disable</param> | |
7 | + <param name="versionformat">%ct</param> | |
8 | + <!-- param name="version">5.2</param --> | |
9 | + <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/libv3270.git</param> | |
10 | + <param name="scm">git</param> | |
11 | + <param name="filename">mingw32-libv3270-5_2</param> | |
12 | + </service> | |
13 | + | |
14 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
15 | + <service name="extract_file"> | |
16 | + <param name="archive">*.tar</param> | |
17 | + <param name="files">*/win/mingw32-libv3270.spec</param> | |
18 | + <param name="outfilename">mingw32-libv3270-5_2.spec</param> | |
19 | + </service> | |
20 | + | |
21 | + <service name="recompress"> | |
22 | + <param name="file">*.tar</param> | |
23 | + <param name="compression">xz</param> | |
24 | + </service> | |
25 | + | |
26 | + <service name="set_version" /> | |
27 | + | |
28 | +</services> | |
29 | + | ... | ... |
... | ... | @@ -0,0 +1,134 @@ |
1 | +# | |
2 | +# spec file for package mingw32-lib3279 | |
3 | +# | |
4 | +# Copyright (c) 2014 SUSE LINUX Products 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 MAJOR_VERSION 5 | |
20 | +%define MINOR_VERSION 2 | |
21 | + | |
22 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | |
23 | + | |
24 | +%define __strip %{_mingw64_strip} | |
25 | +%define __objdump %{_mingw64_objdump} | |
26 | +%define _use_internal_dependency_generator 0 | |
27 | +%define __find_requires %{_mingw64_findrequires} | |
28 | +%define __find_provides %{_mingw64_findprovides} | |
29 | +%define __os_install_post %{_mingw64_debug_install_post} \ | |
30 | + %{_mingw64_install_post} | |
31 | + | |
32 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | |
33 | + | |
34 | +Summary: 3270 Virtual Terminal for GTK | |
35 | +Name: mingw64-lib3270-%{_libvrs} | |
36 | +Version: 5.2 | |
37 | +Release: 0 | |
38 | +License: GPL-2.0 | |
39 | + | |
40 | +Source: %{name}-%{version}.tar.xz | |
41 | + | |
42 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | |
43 | + | |
44 | +Group: Development/Libraries/C and C++ | |
45 | +BuildRoot: /var/tmp/%{name}-%{version} | |
46 | + | |
47 | +Provides: mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION} | |
48 | +Conflicts: otherproviders(mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) | |
49 | + | |
50 | +BuildRequires: autoconf | |
51 | +BuildRequires: automake | |
52 | +BuildRequires: gettext-tools | |
53 | + | |
54 | +BuildRequires: mingw64-cross-binutils | |
55 | +BuildRequires: mingw64-cross-gcc | |
56 | +BuildRequires: mingw64-cross-gcc-c++ | |
57 | +BuildRequires: mingw64-cross-pkg-config | |
58 | +BuildRequires: mingw64-filesystem | |
59 | +BuildRequires: mingw64-libopenssl-devel | |
60 | +BuildRequires: mingw64-zlib-devel | |
61 | + | |
62 | +BuildRequires: mingw64(lib:3270) | |
63 | + | |
64 | +BuildRequires: mingw64(pkg:gtk+-win32-3.0) | |
65 | + | |
66 | +%description | |
67 | + | |
68 | +TN3270 GTK Virtual terminal Widget originally designed as part of the pw3270 application. | |
69 | + | |
70 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
71 | + | |
72 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | |
73 | + | |
74 | +%package devel | |
75 | + | |
76 | +Summary: 3270 Virtual Terminal for GTK development files | |
77 | +Group: Development/Libraries/C and C++ | |
78 | +Requires: %{name} = %{version} | |
79 | + | |
80 | +Provides: mingw64-libv3270-devel = %{version} | |
81 | +Conflicts: otherproviders(mingw64-libv3270-devel) | |
82 | + | |
83 | +%description devel | |
84 | + | |
85 | +3270 Virtual Terminal for GTK development files. | |
86 | + | |
87 | +Originally designed as part of the pw3270 application. | |
88 | + | |
89 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | |
90 | + | |
91 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
92 | + | |
93 | +%prep | |
94 | +%setup | |
95 | + | |
96 | +NOCONFIGURE=1 ./autogen.sh | |
97 | + | |
98 | +%{_mingw64_configure} \ | |
99 | + --with-sdk-version=%{version} | |
100 | + | |
101 | +%build | |
102 | +make clean | |
103 | +make all | |
104 | + | |
105 | +%{_mingw64_strip} \ | |
106 | + --strip-all \ | |
107 | + .bin/libv3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
108 | + | |
109 | +%install | |
110 | +%{_mingw64_makeinstall} | |
111 | + | |
112 | +%clean | |
113 | +rm -rf %{buildroot} | |
114 | + | |
115 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
116 | + | |
117 | +%files | |
118 | +%defattr(-,root,root) | |
119 | +%doc AUTHORS LICENSE README.md | |
120 | + | |
121 | +%{_mingw64_libdir}/libv3270.dll | |
122 | +%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION} | |
123 | +%{_mingw64_libdir}/libv3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
124 | + | |
125 | +%files devel | |
126 | +%defattr(-,root,root) | |
127 | +%{_mingw64_includedir}/libv3270 | |
128 | +%{_mingw64_includedir}/libv3270.h | |
129 | +%{_mingw64_libdir}/pkgconfig/libv3270.pc | |
130 | + | |
131 | +%{_mingw64_libdir}/libv3270.a | |
132 | + | |
133 | +%changelog | |
134 | + | ... | ... |
... | ... | @@ -0,0 +1,28 @@ |
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="sslverify">disable</param> | |
7 | + <param name="versionformat">%ct</param> | |
8 | + <!-- param name="version">5.2</param --> | |
9 | + <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/libv3270.git</param> | |
10 | + <param name="scm">git</param> | |
11 | + <param name="filename">mingw64-libv3270-5_2</param> | |
12 | + </service> | |
13 | + | |
14 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
15 | + <service name="extract_file"> | |
16 | + <param name="archive">*.tar</param> | |
17 | + <param name="files">*/win/mingw64-libv3270.spec</param> | |
18 | + <param name="outfilename">mingw64-libv3270-5_2.spec</param> | |
19 | + </service> | |
20 | + | |
21 | + <service name="recompress"> | |
22 | + <param name="file">*.tar</param> | |
23 | + <param name="compression">xz</param> | |
24 | + </service> | |
25 | + | |
26 | + <service name="set_version" /> | |
27 | + | |
28 | +</services> | ... | ... |