From 360f4bf7ead969dbcc828bf495850187fc147801 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 13 Dec 2018 08:56:17 -0200 Subject: [PATCH] Updating package definition files. --- win/mingw32-libv3270.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++-------- win/mingw64-libv3270.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 96 insertions(+), 19 deletions(-) diff --git a/win/mingw32-libv3270.spec b/win/mingw32-libv3270.spec index 4f207c0..6e2e8b7 100644 --- a/win/mingw32-libv3270.spec +++ b/win/mingw32-libv3270.spec @@ -44,8 +44,8 @@ Url: https://portal.softwarepublico.gov.br/social/pw3270/ Group: Development/Libraries/C and C++ BuildRoot: /var/tmp/%{name}-%{version} -Provides: mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION} -Conflicts: otherproviders(mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) +Provides: mingw32-libv3270 +Conflicts: otherproviders(mingw32-libv3270) BuildRequires: autoconf BuildRequires: automake @@ -64,7 +64,7 @@ BuildRequires: mingw32(pkg:gtk+-win32-3.0) BuildRequires: mingw32(lib:iconv) BuildRequires: mingw32(lib:intl) -BuildRequires: mingw32(pkg:lib3270) >= 5.2 +BuildRequires: mingw32-lib3270-%{_libvrs}-devel %description @@ -78,7 +78,9 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ Summary: 3270 Virtual Terminal for GTK development files Group: Development/Libraries/C and C++ + Requires: %{name} = %{version} +Requires: mingw32-lib3270-%{_libvrs}-devel Provides: mingw32-libv3270-devel = %{version} Conflicts: otherproviders(mingw32-libv3270-devel) @@ -91,6 +93,26 @@ Originally designed as part of the pw3270 application. See more details at https://softwarepublico.gov.br/social/pw3270/ +%package -n mingw32-glade-catalog-v3270 + +Summary: Glade catalog for the TN3270 terminal emulator library +Group: Development/Libraries/C and C++ + +Requires: libv3270-devel = %{version} +Requires: glade + +%description -n mingw32-glade-catalog-v3270 + +3270 Virtual Terminal for GTK development files. + +Originally designed as part of the pw3270 application. + +This package provides a catalog for Glade, to allow the use of V3270 +widgets in Glade. + +See more details at https://softwarepublico.gov.br/social/pw3270/ + + #---[ Build & Install ]----------------------------------------------------------------------------------------------- %prep @@ -107,7 +129,7 @@ make all %{_mingw32_strip} \ --strip-all \ - .bin/libv3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} + .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} %install %{_mingw32_makeinstall} @@ -127,11 +149,27 @@ rm -rf %{buildroot} %files devel %defattr(-,root,root) -%{_mingw32_includedir}/libv3270 -%{_mingw32_includedir}/libv3270.h -%{_mingw32_libdir}/pkgconfig/libv3270.pc +%{_mingw32_includedir}/v3270 +%{_mingw32_includedir}/v3270.h + +%{_mingw32_libdir}/pkgconfig/*.pc +%{_mingw32_libdir}/*.a + +%files -n mingw32-glade-catalog-v3270 +%defattr(-,root,root) -%{_mingw32_libdir}/libv3270.a +%dir %{_mingw32_datadir}/glade +%dir %{_mingw32_datadir}/glade/catalogs +%{_mingw32_datadir}/glade/catalogs/v3270.xml + +%dir %{_mingw32_datadir}/glade/pixmaps +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16 +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22 +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions +%dir %{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions +%{_mingw32_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png +%{_mingw32_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png %changelog diff --git a/win/mingw64-libv3270.spec b/win/mingw64-libv3270.spec index 6f4d966..05315cb 100644 --- a/win/mingw64-libv3270.spec +++ b/win/mingw64-libv3270.spec @@ -1,5 +1,5 @@ # -# spec file for package mingw32-lib3279 +# spec file for package mingw64-libv3270 # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (C) <2008> @@ -32,24 +32,25 @@ #---[ Main package ]-------------------------------------------------------------------------------------------------- Summary: 3270 Virtual Terminal for GTK -Name: mingw64-lib3270-%{_libvrs} +Name: mingw64-libv3270-%{_libvrs} Version: 5.2 Release: 0 License: GPL-2.0 -Source: %{name}-%{version}.tar.xz +Source: %{name}-%{version}.tar.xz Url: https://portal.softwarepublico.gov.br/social/pw3270/ Group: Development/Libraries/C and C++ BuildRoot: /var/tmp/%{name}-%{version} -Provides: mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION} -Conflicts: otherproviders(mingw32-libv3270_%{MAJOR_VERSION}_%{MINOR_VERSION}) +Provides: mingw64-libv3270 +Conflicts: otherproviders(mingw64-libv3270) BuildRequires: autoconf BuildRequires: automake BuildRequires: gettext-tools +BuildRequires: pkgconfig(glib-2.0) BuildRequires: mingw64-cross-binutils BuildRequires: mingw64-cross-gcc @@ -63,7 +64,7 @@ BuildRequires: mingw64(pkg:gtk+-win32-3.0) BuildRequires: mingw64(lib:iconv) BuildRequires: mingw64(lib:intl) -BuildRequires: mingw64(lib:3270) +BuildRequires: mingw64-lib3270-%{_libvrs}-devel %description @@ -77,7 +78,9 @@ See more details at https://softwarepublico.gov.br/social/pw3270/ Summary: 3270 Virtual Terminal for GTK development files Group: Development/Libraries/C and C++ + Requires: %{name} = %{version} +Requires: mingw64-lib3270-%{_libvrs}-devel Provides: mingw64-libv3270-devel = %{version} Conflicts: otherproviders(mingw64-libv3270-devel) @@ -90,6 +93,26 @@ Originally designed as part of the pw3270 application. See more details at https://softwarepublico.gov.br/social/pw3270/ +%package -n mingw64-glade-catalog-v3270 + +Summary: Glade catalog for the TN3270 terminal emulator library +Group: Development/Libraries/C and C++ + +Requires: libv3270-devel = %{version} +Requires: glade + +%description -n mingw64-glade-catalog-v3270 + +3270 Virtual Terminal for GTK development files. + +Originally designed as part of the pw3270 application. + +This package provides a catalog for Glade, to allow the use of V3270 +widgets in Glade. + +See more details at https://softwarepublico.gov.br/social/pw3270/ + + #---[ Build & Install ]----------------------------------------------------------------------------------------------- %prep @@ -106,7 +129,7 @@ make all %{_mingw64_strip} \ --strip-all \ - .bin/libv3270/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} + .bin/Release/*.dll.%{MAJOR_VERSION}.%{MINOR_VERSION} %install %{_mingw64_makeinstall} @@ -126,11 +149,27 @@ rm -rf %{buildroot} %files devel %defattr(-,root,root) -%{_mingw64_includedir}/libv3270 -%{_mingw64_includedir}/libv3270.h -%{_mingw64_libdir}/pkgconfig/libv3270.pc +%{_mingw64_includedir}/v3270 +%{_mingw64_includedir}/v3270.h + +%{_mingw64_libdir}/pkgconfig/*.pc +%{_mingw64_libdir}/*.a + +%files -n mingw64-glade-catalog-v3270 +%defattr(-,root,root) -%{_mingw64_libdir}/libv3270.a +%dir %{_mingw64_datadir}/glade +%dir %{_mingw64_datadir}/glade/catalogs +%{_mingw64_datadir}/glade/catalogs/v3270.xml + +%dir %{_mingw64_datadir}/glade/pixmaps +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16 +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22 +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions +%dir %{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions +%{_mingw64_datadir}/glade/pixmaps/hicolor/16x16/actions/widget-v3270-terminal.png +%{_mingw64_datadir}/glade/pixmaps/hicolor/22x22/actions/widget-v3270-terminal.png %changelog -- libgit2 0.21.2