Commit 2766d0c1be9fd987337495b5de1d09468d933333
1 parent
7c45a266
Exists in
master
and in
1 other branch
Fixing package builds.
Showing
4 changed files
with
188 additions
and
2 deletions
Show diff stats
rpm/_service
@@ -4,9 +4,9 @@ | @@ -4,9 +4,9 @@ | ||
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="changesauthor">perry.werneck@gmail.com</param> | 6 | <param name="changesauthor">perry.werneck@gmail.com</param> |
7 | - <param name="sslverify">disable</param> | 7 | + <!-- param name="sslverify">disable</param --> |
8 | <param name="versionformat">@PARENT_TAG@</param> | 8 | <param name="versionformat">@PARENT_TAG@</param> |
9 | - <param name="url">https://softwarepublico.gov.br/gitlab/pw3270/pw3270-plugin-ipc.git</param> | 9 | + <param name="url">https://github.com/PerryWerneck/pw3270-plugin-ipc.git</param> |
10 | <param name="scm">git</param> | 10 | <param name="scm">git</param> |
11 | </service> | 11 | </service> |
12 | 12 |
rpm/pw3270-plugin-ipc.spec
@@ -100,6 +100,7 @@ Designed as a support tool for language bindings. | @@ -100,6 +100,7 @@ Designed as a support tool for language bindings. | ||
100 | %package -n libipc3270-devel | 100 | %package -n libipc3270-devel |
101 | Summary: Development files for ipc3270 | 101 | Summary: Development files for ipc3270 |
102 | Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | 102 | Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} |
103 | +Requires: pkgconfig(lib3270) | ||
103 | 104 | ||
104 | %description -n libipc3270-devel | 105 | %description -n libipc3270-devel |
105 | 106 | ||
@@ -149,6 +150,7 @@ rm -rf $RPM_BUILD_ROOT | @@ -149,6 +150,7 @@ rm -rf $RPM_BUILD_ROOT | ||
149 | %defattr(-,root,root) | 150 | %defattr(-,root,root) |
150 | %{_includedir}/lib3270/ipc.h | 151 | %{_includedir}/lib3270/ipc.h |
151 | %{_libdir}/libipc3270.so | 152 | %{_libdir}/libipc3270.so |
153 | +%{_libdir}/pkgconfig/ipc3270.pc | ||
152 | 154 | ||
153 | %pre -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | 155 | %pre -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} |
154 | /sbin/ldconfig | 156 | /sbin/ldconfig |
@@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
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="changesauthor">perry.werneck@gmail.com</param> | ||
7 | + <!-- param name="sslverify">disable</param --> | ||
8 | + <param name="versionformat">@PARENT_TAG@</param> | ||
9 | + <param name="url">https://github.com/PerryWerneck/pw3270-plugin-ipc.git</param> | ||
10 | + <param name="scm">git</param> | ||
11 | + </service> | ||
12 | + | ||
13 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | ||
14 | + <!-- service name="extract_file"> | ||
15 | + <param name="archive">*.tar</param> | ||
16 | + <param name="files">*/rpm/*.spec</param> | ||
17 | + </service --> | ||
18 | + | ||
19 | + <service name="recompress"> | ||
20 | + <param name="file">*.tar</param> | ||
21 | + <param name="compression">xz</param> | ||
22 | + </service> | ||
23 | + | ||
24 | + <service name="set_version" /> | ||
25 | + | ||
26 | +</services> |
@@ -0,0 +1,158 @@ | @@ -0,0 +1,158 @@ | ||
1 | +# | ||
2 | +# spec file for packages mingw32-pw3270-plugin-ipc | ||
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 | +#---[ Versions ]------------------------------------------------------------------------------------------------------ | ||
20 | + | ||
21 | +%define MAJOR_VERSION 5 | ||
22 | +%define MINOR_VERSION 2 | ||
23 | + | ||
24 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
25 | + | ||
26 | +%define __strip %{_mingw32_strip} | ||
27 | +%define __objdump %{_mingw32_objdump} | ||
28 | +%define _use_internal_dependency_generator 0 | ||
29 | +%define __find_requires %{_mingw32_findrequires} | ||
30 | +%define __find_provides %{_mingw32_findprovides} | ||
31 | +%define __os_install_post %{_mingw32_debug_install_post} \ | ||
32 | + %{_mingw32_install_post} | ||
33 | + | ||
34 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | ||
35 | + | ||
36 | +Summary: D-Bus based IPC plugin for pw3270 | ||
37 | +Name: mingw32-pw3270-plugin-ipc | ||
38 | +Version: 5.2 | ||
39 | +Release: 0 | ||
40 | +License: LGPL-3.0 | ||
41 | +Source: pw3270-plugin-ipc-%{version}.tar.xz | ||
42 | + | ||
43 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
44 | + | ||
45 | +Group: System/X11/Terminals | ||
46 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
47 | + | ||
48 | +Provides: pw3270-plugin-dbus | ||
49 | +Conflicts: otherproviders(pw3270-plugin-dbus) | ||
50 | + | ||
51 | +Provides: mingw32-lib3270-ipc-service | ||
52 | + | ||
53 | +BuildRequires: mingw32-lib3270-devel >= 5.2 | ||
54 | +BuildRequires: mingw32-libv3270-devel >= 5.2 | ||
55 | +BuildRequires: autoconf >= 2.61 | ||
56 | +BuildRequires: automake | ||
57 | +BuildRequires: binutils | ||
58 | +BuildRequires: coreutils | ||
59 | +BuildRequires: gcc-c++ | ||
60 | +BuildRequires: gettext-devel | ||
61 | +BuildRequires: m4 | ||
62 | + | ||
63 | +BuildRequires: mingw32-cross-binutils | ||
64 | +BuildRequires: mingw32-cross-gcc | ||
65 | +BuildRequires: mingw32-cross-gcc-c++ | ||
66 | +BuildRequires: mingw32-cross-pkg-config | ||
67 | +BuildRequires: mingw32-filesystem | ||
68 | +BuildRequires: mingw32-zlib-devel | ||
69 | +BuildRequires: mingw32(lib:iconv) | ||
70 | +BuildRequires: mingw32(lib:intl) | ||
71 | + | ||
72 | +BuildRequires: mingw32(pkg:gtk+-win32-3.0) | ||
73 | +BuildRequires: mingw32(pkg:lib3270) | ||
74 | +BuildRequires: mingw32(pkg:lib3270-static) | ||
75 | +BuildRequires: mingw32(pkg:libv3270) | ||
76 | + | ||
77 | +%description | ||
78 | + | ||
79 | +PW3270 plugin exporting D-Bus objects for every tn3270 session. | ||
80 | + | ||
81 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
82 | + | ||
83 | +#---[ IPC Library Package ]------------------------------------------------------------------------------------------- | ||
84 | + | ||
85 | +%package -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
86 | +Summary: IPC Library for pw3270 | ||
87 | +Recommends: mingw32-lib3270-ipc-service | ||
88 | + | ||
89 | +%description -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
90 | + | ||
91 | +IPC client library for lib3270/pw3270. | ||
92 | + | ||
93 | +Designed as a support tool for language bindings. | ||
94 | + | ||
95 | +%package -n mingw32-libipc3270-devel | ||
96 | +Summary: Development files for ipc3270 | ||
97 | +Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
98 | +Requires: pkgconfig(lib3270) | ||
99 | + | ||
100 | +%description -n mingw32-libipc3270-devel | ||
101 | + | ||
102 | +Development files for lib3270/pw3270 IPC client library. | ||
103 | + | ||
104 | +Designed as a support tool for language bindings. | ||
105 | + | ||
106 | + | ||
107 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
108 | + | ||
109 | +%prep | ||
110 | +%setup -n pw3270-plugin-ipc-%{version} | ||
111 | + | ||
112 | +NOCONFIGURE=1 ./autogen.sh | ||
113 | + | ||
114 | +%{_mingw32_configure} \ | ||
115 | + --without-static-lib3270 | ||
116 | + | ||
117 | +%build | ||
118 | +make clean | ||
119 | +make all | ||
120 | + | ||
121 | +%{_mingw32_strip} \ | ||
122 | + --strip-all \ | ||
123 | + .bin/Release/*.dll | ||
124 | + | ||
125 | +%install | ||
126 | +rm -rf $RPM_BUILD_ROOT | ||
127 | + | ||
128 | +%makeinstall | ||
129 | + | ||
130 | +%files | ||
131 | +%defattr(-,root,root) | ||
132 | + | ||
133 | +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | ||
134 | +%if 0%{?sle_version} > 120200 | ||
135 | +%doc AUTHORS README.md | ||
136 | +%license LICENSE | ||
137 | +%else | ||
138 | +%doc AUTHORS README.md LICENSE | ||
139 | +%endif | ||
140 | + | ||
141 | +%dir %{_mingw32_libdir}/pw3270-plugins | ||
142 | +%{_mingw32_libdir}/pw3270-plugins/ipcserver.dll | ||
143 | + | ||
144 | +%files -n mingw32-libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | ||
145 | +%defattr(-,root,root) | ||
146 | +%{_mingw32_libdir}/libipc3270.dll | ||
147 | +%{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION} | ||
148 | +%{_mingw32_libdir}/libipc3270.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} | ||
149 | + | ||
150 | +%files -n mingw32-libipc3270-devel | ||
151 | +%defattr(-,root,root) | ||
152 | +%{_mingw32_includedir}/lib3270/ipc.h | ||
153 | +%{_mingw32_libdir}/libipc3270.a | ||
154 | +%{_mingw32_libdir}/pkgconfig/ipc3270-static.pc | ||
155 | +%{_mingw32_libdir}/pkgconfig/ipc3270.pc | ||
156 | + | ||
157 | +%changelog | ||
158 | + |