Commit 850de235104ec20cd77105484cc4cb0c22dc3e20
1 parent
d7168568
Exists in
master
and in
5 other branches
Ajustes para empacotamento windows 32 bits.
Showing
1 changed file
with
213 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,213 @@ |
1 | +# | |
2 | +# spec file for package mingw32-pw3270 | |
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 1 | |
21 | + | |
22 | +%define __strip %{_mingw32_strip} | |
23 | +%define __objdump %{_mingw32_objdump} | |
24 | +%define _use_internal_dependency_generator 0 | |
25 | +%define __find_requires %{_mingw32_findrequires} | |
26 | +%define __find_provides %{_mingw32_findprovides} | |
27 | +%define __os_install_post %{_mingw32_debug_install_post} \ | |
28 | + %{_mingw32_install_post} | |
29 | + | |
30 | +#---[ Packaging ]----------------------------------------------------------------------------------------------------- | |
31 | + | |
32 | +Name: mingw32-pw3270 | |
33 | +Version: 5.1 | |
34 | +Release: 0 | |
35 | +Summary: IBM 3270 Terminal emulator for GTK | |
36 | +License: GPL-2.0 | |
37 | +Group: System/X11/Terminals | |
38 | +Url: http://www.softwarepublico.gov.br/dotlrn/clubs/pw3270 | |
39 | +Source: pw3270-%{version}.tar.bz2 | |
40 | +BuildRoot: %{_tmppath}/%{name}-%{version}-build | |
41 | + | |
42 | +Requires: mingw32-gtk3 | |
43 | +Requires: mingw32-lib3270 = %{version} | |
44 | + | |
45 | +Provides: mingw32(lib:pw3270) = %{version} | |
46 | +Requires: mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | |
47 | + | |
48 | +BuildRequires: autoconf | |
49 | +BuildRequires: automake | |
50 | +BuildRequires: rsvg-view | |
51 | +BuildRequires: gettext-tools | |
52 | +BuildRequires: glib2-devel | |
53 | + | |
54 | +#BuildRequires: gtk3-devel | |
55 | +BuildRequires: pkgconfig(gtk+-3.0) | |
56 | + | |
57 | +BuildRequires: desktop-file-utils | |
58 | +BuildRequires: optipng | |
59 | + | |
60 | +BuildRequires: mingw32-cross-binutils | |
61 | +BuildRequires: mingw32-cross-gcc | |
62 | +BuildRequires: mingw32-cross-gcc-c++ | |
63 | +BuildRequires: mingw32-cross-pkg-config | |
64 | +BuildRequires: mingw32-filesystem | |
65 | +BuildRequires: mingw32-libopenssl-devel | |
66 | +BuildRequires: mingw32-zlib-devel | |
67 | +#BuildRequires: mingw32-gtk3-devel | |
68 | + | |
69 | +BuildRequires: mingw32(pkg:gtk+-win32-3.0) | |
70 | + | |
71 | +Patch0: force_inet_ntop.patch | |
72 | + | |
73 | +#--------------------------------------------------------------------------------------------------------------------- | |
74 | + | |
75 | +%description | |
76 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
77 | +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | |
78 | + | |
79 | +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | |
80 | + | |
81 | +%package -n mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
82 | +Summary: 3270 Communication library for %{name} | |
83 | +Group: Development/Libraries/C and C++ | |
84 | + | |
85 | +Provides: mingw32-lib3270 = %{version} | |
86 | +Provides: mingw32(lib:3270) = %{version} | |
87 | + | |
88 | +%description -n mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
89 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
90 | + | |
91 | +This package contains the tn3270 protocol library for %{name} | |
92 | + | |
93 | +#--[ Devel ]---------------------------------------------------------------------------------------------------------- | |
94 | + | |
95 | +%package -n mingw32-lib3270-devel | |
96 | +Summary: Devel for 3270 Communication library for %{name} | |
97 | +Group: Development/Libraries/C and C++ | |
98 | + | |
99 | +Requires: mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | |
100 | +Provides: mingw32-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | |
101 | +Requires: mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | |
102 | + | |
103 | +%description -n mingw32-lib3270-devel | |
104 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
105 | +This package contains the development files for tn3270 protocol library for %{name} | |
106 | + | |
107 | +%package -n %{name}-devel | |
108 | +Summary: Files required for development of %{name} plugins | |
109 | +Group: Development/Libraries/C and C++ | |
110 | + | |
111 | +Requires: mingw32(lib:3270) = %{version} | |
112 | +Requires: mingw32(lib:pw3270) = %{version} | |
113 | + | |
114 | +%description -n %{name}-devel | |
115 | +Open-source GTK-based IBM 3270 terminal emulator with many advanced features. It can be used to communicate with any IBM host that supports 3270-style connections over TELNET. | |
116 | + | |
117 | +This package contains the development files for %{name} | |
118 | + | |
119 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
120 | + | |
121 | +%prep | |
122 | + | |
123 | +%setup -q -n pw3270-%{version} | |
124 | +%patch0 -p0 | |
125 | + | |
126 | +echo "m4_define([SVN_REVISION], %{release})" > revision.m4 | |
127 | +echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 | |
128 | +echo "m4_define([APP_LEVEL], 0)" >> revision.m4 | |
129 | + | |
130 | +find . -exec touch {} \; | |
131 | +aclocal | |
132 | +autoconf | |
133 | +%{_mingw32_configure} | |
134 | + | |
135 | +%build | |
136 | +make clean | |
137 | +make all | |
138 | + | |
139 | +%{_mingw32_strip} --strip-all .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
140 | +%{_mingw32_strip} --strip-all .bin/Release/*.exe | |
141 | +%{_mingw32_strip} --strip-all .bin/Release/plugins/*.dll | |
142 | + | |
143 | +%install | |
144 | +%{_mingw32_makeinstall} | |
145 | + | |
146 | +rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80javasamples.xml | |
147 | +rm -f %{buildroot}%{_mingw32_datadir}/pw3270/ui/80rexx.xml | |
148 | + | |
149 | + | |
150 | +%clean | |
151 | +rm -rf %{buildroot} | |
152 | + | |
153 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | |
154 | + | |
155 | +%files | |
156 | +%defattr(-,root,root) | |
157 | +%doc AUTHORS LICENSE | |
158 | +# %{_mingw32_mandir}/*/* | |
159 | + | |
160 | +# Main application | |
161 | +%dir %{_mingw32_datadir}/pw3270 | |
162 | +%dir %{_mingw32_datadir}/pw3270/ui | |
163 | +%{_mingw32_bindir}/pw3270.exe | |
164 | +%{_mingw32_libdir}/pw3270.dll | |
165 | +%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION} | |
166 | +%{_mingw32_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
167 | + | |
168 | +%{_mingw32_datadir}/pw3270/ui/00default.xml | |
169 | +%{_mingw32_datadir}/pw3270/ui/10functions.xml | |
170 | +%{_mingw32_datadir}/pw3270/ui/10keypad.xml | |
171 | +%{_mingw32_datadir}/pw3270/colors.conf | |
172 | +%{_mingw32_datadir}/pw3270/pw3270.png | |
173 | +%{_mingw32_datadir}/pw3270/pw3270-logo.png | |
174 | + | |
175 | +%dir %{_mingw32_datadir}/locale | |
176 | +%dir %{_mingw32_datadir}/locale/pt_BR | |
177 | +%dir %{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES | |
178 | +%{_mingw32_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo | |
179 | + | |
180 | +%dir %{_mingw32_libdir}/pw3270-plugins | |
181 | +%{_mingw32_libdir}/libhllapi.dll | |
182 | +%{_mingw32_libdir}/pw3270-plugins/hllapi.dll | |
183 | + | |
184 | +%files -n mingw32-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
185 | +%defattr(-,root,root) | |
186 | +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
187 | +%{_mingw32_libdir}/lib3270.dll.%{MAJOR_VERSION} | |
188 | +%{_mingw32_libdir}/lib3270.dll | |
189 | + | |
190 | +%files -n mingw32-lib3270-devel | |
191 | +%defattr(-,root,root) | |
192 | +%{_mingw32_includedir}/lib3270 | |
193 | +%{_mingw32_includedir}/lib3270.h | |
194 | +%{_mingw32_libdir}/pkgconfig/lib3270.pc | |
195 | + | |
196 | +%files -n %{name}-devel | |
197 | +%defattr(-,root,root) | |
198 | +%{_mingw32_includedir}/pw3270 | |
199 | +%{_mingw32_includedir}/pw3270.h | |
200 | +%{_mingw32_libdir}/pkgconfig/pw3270.pc | |
201 | +%{_mingw32_datadir}/pw3270/ui/98trace.xml | |
202 | +%{_mingw32_datadir}/pw3270/ui/99debug.xml | |
203 | + | |
204 | +%dir %{_mingw32_datadir}/pw3270/locale | |
205 | +%{_mingw32_datadir}/pw3270/locale/Makefile | |
206 | +%{_mingw32_datadir}/pw3270/locale/pt_BR.po | |
207 | +%{_mingw32_datadir}/pw3270/locale/pw3270.pot | |
208 | + | |
209 | +%{_mingw32_includedir}/pw3270cpp.h | |
210 | +%{_mingw32_libdir}/libpw3270cpp.a | |
211 | + | |
212 | +%changelog | |
213 | + | ... | ... |