Commit 21a47e09b5939f977b250f43c74adb9142a86f7e

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

Updating package control files.

Showing 2 changed files with 37 additions and 57 deletions   Show diff stats
@@ -14,10 +14,10 @@ @@ -14,10 +14,10 @@
14 </service> 14 </service>
15 15
16 <!-- https://github.com/openSUSE/obs-service-extract_file --> 16 <!-- https://github.com/openSUSE/obs-service-extract_file -->
17 - <service name="extract_file"> 17 + <!-- service name="extract_file">
18 <param name="archive">*.tar</param> 18 <param name="archive">*.tar</param>
19 <param name="files">*/rpm/libv3270.spec</param> 19 <param name="files">*/rpm/libv3270.spec</param>
20 - </service> 20 + </service -->
21 21
22 <service name="extract_file"> 22 <service name="extract_file">
23 <param name="archive">*.tar</param> 23 <param name="archive">*.tar</param>
@@ -59,6 +59,18 @@ @@ -59,6 +59,18 @@
59 <param name="outfilename">debian.shlibs</param> 59 <param name="outfilename">debian.shlibs</param>
60 </service> 60 </service>
61 61
  62 + <service name="extract_file">
  63 + <param name="archive">*.tar</param>
  64 + <param name="files">*/debian/postinst</param>
  65 + <param name="outfilename">debian.postinst</param>
  66 + </service>
  67 +
  68 + <service name="extract_file">
  69 + <param name="archive">*.tar</param>
  70 + <param name="files">*/debian/postrm</param>
  71 + <param name="outfilename">debian.postrm</param>
  72 + </service>
  73 +
62 <service name="recompress"> 74 <service name="recompress">
63 <param name="file">*.tar</param> 75 <param name="file">*.tar</param>
64 <param name="compression">xz</param> 76 <param name="compression">xz</param>
rpm/libv3270.spec
1 # 1 #
2 # spec file for package libv3270 2 # spec file for package libv3270
3 # 3 #
4 -# Copyright (c) 2019 SUSE LLC  
5 -# Copyright (c) <2008> <Banco do Brasil S.A.> 4 +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
  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
@@ -18,11 +18,10 @@ @@ -18,11 +18,10 @@
18 18
19 19
20 Name: libv3270 20 Name: libv3270
21 -Version: 5.2 21 +Version: 5.3
22 Release: 0 22 Release: 0
23 Summary: 3270 Virtual Terminal for GTK 23 Summary: 3270 Virtual Terminal for GTK
24 License: LGPL-3.0-only 24 License: LGPL-3.0-only
25 -Group: Development/Libraries/C and C++  
26 URL: https://github.com/PerryWerneck/libv3270 25 URL: https://github.com/PerryWerneck/libv3270
27 Source: libv3270-%{version}.tar.xz 26 Source: libv3270-%{version}.tar.xz
28 BuildRequires: autoconf >= 2.61 27 BuildRequires: autoconf >= 2.61
@@ -32,15 +31,10 @@ BuildRequires: coreutils @@ -32,15 +31,10 @@ BuildRequires: coreutils
32 BuildRequires: gcc-c++ 31 BuildRequires: gcc-c++
33 BuildRequires: gettext-devel 32 BuildRequires: gettext-devel
34 BuildRequires: m4 33 BuildRequires: m4
35 -%if 0%{?fedora} || 0%{?suse_version} > 1200  
36 BuildRequires: pkgconfig(gtk+-3.0) 34 BuildRequires: pkgconfig(gtk+-3.0)
37 -BuildRequires: pkgconfig(lib3270) >= 5.2  
38 -%else  
39 -BuildRequires: gtk3-devel  
40 -BuildRequires: lib3270-devel >= 5.2  
41 -%endif  
42 -%if 0%{?centos_version} && 0%{?centos_version} < 800  
43 -# CENTOS Genmarshal doesn't depends on python! 35 +BuildRequires: pkgconfig(lib3270) >= %{version}
  36 +%if 0%{?centos_version}
  37 +# CENTOS Genmarshal doesn't depend on python!
44 BuildRequires: python 38 BuildRequires: python
45 %endif 39 %endif
46 40
@@ -51,88 +45,62 @@ provides a TN3270 virtual terminal widget for GTK 3. @@ -51,88 +45,62 @@ provides a TN3270 virtual terminal widget for GTK 3.
51 45
52 For more details, see https://softwarepublico.gov.br/social/pw3270/ . 46 For more details, see https://softwarepublico.gov.br/social/pw3270/ .
53 47
54 -#---[ Library ]-------------------------------------------------------------------------------------------------------  
55 -  
56 -%define _product %(pkg-config --variable=product_name lib3270)  
57 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) 48 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1)
58 %define MINOR_VERSION %(echo %{version} | cut -d. -f2) 49 %define MINOR_VERSION %(echo %{version} | cut -d. -f2)
59 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} 50 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
  51 +%define _product %(pkg-config --variable=product_name lib3270)
60 52
61 %package -n %{name}-%{_libvrs} 53 %package -n %{name}-%{_libvrs}
62 -Summary: TN3270 Access library  
63 -Group: Development/Libraries/C and C++ 54 +Summary: TN3270 access library
64 55
65 %description -n %{name}-%{_libvrs} 56 %description -n %{name}-%{_libvrs}
  57 +Originally designed as part of the pw3270 application, this library
  58 +provides a TN3270 virtual terminal widget for GTK 3.
66 59
67 -Originally designed as part of the pw3270 application this library provides a TN3270 virtual terminal widget for GTK 3.  
68 -  
69 -See more details at https://softwarepublico.gov.br/social/pw3270/  
70 -  
71 -#---[ Development ]--------------------------------------------------------------------------------------------------- 60 +For more details, see https://softwarepublico.gov.br/social/pw3270/ .
72 61
73 %package devel 62 %package devel
74 -Summary: Header files for the 3270 Virtual Terminal library  
75 -Group: Development/Libraries/C and C++  
76 -Requires: %{name}-%{_libvrs} = %{version} 63 +Summary: Header files for the 3270 Virtual Terminal library
  64 +Requires: %{name}-%{_libvrs} = %{version}
77 65
78 %description devel 66 %description devel
79 GTK development files for the 3270 Virtual Terminal. 67 GTK development files for the 3270 Virtual Terminal.
80 68
81 %package -n glade-catalog-v3270 69 %package -n glade-catalog-v3270
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 70 +Summary: Glade catalog for the TN3270 terminal emulator library
  71 +Requires: glade
86 72
87 %description -n glade-catalog-v3270 73 %description -n glade-catalog-v3270
88 This package provides a catalog for Glade to allow the use of V3270 74 This package provides a catalog for Glade to allow the use of V3270
89 -  
90 -#---[ Build & Install ]----------------------------------------------------------------------------------------------- 75 +widgets in Glade.
91 76
92 %prep 77 %prep
93 -%setup -q -n libv3270-%{version}  
94 - 78 +%setup -q
95 NOCONFIGURE=1 ./autogen.sh 79 NOCONFIGURE=1 ./autogen.sh
96 -  
97 -%configure \  
98 - --disable-static \  
99 - --enable-pic \  
100 - --with-release=%{release} 80 +%configure --with-release=%{release}
101 81
102 %build 82 %build
103 -make %{?_smp_mflags} 83 +make all %{?_smp_mflags}
104 84
105 %install 85 %install
106 %make_install 86 %make_install
107 -%find_lang libv3270 langfiles 87 +%find_lang %{name} langfiles
108 88
109 %files -n %{name}-%{_libvrs} -f langfiles 89 %files -n %{name}-%{_libvrs} -f langfiles
110 -  
111 -# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros  
112 -%if 0%{?sle_version} > 120200  
113 -%doc AUTHORS README.md  
114 %license LICENSE 90 %license LICENSE
115 -%else  
116 -%doc LICENSE AUTHORS README.md  
117 -%endif  
118 -  
119 -%{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}  
120 - 91 +%doc AUTHORS README.md
  92 +%{_libdir}/%{name}.so.*
121 %{_datadir}/%{_product}/colors.conf 93 %{_datadir}/%{_product}/colors.conf
122 -  
123 %dir %{_datadir}/%{_product}/remap/ 94 %dir %{_datadir}/%{_product}/remap/
124 %{_datadir}/%{_product}/remap/*.xml 95 %{_datadir}/%{_product}/remap/*.xml
125 96
126 %files devel 97 %files devel
127 - 98 +%{_datadir}/pw3270/pot/*.pot
128 %{_libdir}/%{name}.so 99 %{_libdir}/%{name}.so
129 %{_libdir}/pkgconfig/*.pc 100 %{_libdir}/pkgconfig/*.pc
130 -  
131 %{_includedir}/v3270.h 101 %{_includedir}/v3270.h
132 %{_includedir}/v3270 102 %{_includedir}/v3270
133 103
134 -%{_datadir}/%{_product}/pot/*.pot  
135 -  
136 %files -n glade-catalog-v3270 104 %files -n glade-catalog-v3270
137 %{_datadir}/glade/ 105 %{_datadir}/glade/
138 106