Commit 4d5a37ef8bffaf51210fbb76c5757396c93be7e0

Authored by Perry Werneck
1 parent 8bee9c86

Using spec-cleaner on lib3270.spec

Showing 1 changed file with 36 additions and 51 deletions   Show diff stats
rpm/lib3270.spec
1 1 #
2 2 # spec file for package lib3270
3 3 #
4   -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
5   -# Copyright (C) <2008> <Banco do Brasil S.A.>
  4 +# Copyright (c) 2019 SUSE LLC
  5 +# Copyright (c) <2008> <Banco do Brasil S.A.>
6 6 #
7 7 # All modifications and additions to the file contributed by third parties
8 8 # remain the property of their copyright owners, unless otherwise agreed
... ... @@ -13,52 +13,40 @@
13 13 # license that conforms to the Open Source Definition (Version 1.9)
14 14 # published by the Open Source Initiative.
15 15  
16   -# Please submit bugfixes or comments via http://bugs.opensuse.org/
  16 +# Please submit bugfixes or comments via https://bugs.opensuse.org/
17 17 #
18 18  
19   -#---[ Package header ]------------------------------------------------------------------------------------------------
20   -
21   -Summary: TN3270 Access library
22   -Name: lib3270
23   -Version: 5.2
24   -Release: 0
25   -License: LGPL-3.0
26   -
27   -Source: %{name}-%{version}.tar.xz
28   -
29   -URL: https://github.com/PerryWerneck/lib3270
30   -
31   -Group: System/Libraries
32   -BuildRoot: /var/tmp/%{name}-%{version}
33   -
34   -BuildRequires: autoconf >= 2.61
35   -BuildRequires: automake
36   -BuildRequires: binutils
37   -BuildRequires: coreutils
38   -BuildRequires: gcc-c++
39   -BuildRequires: gettext-devel
40   -BuildRequires: m4
41   -BuildRequires: pkgconfig
42   -BuildRequires: fdupes
43 19  
  20 +Name: lib3270
  21 +Version: 5.2
  22 +Release: 0
  23 +Summary: TN3270 Access library
  24 +License: LGPL-3.0-only
  25 +Group: System/Libraries
  26 +URL: https://github.com/PerryWerneck/lib3270
  27 +Source: %{name}-%{version}.tar.xz
  28 +BuildRequires: autoconf >= 2.61
  29 +BuildRequires: automake
  30 +BuildRequires: binutils
  31 +BuildRequires: coreutils
  32 +BuildRequires: fdupes
  33 +BuildRequires: gcc-c++
  34 +BuildRequires: gettext-devel
  35 +BuildRequires: m4
  36 +BuildRequires: pkgconfig
44 37 %if 0%{?fedora} || 0%{?suse_version} > 1200
45   -
46   -BuildRequires: pkgconfig(openssl)
47   -BuildRequires: pkgconfig(libssl)
48   -BuildRequires: pkgconfig(libcrypto)
49   -BuildRequires: pkgconfig(libcurl)
50   -
  38 +BuildRequires: pkgconfig(libcrypto)
  39 +BuildRequires: pkgconfig(libcurl)
  40 +BuildRequires: pkgconfig(libssl)
  41 +BuildRequires: pkgconfig(openssl)
51 42 %else
52   -
53   -BuildRequires: openssl-devel
54   -BuildRequires: xz
55   -BuildRequires: libcurl-devel
56   -
  43 +BuildRequires: libcurl-devel
  44 +BuildRequires: openssl-devel
  45 +BuildRequires: xz
57 46 %endif
58   -
59 47 %if 0%{?centos_version}
60 48 # CENTOS Requires gdb for debuginfo
61   -BuildRequires: gdb
  49 +BuildRequires: gdb
62 50 %endif
63 51  
64 52 %description
... ... @@ -73,8 +61,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ .
73 61 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
74 62  
75 63 %package -n %{name}-%{_libvrs}
76   -Summary: TN3270 Access library
77   -Group: Development/Libraries/C and C++
  64 +Summary: TN3270 Access library
  65 +Group: Development/Libraries/C and C++
78 66  
79 67 %description -n %{name}-%{_libvrs}
80 68 TN3270 access library, originally designed as part of the pw3270 application.
... ... @@ -82,10 +70,9 @@ TN3270 access library, originally designed as part of the pw3270 application.
82 70 For more details, see https://softwarepublico.gov.br/social/pw3270/ .
83 71  
84 72 %package devel
85   -
86   -Summary: TN3270 Access library development files
87   -Group: Development/Libraries/C and C++
88   -Requires: %{name}-%{_libvrs} = %{version}
  73 +Summary: TN3270 Access library development files
  74 +Group: Development/Libraries/C and C++
  75 +Requires: %{name}-%{_libvrs} = %{version}
89 76  
90 77 %description devel
91 78 Header files for the TN3270 access library.
... ... @@ -93,7 +80,7 @@ Header files for the TN3270 access library.
93 80 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
94 81  
95 82 %prep
96   -%setup
  83 +%setup -q
97 84  
98 85 NOCONFIGURE=1 \
99 86 ./autogen.sh
... ... @@ -109,14 +96,14 @@ make all %{?_smp_mflags}
109 96 %fdupes %{buildroot}/%{_prefix}
110 97  
111 98 %files -n %{name}-%{_libvrs}
112   -%defattr(-,root,root)
113 99  
114 100 # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
115 101 %if 0%{?sle_version} > 120200
116 102 %doc AUTHORS README.md
117 103 %license LICENSE
118 104 %else
119   -%doc AUTHORS README.md LICENSE
  105 +%license LICENSE
  106 +%doc AUTHORS README.md
120 107 %endif
121 108  
122 109 %dir %{_datadir}/pw3270
... ... @@ -124,7 +111,6 @@ make all %{?_smp_mflags}
124 111 %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}
125 112  
126 113 %files devel
127   -%defattr(-,root,root)
128 114  
129 115 %{_libdir}/%{name}.so
130 116  
... ... @@ -137,7 +123,6 @@ make all %{?_smp_mflags}
137 123 %{_datadir}/pw3270/pot/*.pot
138 124  
139 125 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig
140   -
141 126 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig
142 127  
143 128 %changelog
... ...