Commit b0291b9c126759538a3027f0cb9202e8dabf9972

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

Updating rpm control file.

Showing 1 changed file with 14 additions and 17 deletions   Show diff stats
rpm/libipc3270.spec
@@ -16,7 +16,9 @@ @@ -16,7 +16,9 @@
16 # Please submit bugfixes or comments via http://bugs.opensuse.org/ 16 # Please submit bugfixes or comments via http://bugs.opensuse.org/
17 # 17 #
18 18
19 -Summary: lib3270/pw3270 IPC client library. 19 +%define product %(pkg-config --variable=product_name lib3270)
  20 +
  21 +Summary: IPC client library for lib3270/%{product}
20 Name: libipc3270 22 Name: libipc3270
21 Version: 5.2 23 Version: 5.2
22 Release: 0 24 Release: 0
@@ -46,21 +48,16 @@ BuildRequires: pkgconfig(gtk+-3.0) @@ -46,21 +48,16 @@ BuildRequires: pkgconfig(gtk+-3.0)
46 48
47 %else 49 %else
48 50
49 -BuildRequires: lib3270-devel >= 5.2  
50 -BuildRequires: libv3270-devel >= 5.2 51 +BuildRequires: lib3270-devel >= 5.3
  52 +BuildRequires: libv3270-devel >= 5.3
51 BuildRequires: dbus-1-devel 53 BuildRequires: dbus-1-devel
52 BuildRequires: dbus-glib-devel 54 BuildRequires: dbus-glib-devel
53 BuildRequires: gtk3-devel 55 BuildRequires: gtk3-devel
54 56
55 %endif 57 %endif
56 58
57 -%if 0%{?centos_version}  
58 -# centos requires python for genmarshal  
59 -BuildRequires: python  
60 -%endif  
61 -  
62 %description 59 %description
63 -IPC client library for lib3270/pw3270. 60 +IPC client library for lib3270/%{product}.
64 61
65 Designed as framework for language bindings. 62 Designed as framework for language bindings.
66 63
@@ -68,13 +65,12 @@ For more details, see https://github.com/PerryWerneck/libipc3270 . @@ -68,13 +65,12 @@ For more details, see https://github.com/PerryWerneck/libipc3270 .
68 65
69 #---[ Library ]------------------------------------------------------------------------------------------------------- 66 #---[ Library ]-------------------------------------------------------------------------------------------------------
70 67
71 -%define product %(pkg-config --variable=product_name lib3270)  
72 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1) 68 %define MAJOR_VERSION %(echo %{version} | cut -d. -f1)
73 -%define MINOR_VERSION %(echo %{version} | cut -d. -f2) 69 +%define MINOR_VERSION %(echo %{version} | cut -d. -f2 | cut -d+ -f1)
74 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} 70 %define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
75 71
76 %package -n %{name}-%{_libvrs} 72 %package -n %{name}-%{_libvrs}
77 -Summary: IPC Library for pw3270 73 +Summary: IPC Library for %{product}
78 Group: Development/Libraries/C and C++ 74 Group: Development/Libraries/C and C++
79 75
80 %if 0%{?suse_version} 76 %if 0%{?suse_version}
@@ -82,7 +78,7 @@ Recommends: lib3270-ipc-service @@ -82,7 +78,7 @@ Recommends: lib3270-ipc-service
82 %endif 78 %endif
83 79
84 %description -n %{name}-%{_libvrs} 80 %description -n %{name}-%{_libvrs}
85 -IPC client library for lib3270/pw3270. 81 +IPC client library for lib3270/%{product}.
86 82
87 Designed as framework for language bindings. 83 Designed as framework for language bindings.
88 84
@@ -95,14 +91,14 @@ Summary: Development files for %{name} @@ -95,14 +91,14 @@ Summary: Development files for %{name}
95 Requires: %{name}-%{_libvrs} = %{version} 91 Requires: %{name}-%{_libvrs} = %{version}
96 92
97 %if 0%{?fedora} || 0%{?suse_version} > 1200 93 %if 0%{?fedora} || 0%{?suse_version} > 1200
98 -Requires: pkgconfig(lib3270) 94 +Requires: pkgconfig(lib3270) >= 5.3
99 %else 95 %else
100 -Requires: lib3270-devel 96 +Requires: lib3270-devel >= 5.3
101 %endif 97 %endif
102 98
103 %description -n libipc3270-devel 99 %description -n libipc3270-devel
104 100
105 -Development files for lib3270/pw3270 IPC client library. 101 +Development files for lib3270/%{product} IPC client library.
106 102
107 For more details, see https://github.com/PerryWerneck/libipc3270 . 103 For more details, see https://github.com/PerryWerneck/libipc3270 .
108 104
@@ -117,7 +113,7 @@ Conflicts: otherproviders(pw3270-plugin-dbus) @@ -117,7 +113,7 @@ Conflicts: otherproviders(pw3270-plugin-dbus)
117 Provides: lib3270-ipc-service 113 Provides: lib3270-ipc-service
118 Conflicts: otherproviders(lib3270-ipc-service) 114 Conflicts: otherproviders(lib3270-ipc-service)
119 115
120 -Requires: %{product} >= 5.2 116 +Requires: %{product} >= 5.3
121 117
122 %description -n %{product}-plugin-ipc 118 %description -n %{product}-plugin-ipc
123 119
@@ -167,6 +163,7 @@ make all @@ -167,6 +163,7 @@ make all
167 %{_includedir}/lib3270/ipc/*.h 163 %{_includedir}/lib3270/ipc/*.h
168 %{_libdir}/%{name}.so 164 %{_libdir}/%{name}.so
169 %{_libdir}/pkgconfig/*.pc 165 %{_libdir}/pkgconfig/*.pc
  166 +%{_datadir}/%{product}/pot/*.pot
170 167
171 %pre -n %{name}-%{_libvrs} -p /sbin/ldconfig 168 %pre -n %{name}-%{_libvrs} -p /sbin/ldconfig
172 169