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 # spec file for package libv3270 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 # All modifications and additions to the file contributed by third parties 7 # All modifications and additions to the file contributed by third parties
8 # remain the property of their copyright owners, unless otherwise agreed 8 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,45 +13,35 @@ @@ -13,45 +13,35 @@
13 # license that conforms to the Open Source Definition (Version 1.9) 13 # license that conforms to the Open Source Definition (Version 1.9)
14 # published by the Open Source Initiative. 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 %if 0%{?fedora} || 0%{?suse_version} > 1200 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 %else 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 %endif 41 %endif
51 -  
52 %if 0%{?centos_version} && 0%{?centos_version} < 800 42 %if 0%{?centos_version} && 0%{?centos_version} < 800
53 # CENTOS Genmarshal doesn't depends on python! 43 # CENTOS Genmarshal doesn't depends on python!
54 -BuildRequires: python 44 +BuildRequires: python
55 %endif 45 %endif
56 46
57 %description 47 %description
@@ -69,8 +59,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ . @@ -69,8 +59,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ .
69 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} 59 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
70 60
71 %package -n %{name}-%{_libvrs} 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 %description -n %{name}-%{_libvrs} 65 %description -n %{name}-%{_libvrs}
76 66
@@ -81,22 +71,18 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ @@ -81,22 +71,18 @@ See more details at https://softwarepublico.gov.br/social/pw3270/
81 #---[ Development ]--------------------------------------------------------------------------------------------------- 71 #---[ Development ]---------------------------------------------------------------------------------------------------
82 72
83 %package devel 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 %description devel 78 %description devel
91 GTK development files for the 3270 Virtual Terminal. 79 GTK development files for the 3270 Virtual Terminal.
92 80
93 %package -n glade-catalog-v3270 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 %description -n glade-catalog-v3270 87 %description -n glade-catalog-v3270
102 This package provides a catalog for Glade to allow the use of V3270 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,7 +90,7 @@ This package provides a catalog for Glade to allow the use of V3270
104 #---[ Build & Install ]----------------------------------------------------------------------------------------------- 90 #---[ Build & Install ]-----------------------------------------------------------------------------------------------
105 91
106 %prep 92 %prep
107 -%setup -n libv3270-%{version} 93 +%setup -q -n libv3270-%{version}
108 94
109 NOCONFIGURE=1 ./autogen.sh 95 NOCONFIGURE=1 ./autogen.sh
110 96
@@ -119,14 +105,14 @@ make %{?_smp_mflags} @@ -119,14 +105,14 @@ make %{?_smp_mflags}
119 %make_install 105 %make_install
120 106
121 %files -n %{name}-%{_libvrs} 107 %files -n %{name}-%{_libvrs}
122 -%defattr(-,root,root)  
123 108
124 # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros 109 # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
125 %if 0%{?sle_version} > 120200 110 %if 0%{?sle_version} > 120200
126 %doc AUTHORS README.md 111 %doc AUTHORS README.md
127 %license LICENSE 112 %license LICENSE
128 %else 113 %else
129 -%doc AUTHORS README.md LICENSE 114 +%license LICENSE
  115 +%doc AUTHORS README.md
130 %endif 116 %endif
131 117
132 %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} 118 %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}
@@ -137,7 +123,6 @@ make %{?_smp_mflags} @@ -137,7 +123,6 @@ make %{?_smp_mflags}
137 %{_datadir}/%{_product}/remap/*.xml 123 %{_datadir}/%{_product}/remap/*.xml
138 124
139 %files devel 125 %files devel
140 -%defattr(-,root,root)  
141 126
142 %{_libdir}/%{name}.so 127 %{_libdir}/%{name}.so
143 %{_libdir}/pkgconfig/*.pc 128 %{_libdir}/pkgconfig/*.pc
@@ -148,11 +133,9 @@ make %{?_smp_mflags} @@ -148,11 +133,9 @@ make %{?_smp_mflags}
148 %{_datadir}/%{_product}/pot/*.pot 133 %{_datadir}/%{_product}/pot/*.pot
149 134
150 %files -n glade-catalog-v3270 135 %files -n glade-catalog-v3270
151 -%defattr(-,root,root)  
152 %{_datadir}/glade/ 136 %{_datadir}/glade/
153 137
154 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig 138 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig
155 -  
156 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig 139 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig
157 140
158 %changelog 141 %changelog