Commit b36058ee0843bd7a55f264ed83e97a739e47ea19
1 parent
feed8dc4
Exists in
master
and in
5 other branches
Updating package to follow naming guidelines.
Showing
1 changed file
with
23 additions
and
20 deletions
Show diff stats
rpm/pw3270.spec
... | ... | @@ -52,14 +52,10 @@ Requires: %{name}-branding >= 5.2 |
52 | 52 | # https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto#Detect_a_distribution_flavor_for_special_code |
53 | 53 | # |
54 | 54 | |
55 | -%define _distro linux | |
56 | - | |
57 | - | |
58 | 55 | #--[ Red HAT ]-------------------------------------------------------------------------------------------------------- |
59 | 56 | |
60 | 57 | %if 0%{?rhel_version} |
61 | 58 | |
62 | -%define _distro rhel%{rhel_version} | |
63 | 59 | %define _help2man 0 |
64 | 60 | |
65 | 61 | BuildRequires: dbus-devel |
... | ... | @@ -67,8 +63,8 @@ BuildRequires: dbus-glib-devel |
67 | 63 | BuildRequires: openssl-devel |
68 | 64 | BuildRequires: gtk3-devel |
69 | 65 | BuildRequires: librsvg2-tools |
70 | -BuildRequires: lib3270-5_2-devel | |
71 | -BuildRequires: libv3270-5_2-devel | |
66 | +BuildRequires: lib3270-devel | |
67 | +BuildRequires: libv3270-devel | |
72 | 68 | |
73 | 69 | %endif |
74 | 70 | |
... | ... | @@ -76,7 +72,6 @@ BuildRequires: libv3270-5_2-devel |
76 | 72 | |
77 | 73 | %if 0%{?centos_version} |
78 | 74 | |
79 | -%define _distro centos%{centos_version} | |
80 | 75 | %define _help2man 0 |
81 | 76 | |
82 | 77 | BuildRequires: dbus-devel |
... | ... | @@ -84,10 +79,10 @@ BuildRequires: dbus-glib-devel |
84 | 79 | BuildRequires: openssl-devel |
85 | 80 | BuildRequires: gtk3-devel |
86 | 81 | BuildRequires: librsvg2-tools |
87 | -BuildRequires: lib3270-5_2-devel | |
88 | -BuildRequires: libv3270-5_2-devel | |
82 | +BuildRequires: lib3270-devel | |
83 | +BuildRequires: libv3270-devel | |
89 | 84 | |
90 | -# Genmarshal do CENTOS não tem dependência do python! | |
85 | +# CENTOS Genmarshal doesn't depends on python! | |
91 | 86 | BuildRequires: python |
92 | 87 | |
93 | 88 | %endif |
... | ... | @@ -96,8 +91,6 @@ BuildRequires: python |
96 | 91 | |
97 | 92 | %if 0%{?fedora} |
98 | 93 | |
99 | -%define _distro fedora%{fedora} | |
100 | - | |
101 | 94 | BuildRequires: pkgconfig(dbus-1) |
102 | 95 | BuildRequires: pkgconfig(dbus-glib-1) |
103 | 96 | BuildRequires: pkgconfig(openssl) |
... | ... | @@ -113,13 +106,6 @@ BuildRequires: autoconf-archive |
113 | 106 | |
114 | 107 | %if 0%{?suse_version} |
115 | 108 | |
116 | -# https://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25sles_version | |
117 | -%if 0%{?is_opensuse} | |
118 | - %define _distro opensuse%{suse_version} | |
119 | -%else | |
120 | - %define _distro suse%{suse_version} | |
121 | -%endif | |
122 | - | |
123 | 109 | BuildRequires: pkgconfig(openssl) |
124 | 110 | BuildRequires: pkgconfig(dbus-1) |
125 | 111 | BuildRequires: pkgconfig(dbus-glib-1) |
... | ... | @@ -162,6 +148,17 @@ GTK-based IBM 3270 terminal emulator with many advanced features. It can be used |
162 | 148 | |
163 | 149 | Based on the original x3270 code, pw3270 was originally created for Banco do Brasil, and is now used worldwide. |
164 | 150 | |
151 | +#--[ Application library ]-------------------------------------------------------------------------------------------- | |
152 | + | |
153 | +%package -n libpw3270-%{_libvrs} | |
154 | +Summary: 3270 terminal emulation library | |
155 | +Group: System/Libraries | |
156 | + | |
157 | +%description -n libpw3270-%{_libvrs} | |
158 | +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. | |
159 | + | |
160 | +This package contains the plugin support library. | |
161 | + | |
165 | 162 | #--[ Configuration & Branding ]--------------------------------------------------------------------------------------- |
166 | 163 | |
167 | 164 | %package branding |
... | ... | @@ -188,6 +185,7 @@ Requires: pkgconfig(lib3270) |
188 | 185 | Requires: pkgconfig(libv3270) |
189 | 186 | Requires: pkgconfig(gtk+-3.0) |
190 | 187 | Requires: %{name} = %{version} |
188 | +Requires: libpw3270-%{_libvrs} | |
191 | 189 | |
192 | 190 | %description -n %{name}-devel |
193 | 191 | 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. |
... | ... | @@ -236,7 +234,10 @@ make all -j1 |
236 | 234 | %{_bindir}/pw3270 |
237 | 235 | %{_datadir}/pw3270/charsets/bracket.xml |
238 | 236 | |
237 | +%files -n libpw3270-%{_libvrs} | |
238 | +%defattr(-,root,root) | |
239 | 239 | %{_libdir}/libpw3270.so.%{MAJOR_VERSION}.%{MINOR_VERSION} |
240 | +%{_libdir}/libpw3270.so.%{MAJOR_VERSION} | |
240 | 241 | |
241 | 242 | %files branding |
242 | 243 | %defattr(-,root,root) |
... | ... | @@ -257,7 +258,6 @@ make all -j1 |
257 | 258 | %{_includedir}/pw3270 |
258 | 259 | |
259 | 260 | %{_libdir}/libpw3270.so |
260 | -%{_libdir}/libpw3270.so.%{MAJOR_VERSION} | |
261 | 261 | |
262 | 262 | %{_libdir}/libpw3270cpp.a |
263 | 263 | %{_libdir}/pkgconfig/pw3270.pc |
... | ... | @@ -268,5 +268,8 @@ make all -j1 |
268 | 268 | |
269 | 269 | #---[ Scripts ]------------------------------------------------------------------------------------------------------- |
270 | 270 | |
271 | +%post -n libpw3270-%{_libvrs} -p /sbin/ldconfig | |
272 | +%postun -n libpw3270-%{_libvrs} -p /sbin/ldconfig | |
273 | + | |
271 | 274 | %changelog |
272 | 275 | ... | ... |