Commit 6b5bc87f28ddbe40f7255d80b7826032288a23f0

Authored by Perry Werneck
1 parent f32a735b
Exists in master and in 1 other branch develop

Using spec-cleaner.

Showing 1 changed file with 35 additions and 52 deletions   Show diff stats
rpm/libv3270.spec
1 1 #
2 2 # spec file for package libv3270
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,45 +13,35 @@
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: 3270 Virtual Terminal for GTK
22   -Name: libv3270
23   -Version: 5.2
24   -Release: 0
25   -License: LGPL-3.0
26   -
27   -Source: libv3270-%{version}.tar.xz
28   -
29   -URL: https://github.com/PerryWerneck/libv3270
30   -Group: Development/Libraries/C and C++
31   -
32   -BuildRequires: autoconf >= 2.61
33   -BuildRequires: automake
34   -BuildRequires: binutils
35   -BuildRequires: coreutils
36   -BuildRequires: gcc-c++
37   -BuildRequires: gettext-devel
38   -BuildRequires: m4
39 19  
  20 +Name: libv3270
  21 +Version: 5.2
  22 +Release: 0
  23 +Summary: 3270 Virtual Terminal for GTK
  24 +License: LGPL-3.0-only
  25 +Group: Development/Libraries/C and C++
  26 +URL: https://github.com/PerryWerneck/libv3270
  27 +Source: libv3270-%{version}.tar.xz
  28 +BuildRequires: autoconf >= 2.61
  29 +BuildRequires: automake
  30 +BuildRequires: binutils
  31 +BuildRequires: coreutils
  32 +BuildRequires: gcc-c++
  33 +BuildRequires: gettext-devel
  34 +BuildRequires: m4
40 35 %if 0%{?fedora} || 0%{?suse_version} > 1200
41   -
42   -BuildRequires: pkgconfig(lib3270) >= 5.2
43   -BuildRequires: pkgconfig(gtk+-3.0)
44   -
  36 +BuildRequires: pkgconfig(gtk+-3.0)
  37 +BuildRequires: pkgconfig(lib3270) >= 5.2
45 38 %else
46   -
47   -BuildRequires: lib3270-devel >= 5.2
48   -BuildRequires: gtk3-devel
49   -
  39 +BuildRequires: gtk3-devel
  40 +BuildRequires: lib3270-devel >= 5.2
50 41 %endif
51   -
52 42 %if 0%{?centos_version} && 0%{?centos_version} < 800
53 43 # CENTOS Genmarshal doesn't depends on python!
54   -BuildRequires: python
  44 +BuildRequires: python
55 45 %endif
56 46  
57 47 %description
... ... @@ -69,8 +59,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ .
69 59 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
70 60  
71 61 %package -n %{name}-%{_libvrs}
72   -Summary: TN3270 Access library
73   -Group: Development/Libraries/C and C++
  62 +Summary: TN3270 Access library
  63 +Group: Development/Libraries/C and C++
74 64  
75 65 %description -n %{name}-%{_libvrs}
76 66  
... ... @@ -81,22 +71,18 @@ See more details at https://softwarepublico.gov.br/social/pw3270/
81 71 #---[ Development ]---------------------------------------------------------------------------------------------------
82 72  
83 73 %package devel
84   -
85   -Summary: Header files for the 3270 Virtual Terminal library
86   -Group: Development/Libraries/C and C++
87   -
88   -Requires: %{name}-%{_libvrs} = %{version}
  74 +Summary: Header files for the 3270 Virtual Terminal library
  75 +Group: Development/Libraries/C and C++
  76 +Requires: %{name}-%{_libvrs} = %{version}
89 77  
90 78 %description devel
91 79 GTK development files for the 3270 Virtual Terminal.
92 80  
93 81 %package -n glade-catalog-v3270
94   -
95   -Summary: Glade catalog for the TN3270 terminal emulator library
96   -Group: Development/Libraries/C and C++
97   -
98   -Requires: glade
99   -Requires: %{name}-%{_libvrs} = %{version}
  82 +Summary: Glade catalog for the TN3270 terminal emulator library
  83 +Group: Development/Libraries/C and C++
  84 +Requires: %{name}-%{_libvrs} = %{version}
  85 +Requires: glade
100 86  
101 87 %description -n glade-catalog-v3270
102 88 This package provides a catalog for Glade to allow the use of V3270
... ... @@ -104,7 +90,7 @@ This package provides a catalog for Glade to allow the use of V3270
104 90 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
105 91  
106 92 %prep
107   -%setup -n libv3270-%{version}
  93 +%setup -q -n libv3270-%{version}
108 94  
109 95 NOCONFIGURE=1 ./autogen.sh
110 96  
... ... @@ -119,14 +105,14 @@ make %{?_smp_mflags}
119 105 %make_install
120 106  
121 107 %files -n %{name}-%{_libvrs}
122   -%defattr(-,root,root)
123 108  
124 109 # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
125 110 %if 0%{?sle_version} > 120200
126 111 %doc AUTHORS README.md
127 112 %license LICENSE
128 113 %else
129   -%doc AUTHORS README.md LICENSE
  114 +%license LICENSE
  115 +%doc AUTHORS README.md
130 116 %endif
131 117  
132 118 %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}
... ... @@ -137,7 +123,6 @@ make %{?_smp_mflags}
137 123 %{_datadir}/%{_product}/remap/*.xml
138 124  
139 125 %files devel
140   -%defattr(-,root,root)
141 126  
142 127 %{_libdir}/%{name}.so
143 128 %{_libdir}/pkgconfig/*.pc
... ... @@ -148,11 +133,9 @@ make %{?_smp_mflags}
148 133 %{_datadir}/%{_product}/pot/*.pot
149 134  
150 135 %files -n glade-catalog-v3270
151   -%defattr(-,root,root)
152 136 %{_datadir}/glade/
153 137  
154 138 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig
155   -
156 139 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig
157 140  
158 141 %changelog
... ...