Commit 8a46c50a5ea070e25c2a2ad1dbc8d5dc41ec73fd
1 parent
07b2236c
Exists in
master
and in
1 other branch
Building spec file.
Showing
3 changed files
with
140 additions
and
0 deletions
Show diff stats
Makefile.in
| @@ -211,6 +211,9 @@ $(BINRLS)/$(MODULE_NAME)@DLLEXT@: \ | @@ -211,6 +211,9 @@ $(BINRLS)/$(MODULE_NAME)@DLLEXT@: \ | ||
| 211 | 211 | ||
| 212 | #---[ Install Targets ]------------------------------------------------------------------ | 212 | #---[ Install Targets ]------------------------------------------------------------------ |
| 213 | 213 | ||
| 214 | +install: \ | ||
| 215 | + install-plugin | ||
| 216 | + | ||
| 214 | install-plugin: \ | 217 | install-plugin: \ |
| 215 | $(BINRLS)/$(MODULE_NAME)@DLLEXT@ | 218 | $(BINRLS)/$(MODULE_NAME)@DLLEXT@ |
| 216 | 219 |
| @@ -0,0 +1,26 @@ | @@ -0,0 +1,26 @@ | ||
| 1 | +<services> | ||
| 2 | + | ||
| 3 | + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | ||
| 4 | + <service name="tar_scm"> | ||
| 5 | + <param name="changesgenerate">enable</param> | ||
| 6 | + <param name="sslverify">disable</param> | ||
| 7 | + <param name="versionformat">%ct</param> | ||
| 8 | + <!-- param name="version">5.2</param --> | ||
| 9 | + <param name="url">https://softwarepublico.gov.br/gitlab/pw3270/pw3270-plugin-ipc.git</param> | ||
| 10 | + <param name="scm">git</param> | ||
| 11 | + </service> | ||
| 12 | + | ||
| 13 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | ||
| 14 | + <service name="extract_file"> | ||
| 15 | + <param name="archive">*.tar</param> | ||
| 16 | + <param name="files">*/rpm/*.spec</param> | ||
| 17 | + </service> | ||
| 18 | + | ||
| 19 | + <service name="recompress"> | ||
| 20 | + <param name="file">*.tar</param> | ||
| 21 | + <param name="compression">xz</param> | ||
| 22 | + </service> | ||
| 23 | + | ||
| 24 | + <service name="set_version" /> | ||
| 25 | + | ||
| 26 | +</services> |
| @@ -0,0 +1,111 @@ | @@ -0,0 +1,111 @@ | ||
| 1 | +# | ||
| 2 | +# spec file for packages libv3270 | ||
| 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 | +%define _libvrs %{MAJOR_VERSION}_%{MINOR_VERSION} | ||
| 25 | + | ||
| 26 | +#Compat macro for new _fillupdir macro introduced in Nov 2017 | ||
| 27 | +%if ! %{defined _fillupdir} | ||
| 28 | + %define _fillupdir /var/adm/fillup-templates | ||
| 29 | +%endif | ||
| 30 | + | ||
| 31 | +#---[ Macros ]-------------------------------------------------------------------------------------------------------- | ||
| 32 | + | ||
| 33 | +%if ! %{defined _release} | ||
| 34 | + %define _release suse%{suse_version} | ||
| 35 | +%endif | ||
| 36 | + | ||
| 37 | +#---[ Main package ]-------------------------------------------------------------------------------------------------- | ||
| 38 | + | ||
| 39 | +Summary: D-Bus based IPC plugin for pw3270 | ||
| 40 | +Name: pw3270-plugin-ipc | ||
| 41 | +Version: 5.2 | ||
| 42 | +Release: 0 | ||
| 43 | +License: LGPL-3.0 | ||
| 44 | +Source: %{name}-%{version}.tar.xz | ||
| 45 | + | ||
| 46 | +Url: https://portal.softwarepublico.gov.br/social/pw3270/ | ||
| 47 | + | ||
| 48 | +Group: System/X11/Terminals | ||
| 49 | +BuildRoot: /var/tmp/%{name}-%{version} | ||
| 50 | + | ||
| 51 | +Provides: pw3270-plugin-dbus | ||
| 52 | +Conflicts: otherproviders(pw3270-plugin-dbus) | ||
| 53 | + | ||
| 54 | +BuildRequires: pkgconfig(openssl) | ||
| 55 | +BuildRequires: pkgconfig(dbus-1) | ||
| 56 | +BuildRequires: pkgconfig(dbus-glib-1) | ||
| 57 | +BuildRequires: libv3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel | ||
| 58 | +BuildRequires: lib3270-%{MAJOR_VERSION}_%{MINOR_VERSION}-devel | ||
| 59 | +BuildRequires: autoconf >= 2.61 | ||
| 60 | +BuildRequires: automake | ||
| 61 | +BuildRequires: binutils | ||
| 62 | +BuildRequires: coreutils | ||
| 63 | +BuildRequires: gcc-c++ | ||
| 64 | +BuildRequires: gettext-devel | ||
| 65 | +BuildRequires: m4 | ||
| 66 | + | ||
| 67 | +%description | ||
| 68 | + | ||
| 69 | +PW3270 plugin exporting D-Bus objects for every tn3270 session. | ||
| 70 | + | ||
| 71 | +See more details at https://softwarepublico.gov.br/social/pw3270/ | ||
| 72 | + | ||
| 73 | +#---[ Build & Install ]----------------------------------------------------------------------------------------------- | ||
| 74 | + | ||
| 75 | +%prep | ||
| 76 | +%setup | ||
| 77 | + | ||
| 78 | +NOCONFIGURE=1 ./autogen.sh | ||
| 79 | + | ||
| 80 | +%configure \ | ||
| 81 | + --with-sdk-version=%{version} | ||
| 82 | + | ||
| 83 | +%build | ||
| 84 | +make clean | ||
| 85 | +make all | ||
| 86 | + | ||
| 87 | +%install | ||
| 88 | +rm -rf $RPM_BUILD_ROOT | ||
| 89 | + | ||
| 90 | +%makeinstall | ||
| 91 | + | ||
| 92 | +%files | ||
| 93 | +%defattr(-,root,root) | ||
| 94 | +%doc AUTHORS LICENSE README.md | ||
| 95 | + | ||
| 96 | +%{_libdir}/pw3270-plugin/ipc3270.so | ||
| 97 | + | ||
| 98 | +%pre | ||
| 99 | +/sbin/ldconfig | ||
| 100 | +exit 0 | ||
| 101 | + | ||
| 102 | +%post | ||
| 103 | +/sbin/ldconfig | ||
| 104 | +exit 0 | ||
| 105 | + | ||
| 106 | +%postun | ||
| 107 | +/sbin/ldconfig | ||
| 108 | +exit 0 | ||
| 109 | + | ||
| 110 | +%changelog | ||
| 111 | + |