Commit 4b84a64c67d3111be9d0dc34e167a1b62e32e802

Authored by Perry Werneck
1 parent 034342bb
Exists in master

Incluindo spec para geração de RPM.

Showing 1 changed file with 70 additions and 0 deletions   Show diff stats
php5-pw3270.spec 0 → 100644
... ... @@ -0,0 +1,70 @@
  1 +%define _phpextdir %(php-config --extension-dir)
  2 +%define _phpconf %(php-config | sed 's@ @\\n@g' | grep "^--with-config-file-scan-dir=" | cut -d= -f2)
  3 +
  4 +Summary: PHP5 Extension Module implementing tn3270 protocol
  5 +Name: php5-pw3270
  6 +Version: 5.1
  7 +Release: 0
  8 +License: GPL-2.0
  9 +Source: %{name}-%{version}.tar.bz2
  10 +URL: https://portal.softwarepublico.gov.br/social/pw3270/
  11 +Group: Development/Languages/PHP
  12 +
  13 +BuildRoot: /var/tmp/%{name}-%{version}
  14 +
  15 +BuildRequires: autoconf >= 2.61
  16 +BuildRequires: automake
  17 +BuildRequires: binutils
  18 +BuildRequires: coreutils
  19 +BuildRequires: gcc-c++
  20 +BuildRequires: m4
  21 +BuildRequires: pkgconfig
  22 +BuildRequires: php5-devel
  23 +BuildRequires: pw3270-devel >= 5.1
  24 +
  25 +Requires: pw3270 >= 5.1
  26 +
  27 +%description
  28 +
  29 +This is an extension for acessing 3270 hosts directly
  30 +from PHP apps.
  31 +
  32 +%prep
  33 +
  34 +%setup
  35 +
  36 +export CFLAGS="$RPM_OPT_FLAGS"
  37 +export CXXFLAGS="$RPM_OPT_FLAGS"
  38 +export FFLAGS="$RPM_OPT_FLAGS"
  39 +
  40 +aclocal
  41 +autoconf
  42 +%configure
  43 +
  44 +%build
  45 +make clean
  46 +make Release
  47 +
  48 +%install
  49 +rm -rf $RPM_BUILD_ROOT
  50 +
  51 +%makeinstall
  52 +
  53 +%fdupes $RPM_BUILD_ROOT
  54 +
  55 +%clean
  56 +rm -rf $RPM_BUILD_ROOT
  57 +
  58 +%files
  59 +%defattr(-,root,root)
  60 +%config %{_phpconf}/tn3270.ini
  61 +%{_phpextdir}/*.so
  62 +
  63 +%files -n ooRexx-extension-tn3270
  64 +%{_libdir}/librx3270.*
  65 +%{_datadir}/ooRexx/rx3270.cls
  66 +
  67 +
  68 +%changelog
  69 +
  70 +
... ...