Commit 99a99f7633965329e649c25a87981a24de1818dc
1 parent
161b7291
Exists in
master
and in
3 other branches
Updating windows package.
Showing
6 changed files
with
280 additions
and
295 deletions
Show diff stats
win/mingw32/_service
@@ -3,9 +3,8 @@ | @@ -3,9 +3,8 @@ | ||
3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | 3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> |
4 | <service name="tar_scm"> | 4 | <service name="tar_scm"> |
5 | <param name="changesgenerate">enable</param> | 5 | <param name="changesgenerate">enable</param> |
6 | - <param name="sslverify">disable</param> | ||
7 | <param name="versionformat">@PARENT_TAG@</param> | 6 | <param name="versionformat">@PARENT_TAG@</param> |
8 | - <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git</param> | 7 | + <param name="url">https://github.com/PerryWerneck/lib3270.git</param> |
9 | <param name="scm">git</param> | 8 | <param name="scm">git</param> |
10 | </service> | 9 | </service> |
11 | 10 | ||
@@ -13,6 +12,7 @@ | @@ -13,6 +12,7 @@ | ||
13 | <!-- service name="extract_file"> | 12 | <!-- service name="extract_file"> |
14 | <param name="archive">*.tar</param> | 13 | <param name="archive">*.tar</param> |
15 | <param name="files">*/win/mingw32/lib3270.spec</param> | 14 | <param name="files">*/win/mingw32/lib3270.spec</param> |
15 | + <param name="outfilename">mingw32-lib3270.spec</param> | ||
16 | </service --> | 16 | </service --> |
17 | 17 | ||
18 | <service name="recompress"> | 18 | <service name="recompress"> |
win/mingw32/lib3270.spec
@@ -1,146 +0,0 @@ | @@ -1,146 +0,0 @@ | ||
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 %{_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: TN3270 Access library | ||
35 | -Name: mingw32-lib3270-%{_libvrs} | ||
36 | -Version: 5.2 | ||
37 | -Release: 0 | ||
38 | -License: GPL-2.0 | ||
39 | - | ||
40 | -Source: lib3270-%{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(lib:3270) = %{version} | ||
48 | -Provides: mingw32(lib:3270-%{_libvrs}) = %{version} | ||
49 | - | ||
50 | -Provides: mingw32(lib:3270++) = %{version} | ||
51 | -Provides: mingw32(lib:3270++%{_libvrs}) = %{version} | ||
52 | - | ||
53 | -BuildRequires: autoconf | ||
54 | -BuildRequires: automake | ||
55 | -BuildRequires: gettext-tools | ||
56 | - | ||
57 | -BuildRequires: mingw32-cross-binutils | ||
58 | -BuildRequires: mingw32-cross-gcc | ||
59 | -BuildRequires: mingw32-cross-gcc-c++ | ||
60 | -BuildRequires: mingw32-cross-pkg-config | ||
61 | -BuildRequires: mingw32-filesystem | ||
62 | -BuildRequires: mingw32-libopenssl-devel | ||
63 | -BuildRequires: mingw32-zlib-devel | ||
64 | -BuildRequires: mingw32(lib:iconv) | ||
65 | -BuildRequires: mingw32(lib:intl) | ||
66 | - | ||
67 | -%description | ||
68 | - | ||
69 | -TN3270 access library originally designed as part of the pw3270 application. | ||
70 | - | ||
71 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
72 | - | ||
73 | -#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
74 | - | ||
75 | -%package devel | ||
76 | - | ||
77 | -Summary: TN3270 Access library development files | ||
78 | -Group: Development/Libraries/C and C++ | ||
79 | -Requires: %{name} = %{version} | ||
80 | - | ||
81 | -Provides: mingw32-lib3270-devel = %{version} | ||
82 | -Conflicts: otherproviders(mingw32-lib3270-devel) | ||
83 | - | ||
84 | -%description devel | ||
85 | - | ||
86 | -TN3270 access library for C development files. | ||
87 | - | ||
88 | -Originally designed as part of the pw3270 application. | ||
89 | - | ||
90 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
91 | - | ||
92 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
93 | - | ||
94 | -%prep | ||
95 | -%setup -n lib3270-%{version} | ||
96 | - | ||
97 | -NOCONFIGURE=1 ./autogen.sh | ||
98 | - | ||
99 | -%{_mingw32_configure} \ | ||
100 | - --with-sdk-version=%{version} | ||
101 | - | ||
102 | -%build | ||
103 | -make clean | ||
104 | -make all | ||
105 | - | ||
106 | -%{_mingw32_strip} \ | ||
107 | - --strip-all \ | ||
108 | - .bin/Release/*.dll | ||
109 | - | ||
110 | -%install | ||
111 | -%{_mingw32_makeinstall} | ||
112 | - | ||
113 | -%clean | ||
114 | -rm -rf %{buildroot} | ||
115 | - | ||
116 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
117 | - | ||
118 | -%files | ||
119 | -%defattr(-,root,root) | ||
120 | -%doc AUTHORS LICENSE README.md | ||
121 | - | ||
122 | -%{_mingw32_libdir}/lib3270.dll | ||
123 | -%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
124 | -%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
125 | - | ||
126 | -%{_mingw32_libdir}/lib3270++.dll | ||
127 | -%{_mingw32_libdir}/lib3270++.dll.%{MAJOR_VERSION} | ||
128 | -%{_mingw32_libdir}/lib3270++.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
129 | - | ||
130 | -%dir %{_mingw32_datadir}/pw3270 | ||
131 | - | ||
132 | -%files devel | ||
133 | -%defattr(-,root,root) | ||
134 | - | ||
135 | -%{_mingw32_includedir}/lib3270 | ||
136 | - | ||
137 | -%{_mingw32_includedir}/*.h | ||
138 | -%{_mingw32_libdir}/pkgconfig/*.pc | ||
139 | -%{_mingw32_libdir}/*.a | ||
140 | - | ||
141 | -%dir %{_mingw32_datadir}/pw3270/pot | ||
142 | -%{_mingw32_datadir}/pw3270/pot/*.pot | ||
143 | - | ||
144 | - | ||
145 | -%changelog | ||
146 | - |
@@ -0,0 +1,139 @@ | @@ -0,0 +1,139 @@ | ||
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 %{_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: TN3270 Access library | ||
35 | +Name: mingw32-lib3270-%{_libvrs} | ||
36 | +Version: 5.2 | ||
37 | +Release: 0 | ||
38 | +License: GPL-2.0 | ||
39 | + | ||
40 | +Source: lib3270-%{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(lib:3270) = %{version} | ||
48 | +Provides: mingw32(lib:3270-%{_libvrs}) = %{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(lib:iconv) | ||
62 | +BuildRequires: mingw32(lib:intl) | ||
63 | + | ||
64 | +%description | ||
65 | + | ||
66 | +TN3270 access library originally designed as part of the pw3270 application. | ||
67 | + | ||
68 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
69 | + | ||
70 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
71 | + | ||
72 | +%package devel | ||
73 | + | ||
74 | +Summary: TN3270 Access library development files | ||
75 | +Group: Development/Libraries/C and C++ | ||
76 | +Requires: %{name} = %{version} | ||
77 | + | ||
78 | +Provides: mingw32-lib3270-devel = %{version} | ||
79 | +Conflicts: otherproviders(mingw32-lib3270-devel) | ||
80 | + | ||
81 | +%description devel | ||
82 | + | ||
83 | +TN3270 access library for C development files. | ||
84 | + | ||
85 | +Originally designed as part of the pw3270 application. | ||
86 | + | ||
87 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
88 | + | ||
89 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
90 | + | ||
91 | +%prep | ||
92 | +%setup -n lib3270-%{version} | ||
93 | + | ||
94 | +NOCONFIGURE=1 ./autogen.sh | ||
95 | + | ||
96 | +%{_mingw32_configure} \ | ||
97 | + --with-sdk-version=%{version} | ||
98 | + | ||
99 | +%build | ||
100 | +make clean | ||
101 | +make all | ||
102 | + | ||
103 | +%{_mingw32_strip} \ | ||
104 | + --strip-all \ | ||
105 | + .bin/Release/*.dll | ||
106 | + | ||
107 | +%install | ||
108 | +%{_mingw32_makeinstall} | ||
109 | + | ||
110 | +%clean | ||
111 | +rm -rf %{buildroot} | ||
112 | + | ||
113 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
114 | + | ||
115 | +%files | ||
116 | +%defattr(-,root,root) | ||
117 | +%doc AUTHORS LICENSE README.md | ||
118 | + | ||
119 | +%{_mingw32_libdir}/lib3270.dll | ||
120 | +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
121 | +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
122 | + | ||
123 | +%dir %{_mingw32_datadir}/pw3270 | ||
124 | + | ||
125 | +%files devel | ||
126 | +%defattr(-,root,root) | ||
127 | + | ||
128 | +%{_mingw32_includedir}/lib3270 | ||
129 | + | ||
130 | +%{_mingw32_includedir}/*.h | ||
131 | +%{_mingw32_libdir}/pkgconfig/*.pc | ||
132 | +%{_mingw32_libdir}/*.a | ||
133 | + | ||
134 | +%dir %{_mingw32_datadir}/pw3270/pot | ||
135 | +%{_mingw32_datadir}/pw3270/pot/*.pot | ||
136 | + | ||
137 | + | ||
138 | +%changelog | ||
139 | + |
win/mingw64/_service
@@ -3,14 +3,13 @@ | @@ -3,14 +3,13 @@ | ||
3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | 3 | <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> |
4 | <service name="tar_scm"> | 4 | <service name="tar_scm"> |
5 | <param name="changesgenerate">enable</param> | 5 | <param name="changesgenerate">enable</param> |
6 | - <param name="sslverify">disable</param> | ||
7 | <param name="versionformat">@PARENT_TAG@</param> | 6 | <param name="versionformat">@PARENT_TAG@</param> |
8 | - <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/lib3270.git</param> | 7 | + <param name="url">https://github.com/PerryWerneck/lib3270.git</param> |
9 | <param name="scm">git</param> | 8 | <param name="scm">git</param> |
10 | </service> | 9 | </service> |
11 | 10 | ||
12 | <!-- https://github.com/openSUSE/obs-service-extract_file --> | 11 | <!-- https://github.com/openSUSE/obs-service-extract_file --> |
13 | - <!-- service name="extract_file"> | 12 | + <!--service name="extract_file"> |
14 | <param name="archive">*.tar</param> | 13 | <param name="archive">*.tar</param> |
15 | <param name="files">*/win/mingw64/lib3270.spec</param> | 14 | <param name="files">*/win/mingw64/lib3270.spec</param> |
16 | <param name="outfilename">mingw64-lib3270.spec</param> | 15 | <param name="outfilename">mingw64-lib3270.spec</param> |
win/mingw64/lib3270.spec
@@ -1,144 +0,0 @@ | @@ -1,144 +0,0 @@ | ||
1 | -# | ||
2 | -# spec file for package mingw64-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: TN3270 Access library | ||
35 | -Name: mingw64-lib3270-%{_libvrs} | ||
36 | -Version: 5.2 | ||
37 | -Release: 0 | ||
38 | -License: GPL-2.0 | ||
39 | - | ||
40 | -Source: lib3270-%{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: mingw64(lib:3270) = %{version} | ||
48 | -Provides: mingw64(lib:3270-%{_libvrs}) = %{version} | ||
49 | - | ||
50 | -Provides: mingw64(lib:3270++) = %{version} | ||
51 | -Provides: mingw64(lib:3270++%{_libvrs}) = %{version} | ||
52 | - | ||
53 | -BuildRequires: autoconf | ||
54 | -BuildRequires: automake | ||
55 | -BuildRequires: gettext-tools | ||
56 | - | ||
57 | -BuildRequires: mingw64-cross-binutils | ||
58 | -BuildRequires: mingw64-cross-gcc | ||
59 | -BuildRequires: mingw64-cross-gcc-c++ | ||
60 | -BuildRequires: mingw64-cross-pkg-config | ||
61 | -BuildRequires: mingw64-filesystem | ||
62 | -BuildRequires: mingw64-libopenssl-devel | ||
63 | -BuildRequires: mingw64-zlib-devel | ||
64 | -BuildRequires: mingw64(lib:iconv) | ||
65 | -BuildRequires: mingw64(lib:intl) | ||
66 | - | ||
67 | -%description | ||
68 | - | ||
69 | -TN3270 access library originally designed as part of the pw3270 application. | ||
70 | - | ||
71 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
72 | - | ||
73 | -#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
74 | - | ||
75 | -%package devel | ||
76 | - | ||
77 | -Summary: TN3270 Access library development files | ||
78 | -Group: Development/Libraries/C and C++ | ||
79 | -Requires: %{name} = %{version} | ||
80 | - | ||
81 | -Provides: mingw64-lib3270-devel = %{version} | ||
82 | -Conflicts: otherproviders(mingw64-lib3270-devel) | ||
83 | - | ||
84 | -%description devel | ||
85 | - | ||
86 | -TN3270 access library for C development files. | ||
87 | - | ||
88 | -Originally designed as part of the pw3270 application. | ||
89 | - | ||
90 | -See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
91 | - | ||
92 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
93 | - | ||
94 | -%prep | ||
95 | -%setup -n lib3270-%{version} | ||
96 | - | ||
97 | -NOCONFIGURE=1 ./autogen.sh | ||
98 | - | ||
99 | -%{_mingw64_configure} \ | ||
100 | - --with-sdk-version=%{version} | ||
101 | - | ||
102 | -%build | ||
103 | -make clean | ||
104 | -make all | ||
105 | - | ||
106 | -%{_mingw64_strip} \ | ||
107 | - --strip-all \ | ||
108 | - .bin/Release/*.dll | ||
109 | - | ||
110 | -%install | ||
111 | -%{_mingw64_makeinstall} | ||
112 | - | ||
113 | -%clean | ||
114 | -rm -rf %{buildroot} | ||
115 | - | ||
116 | -#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
117 | - | ||
118 | -%files | ||
119 | -%defattr(-,root,root) | ||
120 | -%doc AUTHORS LICENSE README.md | ||
121 | - | ||
122 | -%{_mingw64_libdir}/lib3270.dll | ||
123 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
124 | -%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
125 | - | ||
126 | -%{_mingw64_libdir}/lib3270++.dll | ||
127 | -%{_mingw64_libdir}/lib3270++.dll.%{MAJOR_VERSION} | ||
128 | -%{_mingw64_libdir}/lib3270++.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
129 | - | ||
130 | -%dir %{_mingw64_datadir}/pw3270 | ||
131 | - | ||
132 | -%files devel | ||
133 | -%defattr(-,root,root) | ||
134 | - | ||
135 | -%{_mingw64_includedir}/lib3270 | ||
136 | - | ||
137 | -%{_mingw64_includedir}/*.h | ||
138 | -%{_mingw64_libdir}/pkgconfig/*.pc | ||
139 | -%{_mingw64_libdir}/*.a | ||
140 | - | ||
141 | -%dir %{_mingw64_datadir}/pw3270/pot | ||
142 | -%{_mingw64_datadir}/pw3270/pot/*.pot | ||
143 | - | ||
144 | -%changelog |
@@ -0,0 +1,137 @@ | @@ -0,0 +1,137 @@ | ||
1 | +# | ||
2 | +# spec file for package mingw64-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: TN3270 Access library | ||
35 | +Name: mingw64-lib3270-%{_libvrs} | ||
36 | +Version: 5.2 | ||
37 | +Release: 0 | ||
38 | +License: GPL-2.0 | ||
39 | + | ||
40 | +Source: lib3270-%{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: mingw64(lib:3270) = %{version} | ||
48 | +Provides: mingw64(lib:3270-%{_libvrs}) = %{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 | +BuildRequires: mingw64(lib:iconv) | ||
62 | +BuildRequires: mingw64(lib:intl) | ||
63 | + | ||
64 | +%description | ||
65 | + | ||
66 | +TN3270 access library originally designed as part of the pw3270 application. | ||
67 | + | ||
68 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
69 | + | ||
70 | +#---[ Development ]--------------------------------------------------------------------------------------------------- | ||
71 | + | ||
72 | +%package devel | ||
73 | + | ||
74 | +Summary: TN3270 Access library development files | ||
75 | +Group: Development/Libraries/C and C++ | ||
76 | +Requires: %{name} = %{version} | ||
77 | + | ||
78 | +Provides: mingw64-lib3270-devel = %{version} | ||
79 | +Conflicts: otherproviders(mingw64-lib3270-devel) | ||
80 | + | ||
81 | +%description devel | ||
82 | + | ||
83 | +TN3270 access library for C development files. | ||
84 | + | ||
85 | +Originally designed as part of the pw3270 application. | ||
86 | + | ||
87 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
88 | + | ||
89 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
90 | + | ||
91 | +%prep | ||
92 | +%setup -n lib3270-%{version} | ||
93 | + | ||
94 | +NOCONFIGURE=1 ./autogen.sh | ||
95 | + | ||
96 | +%{_mingw64_configure} \ | ||
97 | + --with-sdk-version=%{version} | ||
98 | + | ||
99 | +%build | ||
100 | +make clean | ||
101 | +make all | ||
102 | + | ||
103 | +%{_mingw64_strip} \ | ||
104 | + --strip-all \ | ||
105 | + .bin/Release/*.dll | ||
106 | + | ||
107 | +%install | ||
108 | +%{_mingw64_makeinstall} | ||
109 | + | ||
110 | +%clean | ||
111 | +rm -rf %{buildroot} | ||
112 | + | ||
113 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
114 | + | ||
115 | +%files | ||
116 | +%defattr(-,root,root) | ||
117 | +%doc AUTHORS LICENSE README.md | ||
118 | + | ||
119 | +%{_mingw64_libdir}/lib3270.dll | ||
120 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
121 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
122 | + | ||
123 | +%dir %{_mingw64_datadir}/pw3270 | ||
124 | + | ||
125 | +%files devel | ||
126 | +%defattr(-,root,root) | ||
127 | + | ||
128 | +%{_mingw64_includedir}/lib3270 | ||
129 | + | ||
130 | +%{_mingw64_includedir}/*.h | ||
131 | +%{_mingw64_libdir}/pkgconfig/*.pc | ||
132 | +%{_mingw64_libdir}/*.a | ||
133 | + | ||
134 | +%dir %{_mingw64_datadir}/pw3270/pot | ||
135 | +%{_mingw64_datadir}/pw3270/pot/*.pot | ||
136 | + | ||
137 | +%changelog |