Commit fa6da72b40d56cf388763ed3d499d5293b0ac2f3

Authored by Perry Werneck
1 parent 11869908

Updating rpm control file.

Showing 1 changed file with 14 additions and 40 deletions   Show diff stats
rpm/lib3270.spec
1 # 1 #
2 # spec file for package lib3270 2 # spec file for package lib3270
3 # 3 #
4 -# Copyright (c) 2019 SUSE LLC 4 +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
5 # Copyright (c) <2008> <Banco do Brasil S.A.> 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
@@ -22,7 +22,6 @@ Version: 5.3 @@ -22,7 +22,6 @@ Version: 5.3
22 Release: 0 22 Release: 0
23 Summary: TN3270 Access library 23 Summary: TN3270 Access library
24 License: LGPL-3.0-only 24 License: LGPL-3.0-only
25 -Group: System/Libraries  
26 URL: https://github.com/PerryWerneck/lib3270 25 URL: https://github.com/PerryWerneck/lib3270
27 Source: %{name}-%{version}.tar.xz 26 Source: %{name}-%{version}.tar.xz
28 BuildRequires: autoconf >= 2.61 27 BuildRequires: autoconf >= 2.61
@@ -34,16 +33,12 @@ BuildRequires: gcc-c++ @@ -34,16 +33,12 @@ BuildRequires: gcc-c++
34 BuildRequires: gettext-devel 33 BuildRequires: gettext-devel
35 BuildRequires: m4 34 BuildRequires: m4
36 BuildRequires: pkgconfig 35 BuildRequires: pkgconfig
37 -%if 0%{?fedora} || 0%{?suse_version} > 1200  
38 BuildRequires: pkgconfig(libcrypto) 36 BuildRequires: pkgconfig(libcrypto)
39 -BuildRequires: pkgconfig(libcurl)  
40 BuildRequires: pkgconfig(libssl) 37 BuildRequires: pkgconfig(libssl)
41 BuildRequires: pkgconfig(openssl) 38 BuildRequires: pkgconfig(openssl)
42 -%else  
43 -BuildRequires: libcurl-devel  
44 -BuildRequires: openssl-devel 39 +BuildRequires: pkgconfig(libcurl)
45 BuildRequires: xz 40 BuildRequires: xz
46 -%endif 41 +
47 %if 0%{?centos_version} 42 %if 0%{?centos_version}
48 # CENTOS Requires gdb for debuginfo 43 # CENTOS Requires gdb for debuginfo
49 BuildRequires: gdb 44 BuildRequires: gdb
@@ -54,15 +49,12 @@ TN3270 access library, originally designed as part of the pw3270 application. @@ -54,15 +49,12 @@ TN3270 access library, originally designed as part of the pw3270 application.
54 49
55 For more details, see https://softwarepublico.gov.br/social/pw3270/ . 50 For more details, see https://softwarepublico.gov.br/social/pw3270/ .
56 51
57 -#---[ Library ]-------------------------------------------------------------------------------------------------------  
58 -  
59 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) 52 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1)
60 %define MINOR_VERSION %(echo %{version} | cut -d. -f2) 53 %define MINOR_VERSION %(echo %{version} | cut -d. -f2)
61 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} 54 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
62 55
63 %package -n %{name}-%{_libvrs} 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 %description -n %{name}-%{_libvrs} 59 %description -n %{name}-%{_libvrs}
68 TN3270 access library, originally designed as part of the pw3270 application. 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,59 +62,41 @@ TN3270 access library, originally designed as part of the pw3270 application.
70 For more details, see https://softwarepublico.gov.br/social/pw3270/ . 62 For more details, see https://softwarepublico.gov.br/social/pw3270/ .
71 63
72 %package devel 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 %description devel 68 %description devel
78 Header files for the TN3270 access library. 69 Header files for the TN3270 access library.
79 70
80 -#---[ Build & Install ]-----------------------------------------------------------------------------------------------  
81 -  
82 %prep 71 %prep
83 %setup -q 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 %build 76 %build
92 make all %{?_smp_mflags} 77 make all %{?_smp_mflags}
93 78
94 %install 79 %install
95 -  
96 %make_install 80 %make_install
97 %find_lang %{name} langfiles 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 %doc AUTHORS README.md 86 %doc AUTHORS README.md
105 %license LICENSE 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 %files devel 91 %files devel
115 -  
116 %{_libdir}/%{name}.so 92 %{_libdir}/%{name}.so
117 - 93 +%dir %{_datadir}/pw3270
  94 +%dir %{_datadir}/pw3270/pot
  95 +%{_datadir}/pw3270/pot/*.pot
118 %{_includedir}/*.h 96 %{_includedir}/*.h
119 %{_includedir}/%{name} 97 %{_includedir}/%{name}
120 -  
121 %{_libdir}/pkgconfig/*.pc 98 %{_libdir}/pkgconfig/*.pc
122 99
123 -%dir %{_datadir}/pw3270/pot  
124 -%{_datadir}/pw3270/pot/*.pot  
125 -  
126 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig 100 %post -n %{name}-%{_libvrs} -p /sbin/ldconfig
127 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig 101 %postun -n %{name}-%{_libvrs} -p /sbin/ldconfig
128 102