From 4b84a64c67d3111be9d0dc34e167a1b62e32e802 Mon Sep 17 00:00:00 2001 From: PerryWerneck Date: Thu, 15 Dec 2016 22:17:01 -0200 Subject: [PATCH] Incluindo spec para geração de RPM. --- php5-pw3270.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+), 0 deletions(-) create mode 100644 php5-pw3270.spec diff --git a/php5-pw3270.spec b/php5-pw3270.spec new file mode 100644 index 0000000..f17b911 --- /dev/null +++ b/php5-pw3270.spec @@ -0,0 +1,70 @@ +%define _phpextdir %(php-config --extension-dir) +%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2) + +Summary: PHP5 Extension Module implementing tn3270 protocol +Name: php5-pw3270 +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/PHP + +BuildRoot: /var/tmp/%{name}-%{version} + +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: binutils +BuildRequires: coreutils +BuildRequires: gcc-c++ +BuildRequires: m4 +BuildRequires: pkgconfig +BuildRequires: php5-devel +BuildRequires: pw3270-devel >= 5.1 + +Requires: pw3270 >= 5.1 + +%description + +This is an extension for acessing 3270 hosts directly +from PHP apps. + +%prep + +%setup + +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" +export FFLAGS="$RPM_OPT_FLAGS" + +aclocal +autoconf +%configure + +%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) +%config %{_phpconf}/tn3270.ini +%{_phpextdir}/*.so + +%files -n ooRexx-extension-tn3270 +%{_libdir}/librx3270.* +%{_datadir}/ooRexx/rx3270.cls + + +%changelog + + -- libgit2 0.21.2