Commit 15ced02e626a142faa21e9371eb0c223e833bc6f
1 parent
cb09a225
Exists in
master
and in
3 other branches
Updating rpm package.
Showing
1 changed file
with
19 additions
and
22 deletions
Show diff stats
rpm/lib3270.spec
| 1 | 1 | # |
| 2 | -# spec file for packages lib3270 | |
| 2 | +# spec file for package lib3270 | |
| 3 | 3 | # |
| 4 | 4 | # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. |
| 5 | 5 | # Copyright (C) <2008> <Banco do Brasil S.A.> |
| ... | ... | @@ -23,8 +23,6 @@ |
| 23 | 23 | |
| 24 | 24 | %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} |
| 25 | 25 | |
| 26 | -%define documentroot /srv/www/htdocs/mentor | |
| 27 | - | |
| 28 | 26 | #Compat macro for new _fillupdir macro introduced in Nov 2017 |
| 29 | 27 | %if ! %{defined _fillupdir} |
| 30 | 28 | %define _fillupdir /var/adm/fillup-templates |
| ... | ... | @@ -43,6 +41,7 @@ Name: lib3270-%{_libvrs} |
| 43 | 41 | Version: 5.2 |
| 44 | 42 | Release: 0 |
| 45 | 43 | License: LGPL-3.0 |
| 44 | + | |
| 46 | 45 | Source: lib3270-%{version}.tar.xz |
| 47 | 46 | |
| 48 | 47 | Url: https://github.com/PerryWerneck/lib3270.git |
| ... | ... | @@ -53,26 +52,26 @@ BuildRoot: /var/tmp/%{name}-%{version} |
| 53 | 52 | Provides: lib3270_%{_libvrs} |
| 54 | 53 | Conflicts: otherproviders(lib3270_%{_libvrs}) |
| 55 | 54 | |
| 56 | -BuildRequires: autoconf >= 2.61 | |
| 57 | -BuildRequires: automake | |
| 58 | -BuildRequires: binutils | |
| 59 | -BuildRequires: coreutils | |
| 60 | -BuildRequires: gcc-c++ | |
| 61 | -BuildRequires: gettext-devel | |
| 62 | -BuildRequires: m4 | |
| 63 | -BuildRequires: pkgconfig | |
| 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 | +BuildRequires: pkgconfig | |
| 63 | +BuildRequires: fdupes | |
| 64 | 64 | |
| 65 | -%if 0%{?fedora} || 0%{?suse_version} > 1200 | |
| 65 | +%if 0%{? | |
| 66 | +fedora} || 0%{?suse_version} > 1200 | |
| 66 | 67 | |
| 67 | -BuildRequires: pkgconfig(openssl) | |
| 68 | -BuildRequires: pkgconfig(dbus-1) | |
| 69 | -BuildRequires: pkgconfig(libssl) | |
| 70 | -BuildRequires: pkgconfig(libcrypto) | |
| 68 | +BuildRequires: pkgconfig(openssl) | |
| 69 | +BuildRequires: pkgconfig(libssl) | |
| 70 | +BuildRequires: pkgconfig(libcrypto) | |
| 71 | 71 | |
| 72 | 72 | %else |
| 73 | 73 | |
| 74 | -BuildRequires: openssl-devel | |
| 75 | -BuildRequires: dbus-1-devel | |
| 74 | +BuildRequires: openssl-devel | |
| 76 | 75 | BuildRequires: xz |
| 77 | 76 | |
| 78 | 77 | %endif |
| ... | ... | @@ -91,7 +90,6 @@ Summary: TN3270 Access library development files |
| 91 | 90 | Group: Development/Libraries/C and C++ |
| 92 | 91 | |
| 93 | 92 | Requires: %{name} = %{version} |
| 94 | -Requires: lib3270++%{_libvrs} = %{version} | |
| 95 | 93 | |
| 96 | 94 | %description -n lib3270-devel |
| 97 | 95 | |
| ... | ... | @@ -110,16 +108,16 @@ NOCONFIGURE=1 ./autogen.sh |
| 110 | 108 | |
| 111 | 109 | %configure \ |
| 112 | 110 | --with-sdk-version=%{version} \ |
| 113 | - --disable-static | |
| 111 | + --disable-static | |
| 114 | 112 | |
| 115 | 113 | %build |
| 116 | 114 | make clean |
| 117 | 115 | make all |
| 118 | 116 | |
| 119 | 117 | %install |
| 120 | -rm -rf $RPM_BUILD_ROOT | |
| 121 | 118 | |
| 122 | 119 | %makeinstall |
| 120 | +%fdupes %{buildroot} | |
| 123 | 121 | |
| 124 | 122 | %files |
| 125 | 123 | %defattr(-,root,root) |
| ... | ... | @@ -146,7 +144,6 @@ rm -rf $RPM_BUILD_ROOT |
| 146 | 144 | %{_includedir}/lib3270 |
| 147 | 145 | |
| 148 | 146 | %{_libdir}/pkgconfig/*.pc |
| 149 | -%{_libdir}/*.so | |
| 150 | 147 | |
| 151 | 148 | %dir %{_datadir}/pw3270/pot |
| 152 | 149 | %{_datadir}/pw3270/pot/*.pot | ... | ... |