Commit 39b877a0b4741c5daaf6446263ce9f54a052dbf9
1 parent
f80c43d4
Exists in
master
and in
5 other branches
Ajustes para empacotamento centos
Showing
1 changed file
with
11 additions
and
4 deletions
Show diff stats
rpm/pw3270.spec
... | ... | @@ -26,6 +26,7 @@ |
26 | 26 | #---[ Selected modules ]---------------------------------------------------------------------------------------------- |
27 | 27 | |
28 | 28 | %define _dbus 1 |
29 | +%define _help2man 1 | |
29 | 30 | |
30 | 31 | #---[ Packaging ]----------------------------------------------------------------------------------------------------- |
31 | 32 | |
... | ... | @@ -60,6 +61,7 @@ Provides: libpw3270-%{_libvrs} |
60 | 61 | %if 0%{?rhel_version} |
61 | 62 | |
62 | 63 | %define _distro rhel%{rhel_version} |
64 | +%define _help2man 0 | |
63 | 65 | |
64 | 66 | BuildRequires: dbus-devel |
65 | 67 | BuildRequires: dbus-glib-devel |
... | ... | @@ -74,11 +76,12 @@ BuildRequires: librsvg2-tools |
74 | 76 | %if 0%{?centos_version} |
75 | 77 | |
76 | 78 | %define _distro centos%{centos_version} |
79 | +%define _help2man 0 | |
77 | 80 | |
78 | -BuildRequires: pkgconfig(dbus-1) | |
79 | -BuildRequires: pkgconfig(dbus-glib-1) | |
80 | -BuildRequires: pkgconfig(openssl) | |
81 | -BuildRequires: pkgconfig(gtk+-3.0) | |
81 | +BuildRequires: dbus-devel | |
82 | +BuildRequires: dbus-glib-devel | |
83 | +BuildRequires: openssl-devel | |
84 | +BuildRequires: gtk3-devel | |
82 | 85 | BuildRequires: librsvg2-tools |
83 | 86 | |
84 | 87 | %endif |
... | ... | @@ -131,7 +134,9 @@ BuildRequires: pkgconfig |
131 | 134 | BuildRequires: sed |
132 | 135 | BuildRequires: optipng |
133 | 136 | BuildRequires: fdupes |
137 | +%if 0%{?_help2man} | |
134 | 138 | BuildRequires: help2man |
139 | +%endif | |
135 | 140 | |
136 | 141 | %description |
137 | 142 | 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. |
... | ... | @@ -246,7 +251,9 @@ rm -rf %{buildroot} |
246 | 251 | %files -f langfiles |
247 | 252 | %defattr(-,root,root) |
248 | 253 | %doc AUTHORS LICENSE README.md |
254 | +%if 0%{?_help2man} | |
249 | 255 | %{_mandir}/*/* |
256 | +%endif | |
250 | 257 | |
251 | 258 | # Main application |
252 | 259 | %dir %{_datadir}/pw3270 | ... | ... |