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