Commit fa6da72b40d56cf388763ed3d499d5293b0ac2f3
1 parent
11869908
Exists in
master
and in
3 other branches
Updating rpm control file.
Showing
1 changed file
with
14 additions
and
40 deletions
Show diff stats
rpm/lib3270.spec
| 1 | 1 | # |
| 2 | 2 | # spec file for package lib3270 |
| 3 | 3 | # |
| 4 | -# Copyright (c) 2019 SUSE LLC | |
| 4 | +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. | |
| 5 | 5 | # Copyright (c) <2008> <Banco do Brasil S.A.> |
| 6 | 6 | # |
| 7 | 7 | # All modifications and additions to the file contributed by third parties |
| ... | ... | @@ -22,7 +22,6 @@ Version: 5.3 |
| 22 | 22 | Release: 0 |
| 23 | 23 | Summary: TN3270 Access library |
| 24 | 24 | License: LGPL-3.0-only |
| 25 | -Group: System/Libraries | |
| 26 | 25 | URL: https://github.com/PerryWerneck/lib3270 |
| 27 | 26 | Source: %{name}-%{version}.tar.xz |
| 28 | 27 | BuildRequires: autoconf >= 2.61 |
| ... | ... | @@ -34,16 +33,12 @@ BuildRequires: gcc-c++ |
| 34 | 33 | BuildRequires: gettext-devel |
| 35 | 34 | BuildRequires: m4 |
| 36 | 35 | BuildRequires: pkgconfig |
| 37 | -%if 0%{?fedora} || 0%{?suse_version} > 1200 | |
| 38 | 36 | BuildRequires: pkgconfig(libcrypto) |
| 39 | -BuildRequires: pkgconfig(libcurl) | |
| 40 | 37 | BuildRequires: pkgconfig(libssl) |
| 41 | 38 | BuildRequires: pkgconfig(openssl) |
| 42 | -%else | |
| 43 | -BuildRequires: libcurl-devel | |
| 44 | -BuildRequires: openssl-devel | |
| 39 | +BuildRequires: pkgconfig(libcurl) | |
| 45 | 40 | BuildRequires: xz |
| 46 | -%endif | |
| 41 | + | |
| 47 | 42 | %if 0%{?centos_version} |
| 48 | 43 | # CENTOS Requires gdb for debuginfo |
| 49 | 44 | BuildRequires: gdb |
| ... | ... | @@ -54,15 +49,12 @@ TN3270 access library, originally designed as part of the pw3270 application. |
| 54 | 49 | |
| 55 | 50 | For more details, see https://softwarepublico.gov.br/social/pw3270/ . |
| 56 | 51 | |
| 57 | -#---[ Library ]------------------------------------------------------------------------------------------------------- | |
| 58 | - | |
| 59 | 52 | %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) |
| 60 | 53 | %define MINOR_VERSION %(echo %{version} | cut -d. -f2) |
| 61 | 54 | %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} |
| 62 | 55 | |
| 63 | 56 | %package -n %{name}-%{_libvrs} |
| 64 | -Summary: TN3270 Access library | |
| 65 | -Group: Development/Libraries/C and C++ | |
| 57 | +Summary: TN3270 Access library | |
| 66 | 58 | |
| 67 | 59 | %description -n %{name}-%{_libvrs} |
| 68 | 60 | TN3270 access library, originally designed as part of the pw3270 application. |
| ... | ... | @@ -70,59 +62,41 @@ TN3270 access library, originally designed as part of the pw3270 application. |
| 70 | 62 | For more details, see https://softwarepublico.gov.br/social/pw3270/ . |
| 71 | 63 | |
| 72 | 64 | %package devel |
| 73 | -Summary: TN3270 Access library development files | |
| 74 | -Group: Development/Libraries/C and C++ | |
| 75 | -Requires: %{name}-%{_libvrs} = %{version} | |
| 65 | +Summary: TN3270 Access library development files | |
| 66 | +Requires: %{name}-%{_libvrs} = %{version} | |
| 76 | 67 | |
| 77 | 68 | %description devel |
| 78 | 69 | Header files for the TN3270 access library. |
| 79 | 70 | |
| 80 | -#---[ Build & Install ]----------------------------------------------------------------------------------------------- | |
| 81 | - | |
| 82 | 71 | %prep |
| 83 | 72 | %setup -q |
| 84 | - | |
| 85 | -NOCONFIGURE=1 \ | |
| 86 | - ./autogen.sh | |
| 87 | - | |
| 88 | -%configure \ | |
| 89 | - --with-release=%{release} | |
| 73 | +NOCONFIGURE=1 ./autogen.sh | |
| 74 | +%configure --with-release=%{release} | |
| 90 | 75 | |
| 91 | 76 | %build |
| 92 | 77 | make all %{?_smp_mflags} |
| 93 | 78 | |
| 94 | 79 | %install |
| 95 | - | |
| 96 | 80 | %make_install |
| 97 | 81 | %find_lang %{name} langfiles |
| 98 | -%fdupes %{buildroot}/%{_prefix} | |
| 99 | 82 | |
| 100 | -%files -n %{name}-%{_libvrs} -f langfiles | |
| 83 | +%fdupes %{buildroot}/%{_prefix} | |
| 101 | 84 | |
| 102 | -# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros | |
| 103 | -%if 0%{?sle_version} > 120200 | |
| 85 | +%files -n %{name}-%{_libvrs} -f langfiles | |
| 104 | 86 | %doc AUTHORS README.md |
| 105 | 87 | %license LICENSE |
| 106 | -%else | |
| 107 | -%doc LICENSE AUTHORS README.md | |
| 108 | -%endif | |
| 109 | - | |
| 110 | -%dir %{_datadir}/pw3270 | |
| 111 | 88 | |
| 112 | -%{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} | |
| 89 | +%{_libdir}/%{name}.so.* | |
| 113 | 90 | |
| 114 | 91 | %files devel |
| 115 | - | |
| 116 | 92 | %{_libdir}/%{name}.so |
| 117 | - | |
| 93 | +%dir %{_datadir}/pw3270 | |
| 94 | +%dir %{_datadir}/pw3270/pot | |
| 95 | +%{_datadir}/pw3270/pot/*.pot | |
| 118 | 96 | %{_includedir}/*.h |
| 119 | 97 | %{_includedir}/%{name} |
| 120 | - | |
| 121 | 98 | %{_libdir}/pkgconfig/*.pc |
| 122 | 99 | |
| 123 | -%dir %{_datadir}/pw3270/pot | |
| 124 | -%{_datadir}/pw3270/pot/*.pot | |
| 125 | - | |
| 126 | 100 | %post -n %{name}-%{_libvrs} -p /sbin/ldconfig |
| 127 | 101 | %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig |
| 128 | 102 | ... | ... |