diff --git a/.gitignore b/.gitignore index caa3814..1e1473e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,10 +15,15 @@ stamp-h1 *.zip *.tar *.bz2 -rpm *.pc *.depend ChangeLog revision revision.m4 +BUILD +BUILDROOT +RPMS +SOURCES +SPECS +SRPMS diff --git a/Makefile.in b/Makefile.in index 77b9c3a..0ed80a1 100644 --- a/Makefile.in +++ b/Makefile.in @@ -144,7 +144,6 @@ $(SRCDIR): \ @cp *.in $(SRCDIR) @cp *.cbp $(SRCDIR) @cp *.sh $(SRCDIR) - @cp *.spec $(SRCDIR) @cp README.md $(SRCDIR) @cp LICENCA $(SRCDIR) @cp LICENSE $(SRCDIR) @@ -152,6 +151,11 @@ $(SRCDIR): \ # @$(MKDIR) $(SRCDIR)/testprograms # @cp testprograms/* $(SRCDIR)/testprograms + @cp rpm/*.spec $(SRCDIR) + + @$(MKDIR) $(SRCDIR)/debian + @cp debian/* $(SRCDIR)/debian + @$(MKDIR) $(SRCDIR)/scripts @cp scripts/* $(SRCDIR)/scripts diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0e34198 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +pw3270-plugin-rexx (5.1-0) unstable; urgency=low + + * Unstable release + + -- Perry Werneck Thu, 19 Apr 2016 17:38:00 -0300 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..25b9ca8 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: pw3270-plugin-rexx +Section: unknown +Priority: optional +Maintainer: Perry Werneck +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, libgtk-3-dev, pw3270-dev, oorexx-dev (>= 4.2.0) + +Package: pw3270-plugin-rexx +Architecture: any +Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), oorexx (>= 4.2.0), oorexx-extension-pw3270 (= ${binary:Version}) +Description: REXX script support for pw3270. + This package provides the plugin for ooRexx script support in pw3270 + +Package: oorexx-extension-pw3270 +Architecture: any +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx (>= 4.2.0) +Description: tn3270 REXX library. + This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. + + diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..a64fd7e --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + set + + echo "m4_define([SVN_REVISION], 0)" > revision.m4 + echo "m4_define([SVN_URL], http://softwarepublico.gov.br/gitlab/pw3270/principal.git)" >> revision.m4 + echo "m4_define([APP_LEVEL], 0)" >> revision.m4 + + # Add here commands to compile the package. + aclocal + autoconf + + ./configure + + rm -f debian/*.install + make clean + make Release + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + if [ -e Makefile ]; then make clean ; fi + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Install ooRexx extension + make DESTDIR=$(PWD)/debian/extension install-extension + + # Install pw3270's plugin + make DESTDIR=$(PWD)/debian/plugin install-plugin + + # Create updated file lists + find $(PWD)/debian/extension -type f | sed -e "s@^$(PWD)/debian/extension/@/@g" > $(PWD)/debian/oorexx-extension-pw3270.install + find $(PWD)/debian/plugin -type f | sed -e "s@^$(PWD)/debian/plugin/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install + + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/pw3270-plugin-rexx.spec b/pw3270-plugin-rexx.spec deleted file mode 100644 index 1697a12..0000000 --- a/pw3270-plugin-rexx.spec +++ /dev/null @@ -1,86 +0,0 @@ -Summary: Plugin module for ooRexx scripts. -Name: pw3270-plugin-rexx -Version: 5.1 -Release: 0 -License: GPL-2.0 -Source: %{name}-%{version}.tar.bz2 -URL: https://portal.softwarepublico.gov.br/social/pw3270/ -Group: Development/Languages/Rexx - -BuildRoot: /var/tmp/%{name}-%{version} - -BuildRequires: ooRexx-devel -BuildRequires: autoconf >= 2.61 -BuildRequires: automake -BuildRequires: binutils -BuildRequires: coreutils -BuildRequires: gcc-c++ -BuildRequires: m4 -BuildRequires: pkgconfig -BuildRequires: pw3270-devel >= 5.1 - -Requires: pw3270 >= 5.1 -Requires: ooRexx-extension-tn3270 = %{version} - -%description - -Plugin module for ooRexx plugins in pw3270. - -This package provides a pw3270 plugin allowing use o rexx scripts -directly from pw3270 main window. - -%package -n ooRexx-extension-tn3270 - -Summary: ooRexx API for tn3270 acesss using pw3270 ou lib3270 -Group: Development/Languages/Other -Requires: lib3270 >= 5.1 -Requires: ooRexx >= 4.2 - -%description -n ooRexx-extension-tn3270 - -This package provides Rexx class and associated libraries -allowing rexx scripts to access tn3270e hosts. - - -%prep - -%setup - -export CFLAGS="$RPM_OPT_FLAGS" -export CXXFLAGS="$RPM_OPT_FLAGS" -export FFLAGS="$RPM_OPT_FLAGS" - -aclocal -autoconf -%configure - -# No dev packet -rm -f $RPM_BUILD_ROOT/%{_libdir}/librx3270.so - -%build -make clean -make Release - -%install -rm -rf $RPM_BUILD_ROOT - -%makeinstall - -%fdupes $RPM_BUILD_ROOT - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%{_libdir}/pw3270-plugins/prx3270.so -%{_datadir}/pw3270/ui/80rexx.xml - -%files -n ooRexx-extension-tn3270 -%{_libdir}/librx3270.* -%{_datadir}/ooRexx/rx3270.cls - - -%changelog - - diff --git a/rpm/pw3270-plugin-rexx.spec b/rpm/pw3270-plugin-rexx.spec new file mode 100644 index 0000000..1697a12 --- /dev/null +++ b/rpm/pw3270-plugin-rexx.spec @@ -0,0 +1,86 @@ +Summary: Plugin module for ooRexx scripts. +Name: pw3270-plugin-rexx +Version: 5.1 +Release: 0 +License: GPL-2.0 +Source: %{name}-%{version}.tar.bz2 +URL: https://portal.softwarepublico.gov.br/social/pw3270/ +Group: Development/Languages/Rexx + +BuildRoot: /var/tmp/%{name}-%{version} + +BuildRequires: ooRexx-devel +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc-c++ +BuildRequires: m4 +BuildRequires: pkgconfig +BuildRequires: pw3270-devel >= 5.1 + +Requires: pw3270 >= 5.1 +Requires: ooRexx-extension-tn3270 = %{version} + +%description + +Plugin module for ooRexx plugins in pw3270. + +This package provides a pw3270 plugin allowing use o rexx scripts +directly from pw3270 main window. + +%package -n ooRexx-extension-tn3270 + +Summary: ooRexx API for tn3270 acesss using pw3270 ou lib3270 +Group: Development/Languages/Other +Requires: lib3270 >= 5.1 +Requires: ooRexx >= 4.2 + +%description -n ooRexx-extension-tn3270 + +This package provides Rexx class and associated libraries +allowing rexx scripts to access tn3270e hosts. + + +%prep + +%setup + +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +export FFLAGS="$RPM_OPT_FLAGS" + +aclocal +autoconf +%configure + +# No dev packet +rm -f $RPM_BUILD_ROOT/%{_libdir}/librx3270.so + +%build +make clean +make Release + +%install +rm -rf $RPM_BUILD_ROOT + +%makeinstall + +%fdupes $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%{_libdir}/pw3270-plugins/prx3270.so +%{_datadir}/pw3270/ui/80rexx.xml + +%files -n ooRexx-extension-tn3270 +%{_libdir}/librx3270.* +%{_datadir}/ooRexx/rx3270.cls + + +%changelog + + -- libgit2 0.21.2