Commit 318a5a86e93083c211fe5eeaacbc72e7c88e92a5
1 parent
3d059bf8
Exists in
master
and in
5 other branches
Incluindo spec para geração do pacote windows via OBS.
Showing
1 changed file
with
208 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,208 @@ | @@ -0,0 +1,208 @@ | ||
1 | +# | ||
2 | +# spec file for package mingw64-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 %{_mingw64_strip} | ||
23 | +%define __objdump %{_mingw64_objdump} | ||
24 | +%define _use_internal_dependency_generator 0 | ||
25 | +%define __find_requires %{_mingw64_findrequires} | ||
26 | +%define __find_provides %{_mingw64_findprovides} | ||
27 | +%define __os_install_post %{_mingw64_debug_install_post} \ | ||
28 | + %{_mingw64_install_post} | ||
29 | + | ||
30 | +#---[ Packaging ]----------------------------------------------------------------------------------------------------- | ||
31 | + | ||
32 | +Name: mingw64-pw3270 | ||
33 | +Version: %{MAJOR_VERSION}.%{MINOR_VERSION} | ||
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 | +BuildArch: noarch | ||
43 | + | ||
44 | +Requires: mingw64-gtk3 | ||
45 | +Requires: mingw64-lib3270 = %{version} | ||
46 | + | ||
47 | +Provides: mingw64(lib:pw3270) = %{version} | ||
48 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
49 | + | ||
50 | +BuildRequires: autoconf | ||
51 | +BuildRequires: automake | ||
52 | +BuildRequires: rsvg-view | ||
53 | +BuildRequires: gettext-tools | ||
54 | +BuildRequires: glib2-devel | ||
55 | +BuildRequires: gtk3-devel | ||
56 | +BuildRequires: desktop-file-utils | ||
57 | +BuildRequires: optipng | ||
58 | + | ||
59 | +BuildRequires: mingw64-cross-binutils | ||
60 | +BuildRequires: mingw64-cross-gcc | ||
61 | +BuildRequires: mingw64-cross-gcc-c++ | ||
62 | +BuildRequires: mingw64-cross-pkg-config | ||
63 | +BuildRequires: mingw64-filesystem | ||
64 | +BuildRequires: mingw64-libopenssl-devel | ||
65 | +BuildRequires: mingw64-zlib-devel | ||
66 | +BuildRequires: mingw64-gtk3-devel | ||
67 | + | ||
68 | +#--------------------------------------------------------------------------------------------------------------------- | ||
69 | + | ||
70 | +%description | ||
71 | +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. | ||
72 | +Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. | ||
73 | + | ||
74 | +#--[ lib3270 ]-------------------------------------------------------------------------------------------------------- | ||
75 | + | ||
76 | +%package -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
77 | +Summary: 3270 Communication library for %{name} | ||
78 | +Group: Development/Libraries/C and C++ | ||
79 | +Requires: openssl | ||
80 | + | ||
81 | +Provides: mingw64-lib3270 = %{version} | ||
82 | +Provides: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
83 | +Provides: mingw64(lib:3270) = %{version} | ||
84 | + | ||
85 | +%description -n mingw64-lib3270-unstable-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
86 | +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. | ||
87 | + | ||
88 | +This package contains the tn3270 protocol library for %{name} | ||
89 | + | ||
90 | +#--[ Devel ]---------------------------------------------------------------------------------------------------------- | ||
91 | + | ||
92 | +%package -n mingw64-lib3270-devel | ||
93 | +Summary: Devel for 3270 Communication library for %{name} | ||
94 | +Group: Development/Libraries/C and C++ | ||
95 | + | ||
96 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
97 | +Provides: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
98 | +Requires: mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
99 | + | ||
100 | +%description -n mingw64-lib3270-unstable-devel | ||
101 | +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. | ||
102 | +This package contains the development files for tn3270 protocol library for %{name} | ||
103 | + | ||
104 | +%package -n %{name}-devel | ||
105 | +Summary: Files required for development of %{name} plugins | ||
106 | +Group: Development/Libraries/C and C++ | ||
107 | + | ||
108 | +Requires: mingw64-lib3270-devel-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
109 | +Requires: mingw64-libpw3270-%{MAJOR_VERSION}_%{MINOR_VERSION} = %{version} | ||
110 | + | ||
111 | +%description -n %{name}-devel | ||
112 | +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. | ||
113 | + | ||
114 | +This package contains the development files for %{name} | ||
115 | + | ||
116 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
117 | + | ||
118 | +%prep | ||
119 | + | ||
120 | +%setup -q -n pw3270-%{version} | ||
121 | + | ||
122 | +echo "m4_define([SVN_REVISION], %{release})" > revision.m4 | ||
123 | +echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 | ||
124 | +echo "m4_define([APP_LEVEL], 0)" >> revision.m4 | ||
125 | + | ||
126 | +find . -exec touch {} \; | ||
127 | +aclocal | ||
128 | +autoconf | ||
129 | +%{_mingw64_configure} | ||
130 | + | ||
131 | +%build | ||
132 | +make clean | ||
133 | +make all | ||
134 | + | ||
135 | +%install | ||
136 | +%{_mingw64_makeinstall} | ||
137 | + | ||
138 | +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80javasamples.xml | ||
139 | +rm -f %{buildroot}%{_mingw64_datadir}/pw3270/ui/80rexx.xml | ||
140 | + | ||
141 | +#install --mode=755 .bin/Release/hllapi.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} %{buildroot}%{_mingw64_libdir}/libhllapi.dll | ||
142 | +#install --mode=755 .bin/Release/plugins/hllapi.dll %{buildroot}%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
143 | + | ||
144 | +%clean | ||
145 | +rm -rf %{buildroot} | ||
146 | + | ||
147 | +#---[ Files ]--------------------------------------------------------------------------------------------------------- | ||
148 | + | ||
149 | +%files | ||
150 | +%defattr(-,root,root) | ||
151 | +%doc AUTHORS LICENSE | ||
152 | +%{_mingw64_mandir}/*/* | ||
153 | + | ||
154 | +# Main application | ||
155 | +%dir %{_mingw64_datadir}/pw3270 | ||
156 | +%dir %{_mingw64_datadir}/pw3270/ui | ||
157 | +%{_mingw64_bindir}/pw3270.exe | ||
158 | +%{_mingw64_libdir}/pw3270.dll | ||
159 | +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION} | ||
160 | +%{_mingw64_libdir}/pw3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
161 | + | ||
162 | +%dir %{_mingw64_datadir}/applications | ||
163 | +%{_mingw64_datadir}/applications/pw3270.desktop | ||
164 | + | ||
165 | +%{_mingw64_datadir}/pw3270/ui/00default.xml | ||
166 | +%{_mingw64_datadir}/pw3270/ui/10functions.xml | ||
167 | +%{_mingw64_datadir}/pw3270/ui/10keypad.xml | ||
168 | +%{_mingw64_datadir}/pw3270/colors.conf | ||
169 | +%{_mingw64_datadir}/pw3270/pw3270.png | ||
170 | +%{_mingw64_datadir}/pw3270/pw3270-logo.png | ||
171 | + | ||
172 | +%dir %{_mingw64_datadir}/locale | ||
173 | +%dir %{_mingw64_datadir}/locale/pt_BR | ||
174 | +%dir %{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES | ||
175 | +%{_mingw64_datadir}/locale/pt_BR/LC_MESSAGES/pw3270.mo | ||
176 | + | ||
177 | +%dir %{_mingw64_libdir}/pw3270-plugins | ||
178 | +%{_mingw64_libdir}/libhllapi.dll | ||
179 | +%{_mingw64_libdir}/pw3270-plugins/hllapi.dll | ||
180 | + | ||
181 | +%files -n mingw64-lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
182 | +%defattr(-,root,root) | ||
183 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
184 | +%{_mingw64_libdir}/lib3270.dll.%{MAJOR_VERSION} | ||
185 | +%{_mingw64_libdir}/lib3270.dll | ||
186 | + | ||
187 | +%files -n mingw64-lib3270-devel | ||
188 | +%defattr(-,root,root) | ||
189 | +%{_mingw64_includedir}/lib3270 | ||
190 | +%{_mingw64_includedir}/lib3270.h | ||
191 | +%{_mingw64_libdir}/pkgconfig/lib3270.pc | ||
192 | + | ||
193 | +%files -n %{name}-devel | ||
194 | +%defattr(-,root,root) | ||
195 | +%{_mingw64_includedir}/pw3270 | ||
196 | +%{_mingw64_includedir}/pw3270.h | ||
197 | +%{_mingw64_libdir}/pkgconfig/pw3270.pc | ||
198 | +%{_mingw64_datadir}/pw3270/ui/98trace.xml | ||
199 | +%{_mingw64_datadir}/pw3270/ui/99debug.xml | ||
200 | + | ||
201 | +%{_mingw64_includedir}/pw3270cpp.h | ||
202 | +%{_mingw64_libdir}/libpw3270cpp.a | ||
203 | + | ||
204 | +%dir %{_mingw64_datadir}/pw3270/sample | ||
205 | +%{_mingw64_datadir}/pw3270/sample/* | ||
206 | + | ||
207 | +%changelog | ||
208 | + |