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,6 +26,7 @@ | ||
26 | #---[ Selected modules ]---------------------------------------------------------------------------------------------- | 26 | #---[ Selected modules ]---------------------------------------------------------------------------------------------- |
27 | 27 | ||
28 | %define _dbus 1 | 28 | %define _dbus 1 |
29 | +%define _help2man 1 | ||
29 | 30 | ||
30 | #---[ Packaging ]----------------------------------------------------------------------------------------------------- | 31 | #---[ Packaging ]----------------------------------------------------------------------------------------------------- |
31 | 32 | ||
@@ -60,6 +61,7 @@ Provides: libpw3270-%{_libvrs} | @@ -60,6 +61,7 @@ Provides: libpw3270-%{_libvrs} | ||
60 | %if 0%{?rhel_version} | 61 | %if 0%{?rhel_version} |
61 | 62 | ||
62 | %define _distro rhel%{rhel_version} | 63 | %define _distro rhel%{rhel_version} |
64 | +%define _help2man 0 | ||
63 | 65 | ||
64 | BuildRequires: dbus-devel | 66 | BuildRequires: dbus-devel |
65 | BuildRequires: dbus-glib-devel | 67 | BuildRequires: dbus-glib-devel |
@@ -74,11 +76,12 @@ BuildRequires: librsvg2-tools | @@ -74,11 +76,12 @@ BuildRequires: librsvg2-tools | ||
74 | %if 0%{?centos_version} | 76 | %if 0%{?centos_version} |
75 | 77 | ||
76 | %define _distro centos%{centos_version} | 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 | BuildRequires: librsvg2-tools | 85 | BuildRequires: librsvg2-tools |
83 | 86 | ||
84 | %endif | 87 | %endif |
@@ -131,7 +134,9 @@ BuildRequires: pkgconfig | @@ -131,7 +134,9 @@ BuildRequires: pkgconfig | ||
131 | BuildRequires: sed | 134 | BuildRequires: sed |
132 | BuildRequires: optipng | 135 | BuildRequires: optipng |
133 | BuildRequires: fdupes | 136 | BuildRequires: fdupes |
137 | +%if 0%{?_help2man} | ||
134 | BuildRequires: help2man | 138 | BuildRequires: help2man |
139 | +%endif | ||
135 | 140 | ||
136 | %description | 141 | %description |
137 | 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. | 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,7 +251,9 @@ rm -rf %{buildroot} | ||
246 | %files -f langfiles | 251 | %files -f langfiles |
247 | %defattr(-,root,root) | 252 | %defattr(-,root,root) |
248 | %doc AUTHORS LICENSE README.md | 253 | %doc AUTHORS LICENSE README.md |
254 | +%if 0%{?_help2man} | ||
249 | %{_mandir}/*/* | 255 | %{_mandir}/*/* |
256 | +%endif | ||
250 | 257 | ||
251 | # Main application | 258 | # Main application |
252 | %dir %{_datadir}/pw3270 | 259 | %dir %{_datadir}/pw3270 |