From 6b5bc87f28ddbe40f7255d80b7826032288a23f0 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 10 Dec 2019 11:16:21 -0300 Subject: [PATCH] Using spec-cleaner. --- rpm/libv3270.spec | 87 +++++++++++++++++++++++++++++++++++---------------------------------------------------- 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/rpm/libv3270.spec b/rpm/libv3270.spec index 8ca8dbb..7f7b4a9 100644 --- a/rpm/libv3270.spec +++ b/rpm/libv3270.spec @@ -1,8 +1,8 @@ # # spec file for package libv3270 # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (C) <2008> +# Copyright (c) 2019 SUSE LLC +# Copyright (c) <2008> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,45 +13,35 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -#---[ Package header ]------------------------------------------------------------------------------------------------ - -Summary: 3270 Virtual Terminal for GTK -Name: libv3270 -Version: 5.2 -Release: 0 -License: LGPL-3.0 - -Source: libv3270-%{version}.tar.xz - -URL: https://github.com/PerryWerneck/libv3270 -Group: Development/Libraries/C and C++ - -BuildRequires: autoconf >= 2.61 -BuildRequires: automake -BuildRequires: binutils -BuildRequires: coreutils -BuildRequires: gcc-c++ -BuildRequires: gettext-devel -BuildRequires: m4 +Name: libv3270 +Version: 5.2 +Release: 0 +Summary: 3270 Virtual Terminal for GTK +License: LGPL-3.0-only +Group: Development/Libraries/C and C++ +URL: https://github.com/PerryWerneck/libv3270 +Source: libv3270-%{version}.tar.xz +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc-c++ +BuildRequires: gettext-devel +BuildRequires: m4 %if 0%{?fedora} || 0%{?suse_version} > 1200 - -BuildRequires: pkgconfig(lib3270) >= 5.2 -BuildRequires: pkgconfig(gtk+-3.0) - +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(lib3270) >= 5.2 %else - -BuildRequires: lib3270-devel >= 5.2 -BuildRequires: gtk3-devel - +BuildRequires: gtk3-devel +BuildRequires: lib3270-devel >= 5.2 %endif - %if 0%{?centos_version} && 0%{?centos_version} < 800 # CENTOS Genmarshal doesn't depends on python! -BuildRequires: python +BuildRequires: python %endif %description @@ -69,8 +59,8 @@ For more details, see https://softwarepublico.gov.br/social/pw3270/ . %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} %package -n %{name}-%{_libvrs} -Summary: TN3270 Access library -Group: Development/Libraries/C and C++ +Summary: TN3270 Access library +Group: Development/Libraries/C and C++ %description -n %{name}-%{_libvrs} @@ -81,22 +71,18 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ #---[ Development ]--------------------------------------------------------------------------------------------------- %package devel - -Summary: Header files for the 3270 Virtual Terminal library -Group: Development/Libraries/C and C++ - -Requires: %{name}-%{_libvrs} = %{version} +Summary: Header files for the 3270 Virtual Terminal library +Group: Development/Libraries/C and C++ +Requires: %{name}-%{_libvrs} = %{version} %description devel GTK development files for the 3270 Virtual Terminal. %package -n glade-catalog-v3270 - -Summary: Glade catalog for the TN3270 terminal emulator library -Group: Development/Libraries/C and C++ - -Requires: glade -Requires: %{name}-%{_libvrs} = %{version} +Summary: Glade catalog for the TN3270 terminal emulator library +Group: Development/Libraries/C and C++ +Requires: %{name}-%{_libvrs} = %{version} +Requires: glade %description -n glade-catalog-v3270 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 #---[ Build & Install ]----------------------------------------------------------------------------------------------- %prep -%setup -n libv3270-%{version} +%setup -q -n libv3270-%{version} NOCONFIGURE=1 ./autogen.sh @@ -119,14 +105,14 @@ make %{?_smp_mflags} %make_install %files -n %{name}-%{_libvrs} -%defattr(-,root,root) # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros %if 0%{?sle_version} > 120200 %doc AUTHORS README.md %license LICENSE %else -%doc AUTHORS README.md LICENSE +%license LICENSE +%doc AUTHORS README.md %endif %{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION} @@ -137,7 +123,6 @@ make %{?_smp_mflags} %{_datadir}/%{_product}/remap/*.xml %files devel -%defattr(-,root,root) %{_libdir}/%{name}.so %{_libdir}/pkgconfig/*.pc @@ -148,11 +133,9 @@ make %{?_smp_mflags} %{_datadir}/%{_product}/pot/*.pot %files -n glade-catalog-v3270 -%defattr(-,root,root) %{_datadir}/glade/ %post -n %{name}-%{_libvrs} -p /sbin/ldconfig - %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig %changelog -- libgit2 0.21.2