Commit a135980559d950d9eba696742bdcbc4742d8906d

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

Updating RPM package.

Showing 2 changed files with 181 additions and 170 deletions   Show diff stats
rpm/libipc3270.spec 0 → 100644
@@ -0,0 +1,181 @@ @@ -0,0 +1,181 @@
  1 +#
  2 +# spec file for package libipc3270
  3 +#
  4 +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
  5 +# Copyright (C) <2008> <Banco do Brasil S.A.>
  6 +#
  7 +# All modifications and additions to the file contributed by third parties
  8 +# remain the property of their copyright owners, unless otherwise agreed
  9 +# upon. The license for this file, and modifications and additions to the
  10 +# file, is the same license as for the pristine package itself (unless the
  11 +# license for the pristine package is not an Open Source License, in which
  12 +# case the license is the MIT License). An "Open Source License" is a
  13 +# license that conforms to the Open Source Definition (Version 1.9)
  14 +# published by the Open Source Initiative.
  15 +
  16 +# Please submit bugfixes or comments via http://bugs.opensuse.org/
  17 +#
  18 +
  19 +Summary: lib3270/pw3270 IPC client library.
  20 +Name: libipc3270
  21 +Version: 5.2
  22 +Release: 0
  23 +License: LGPL-3.0
  24 +Source: %{name}-%{version}.tar.xz
  25 +
  26 +Url: https://github.com/PerryWerneck/pw3270-plugin-ipc.git
  27 +
  28 +Group: System/X11/Terminals
  29 +BuildRoot: /var/tmp/%{name}-%{version}
  30 +
  31 +BuildRequires: autoconf >= 2.61
  32 +BuildRequires: automake
  33 +BuildRequires: binutils
  34 +BuildRequires: coreutils
  35 +BuildRequires: gcc-c++
  36 +BuildRequires: gettext-devel
  37 +BuildRequires: m4
  38 +
  39 +%if 0%{?fedora} || 0%{?suse_version} > 1200
  40 +
  41 +BuildRequires: pkgconfig(lib3270)
  42 +BuildRequires: pkgconfig(libv3270)
  43 +BuildRequires: pkgconfig(dbus-1)
  44 +BuildRequires: pkgconfig(dbus-glib-1)
  45 +BuildRequires: pkgconfig(gtk+-3.0)
  46 +
  47 +%else
  48 +
  49 +BuildRequires: lib3270-devel >= 5.2
  50 +BuildRequires: libv3270-devel >= 5.2
  51 +BuildRequires: dbus-1-devel
  52 +BuildRequires: dbus-glib-devel
  53 +BuildRequires: gtk3-devel
  54 +
  55 +%endif
  56 +
  57 +%if 0%{?centos_version}
  58 +# centos requires python for genmarshal
  59 +BuildRequires: python
  60 +%endif
  61 +
  62 +%description
  63 +
  64 +IPC client library for lib3270/pw3270.
  65 +
  66 +Designed as framework for language bindings.
  67 +
  68 +See more details at https://softwarepublico.gov.br/social/pw3270/
  69 +
  70 +#---[ Library ]-------------------------------------------------------------------------------------------------------
  71 +
  72 +%define product %(pkg-config --variable=product_name lib3270)
  73 +%define MAJOR_VERSION %(echo %{version} | cut -d. -f1)
  74 +%define MINOR_VERSION %(echo %{version} | cut -d. -f2)
  75 +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION}
  76 +
  77 +%package -n %{name}-%{_libvrs}
  78 +Summary: IPC Library for pw3270
  79 +Group: Development/Libraries/C and C++
  80 +
  81 +%if 0%{?suse_version}
  82 +Recommends: lib3270-ipc-service
  83 +%endif
  84 +
  85 +%description -n %{name}-%{_libvrs}
  86 +
  87 +IPC client library for lib3270/pw3270.
  88 +
  89 +Designed as framework for language bindings.
  90 +
  91 +See more details at https://softwarepublico.gov.br/social/pw3270/
  92 +
  93 +#---[ Development ]---------------------------------------------------------------------------------------------------
  94 +
  95 +%package devel
  96 +Summary: Development files for %{name}
  97 +Requires: %{name}-%{_libvrs} = %{version}
  98 +
  99 +%if 0%{?fedora} || 0%{?suse_version} > 1200
  100 +Requires: pkgconfig(lib3270)
  101 +%else
  102 +Requires: lib3270-devel
  103 +%endif
  104 +
  105 +%description -n libipc3270-devel
  106 +
  107 +Development files for lib3270/pw3270 IPC client library.
  108 +
  109 +Designed as a support tool for language bindings.
  110 +
  111 +#---[ Plugin module for pw3270 main application ]----------------------------------------------------------------------
  112 +
  113 +%package -n %{product}-plugin-ipc
  114 +Summary: IPC service plugin for %{product}
  115 +
  116 +Provides: pw3270-plugin-dbus
  117 +Conflicts: otherproviders(pw3270-plugin-dbus)
  118 +
  119 +Provides: lib3270-ipc-service
  120 +Conflicts: otherproviders(lib3270-ipc-service)
  121 +
  122 +Requires: %{product} >= 5.2
  123 +
  124 +%description -n %{product}-plugin-ipc
  125 +
  126 +PW3270 plugin exporting D-Bus objects for every tn3270 session.
  127 +
  128 +See more details at https://softwarepublico.gov.br/social/pw3270/
  129 +
  130 +
  131 +#---[ Build & Install ]-----------------------------------------------------------------------------------------------
  132 +
  133 +%prep
  134 +%setup
  135 +
  136 +NOCONFIGURE=1 \
  137 + ./autogen.sh
  138 +
  139 +%configure
  140 +
  141 +%build
  142 +make all
  143 +
  144 +%install
  145 +%makeinstall
  146 +
  147 +%files -n %{product}-plugin-ipc
  148 +%defattr(-,root,root)
  149 +
  150 +# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros
  151 +%if 0%{?sle_version} > 120200
  152 +%doc AUTHORS README.md
  153 +%license LICENSE
  154 +%else
  155 +%doc AUTHORS README.md LICENSE
  156 +%endif
  157 +
  158 +%dir %{_libdir}/%{product}-plugins
  159 +%{_libdir}/%{product}-plugins/ipcserver.so
  160 +
  161 +%files -n %{name}-%{_libvrs}
  162 +%defattr(-,root,root)
  163 +%{_libdir}/%{name}.so.%{MAJOR_VERSION}.%{MINOR_VERSION}
  164 +%{_libdir}/%{name}.so.%{MAJOR_VERSION}
  165 +
  166 +%files devel
  167 +%defattr(-,root,root)
  168 +%{_includedir}/lib3270/ipc.h
  169 +%dir %{_includedir}/lib3270/ipc
  170 +%{_includedir}/lib3270/ipc/*.h
  171 +%{_libdir}/%{name}.so
  172 +%{_libdir}/pkgconfig/*.pc
  173 +
  174 +%pre -n %{name}-%{_libvrs} -p /sbin/ldconfig
  175 +
  176 +%post -n %{name}-%{_libvrs} -p /sbin/ldconfig
  177 +
  178 +%postun -n %{name}-%{_libvrs} -p /sbin/ldconfig
  179 +
  180 +%changelog
  181 +
rpm/pw3270-plugin-ipc.spec
@@ -1,170 +0,0 @@ @@ -1,170 +0,0 @@
1 -#  
2 -# spec file for packages pw3270-plugin-ipc  
3 -#  
4 -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.  
5 -# Copyright (C) <2008> <Banco do Brasil S.A.>  
6 -#  
7 -# All modifications and additions to the file contributed by third parties  
8 -# remain the property of their copyright owners, unless otherwise agreed  
9 -# upon. The license for this file, and modifications and additions to the  
10 -# file, is the same license as for the pristine package itself (unless the  
11 -# license for the pristine package is not an Open Source License, in which  
12 -# case the license is the MIT License). An "Open Source License" is a  
13 -# license that conforms to the Open Source Definition (Version 1.9)  
14 -# published by the Open Source Initiative.  
15 -  
16 -# Please submit bugfixes or comments via http://bugs.opensuse.org/  
17 -#  
18 -  
19 -#---[ Versions ]------------------------------------------------------------------------------------------------------  
20 -  
21 -%define MAJOR_VERSION 5  
22 -%define MINOR_VERSION 2  
23 -  
24 -#---[ Macros ]--------------------------------------------------------------------------------------------------------  
25 -  
26 -%if ! %{defined _release}  
27 - %define _release suse%{suse_version}  
28 -%endif  
29 -  
30 -#---[ Main package ]--------------------------------------------------------------------------------------------------  
31 -  
32 -Summary: D-Bus based IPC plugin for pw3270  
33 -Name: pw3270-plugin-ipc  
34 -Version: 5.2  
35 -Release: 0  
36 -License: LGPL-3.0  
37 -Source: %{name}-%{version}.tar.xz  
38 -  
39 -Url: https://portal.softwarepublico.gov.br/social/pw3270/  
40 -  
41 -Group: System/X11/Terminals  
42 -BuildRoot: /var/tmp/%{name}-%{version}  
43 -  
44 -Provides: pw3270-plugin-dbus  
45 -Conflicts: otherproviders(pw3270-plugin-dbus)  
46 -  
47 -Provides: lib3270-ipc-service  
48 -  
49 -Requires: pw3270 >= 5.2  
50 -  
51 -BuildRequires: lib3270-devel >= 5.2  
52 -BuildRequires: libv3270-devel >= 5.2  
53 -BuildRequires: autoconf >= 2.61  
54 -BuildRequires: automake  
55 -BuildRequires: binutils  
56 -BuildRequires: coreutils  
57 -BuildRequires: gcc-c++  
58 -BuildRequires: gettext-devel  
59 -BuildRequires: m4  
60 -  
61 -%if 0%{?fedora} || 0%{?suse_version} > 1200  
62 -  
63 -BuildRequires: pkgconfig(openssl)  
64 -BuildRequires: pkgconfig(dbus-1)  
65 -BuildRequires: pkgconfig(dbus-glib-1)  
66 -BuildRequires: pkgconfig(gtk+-3.0)  
67 -  
68 -%else  
69 -  
70 -BuildRequires: openssl-devel  
71 -BuildRequires: dbus-1-devel  
72 -BuildRequires: dbus-glib-devel  
73 -BuildRequires: gtk3-devel  
74 -  
75 -%endif  
76 -  
77 -%if 0%{?centos_version}  
78 -# centos requires python for genmarshal  
79 -BuildRequires: python  
80 -%endif  
81 -  
82 -%description  
83 -  
84 -PW3270 plugin exporting D-Bus objects for every tn3270 session.  
85 -  
86 -See more details at https://softwarepublico.gov.br/social/pw3270/  
87 -  
88 -#---[ IPC Library Package ]-------------------------------------------------------------------------------------------  
89 -  
90 -%package -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
91 -Summary: IPC Library for pw3270  
92 -Recommends: lib3270-ipc-service  
93 -  
94 -%description -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
95 -  
96 -IPC client library for lib3270/pw3270.  
97 -  
98 -Designed as a support tool for language bindings.  
99 -  
100 -%package -n libipc3270-devel  
101 -Summary: Development files for ipc3270  
102 -Requires: libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
103 -Requires: pkgconfig(lib3270)  
104 -  
105 -%description -n libipc3270-devel  
106 -  
107 -Development files for lib3270/pw3270 IPC client library.  
108 -  
109 -Designed as a support tool for language bindings.  
110 -  
111 -  
112 -#---[ Build & Install ]-----------------------------------------------------------------------------------------------  
113 -  
114 -%prep  
115 -%setup  
116 -  
117 -NOCONFIGURE=1 ./autogen.sh  
118 -  
119 -%configure  
120 -  
121 -%build  
122 -make clean  
123 -make all  
124 -  
125 -%install  
126 -rm -rf $RPM_BUILD_ROOT  
127 -  
128 -%makeinstall  
129 -  
130 -%files  
131 -%defattr(-,root,root)  
132 -  
133 -# https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros  
134 -%if 0%{?sle_version} > 120200  
135 -%doc AUTHORS README.md  
136 -%license LICENSE  
137 -%else  
138 -%doc AUTHORS README.md LICENSE  
139 -%endif  
140 -  
141 -%dir %{_libdir}/pw3270-plugins  
142 -%{_libdir}/pw3270-plugins/ipcserver.so  
143 -  
144 -%files -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
145 -%defattr(-,root,root)  
146 -%{_libdir}/libipc3270.so.%{MAJOR_VERSION}.%{MINOR_VERSION}  
147 -%{_libdir}/libipc3270.so.%{MAJOR_VERSION}  
148 -  
149 -%files -n libipc3270-devel  
150 -%defattr(-,root,root)  
151 -%{_includedir}/lib3270/ipc.h  
152 -%dir %{_includedir}/lib3270/ipc  
153 -%{_includedir}/lib3270/ipc/*.h  
154 -%{_libdir}/libipc3270.so  
155 -%{_libdir}/pkgconfig/ipc3270.pc  
156 -  
157 -%pre -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
158 -/sbin/ldconfig  
159 -exit 0  
160 -  
161 -%post -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
162 -/sbin/ldconfig  
163 -exit 0  
164 -  
165 -%postun -n libipc3270-%{MAJOR_VERSION}_%{MINOR_VERSION}  
166 -/sbin/ldconfig  
167 -exit 0  
168 -  
169 -%changelog  
170 -