Commit ea4bb50334cae7bfc0f4c97ab224a653f3e2d9a5
1 parent
739172bb
Exists in
master
and in
1 other branch
Packaging IPC client library for use in language binding modules.
Showing
1 changed file
with
64 additions
and
11 deletions
Show diff stats
rpm/pw3270-plugin-ipc.spec
... | ... | @@ -44,12 +44,10 @@ BuildRoot: /var/tmp/%{name}-%{version} |
44 | 44 | Provides: pw3270-plugin-dbus |
45 | 45 | Conflicts: otherproviders(pw3270-plugin-dbus) |
46 | 46 | |
47 | -BuildRequires: pkgconfig(openssl) | |
48 | -BuildRequires: pkgconfig(dbus-1) | |
49 | -BuildRequires: pkgconfig(dbus-glib-1) | |
50 | -BuildRequires: libv3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel | |
51 | -BuildRequires: lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel | |
52 | -BuildRequires: pkgconfig(gtk+-3.0) | |
47 | +Requires: pw3270 >= 5.2 | |
48 | + | |
49 | +BuildRequires: lib3270-devel >= 5.2 | |
50 | +BuildRequires: libv3270-devel >= 5.2 | |
53 | 51 | BuildRequires: autoconf >= 2.61 |
54 | 52 | BuildRequires: automake |
55 | 53 | BuildRequires: binutils |
... | ... | @@ -58,12 +56,57 @@ BuildRequires: gcc-c++ |
58 | 56 | BuildRequires: gettext-devel |
59 | 57 | BuildRequires: m4 |
60 | 58 | |
59 | +%if 0%{?fedora} || 0%{?suse_version} > 1200 | |
60 | + | |
61 | +BuildRequires: pkgconfig(openssl) | |
62 | +BuildRequires: pkgconfig(dbus-1) | |
63 | +BuildRequires: pkgconfig(dbus-glib-1) | |
64 | +BuildRequires: pkgconfig(gtk+-3.0) | |
65 | + | |
66 | +%else | |
67 | + | |
68 | +BuildRequires: openssl-devel | |
69 | +BuildRequires: dbus-1-devel | |
70 | +BuildRequires: dbus-glib-devel | |
71 | +BuildRequires: gtk3-devel | |
72 | + | |
73 | +%endif | |
74 | + | |
75 | +%if 0%{?centos_version} | |
76 | +# centos requires python for genmarshal | |
77 | +BuildRequires: python | |
78 | +%endif | |
79 | + | |
61 | 80 | %description |
62 | 81 | |
63 | 82 | PW3270 plugin exporting D-Bus objects for every tn3270 session. |
64 | 83 | |
65 | 84 | See more details at https://softwarepublico.gov.br/social/pw3270/ |
66 | 85 | |
86 | +#---[ IPC Library Package ]------------------------------------------------------------------------------------------- | |
87 | + | |
88 | +%package -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
89 | +Summary: IPC Library for pw3270 | |
90 | +Recommends: %{name} | |
91 | + | |
92 | +%description -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
93 | + | |
94 | +IPC client library for lib3270/pw3270. | |
95 | + | |
96 | +Designed as a support tool for language bindings. | |
97 | + | |
98 | +%package -n libipc3270-devel | |
99 | +Summary: Development files for ipc3270 | |
100 | +Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
101 | +BuildRequires: lib3270-devel >= 5.2 | |
102 | + | |
103 | +%description -n libipc3270-devel | |
104 | + | |
105 | +Development files for lib3270/pw3270 IPC client library. | |
106 | + | |
107 | +Designed as a support tool for language bindings. | |
108 | + | |
109 | + | |
67 | 110 | #---[ Build & Install ]----------------------------------------------------------------------------------------------- |
68 | 111 | |
69 | 112 | %prep |
... | ... | @@ -71,8 +114,7 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ |
71 | 114 | |
72 | 115 | NOCONFIGURE=1 ./autogen.sh |
73 | 116 | |
74 | -%configure \ | |
75 | - --with-sdk-version=%{version} | |
117 | +%configure | |
76 | 118 | |
77 | 119 | %build |
78 | 120 | make clean |
... | ... | @@ -97,15 +139,26 @@ rm -rf $RPM_BUILD_ROOT |
97 | 139 | %dir %{_libdir}/pw3270-plugins |
98 | 140 | %{_libdir}/pw3270-plugins/ipcserver.so |
99 | 141 | |
100 | -%pre | |
142 | +%files -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
143 | +%defattr(-,root,root) | |
144 | +%{_libdir}/libipc3270.so.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
145 | +%{_libdir}/libipc3270.so.%{MAJOR_VERSION} | |
146 | + | |
147 | +%files -n libipc3270-devel | |
148 | +%defattr(-,root,root) | |
149 | +%{_includedir}/lib3270/ipc.h | |
150 | +%{_libdir}/libipc3270.a | |
151 | +%{_libdir}/libipc3270.so | |
152 | + | |
153 | +%pre -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
101 | 154 | /sbin/ldconfig |
102 | 155 | exit 0 |
103 | 156 | |
104 | -%post | |
157 | +%post -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
105 | 158 | /sbin/ldconfig |
106 | 159 | exit 0 |
107 | 160 | |
108 | -%postun | |
161 | +%postun -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION} | |
109 | 162 | /sbin/ldconfig |
110 | 163 | exit 0 |
111 | 164 | ... | ... |