diff --git a/rpm/_service b/rpm/_service new file mode 100644 index 0000000..8ea5a8a --- /dev/null +++ b/rpm/_service @@ -0,0 +1,25 @@ + + + + + enable + disable + @PARENT_TAG@ + http://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5.git + git + + + + + + + *.tar + xz + + + + + diff --git a/rpm/lib3270-php5-bindings.spec b/rpm/lib3270-php5-bindings.spec new file mode 100644 index 0000000..87826f1 --- /dev/null +++ b/rpm/lib3270-php5-bindings.spec @@ -0,0 +1,72 @@ +e%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: lib3270-php5-bindings +Version: 5.2 +Release: 0 +License: GPL-2.0 +Source: pw3270-php5.tar.xz +URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5 +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: pkgconfig(pw3270) >= 5.2 +BuildRequires: fdupes + +# Pre-Reqs PHP5 +BuildRequires: systemd-devel +BuildRequires: libapparmor-devel +BuildRequires: php5-devel + +Requires: lib3270-5_2 +Requires: php5 +Requires: dbus-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) +%doc README.md +%config %{_phpconf}/tn3270.ini +%{_phpextdir}/*.so + +%changelog + diff --git a/rpm/php5-pw3270.spec b/rpm/php5-pw3270.spec deleted file mode 100644 index a258f5a..0000000 --- a/rpm/php5-pw3270.spec +++ /dev/null @@ -1,72 +0,0 @@ -%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://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5 -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: pkgconfig(pw3270) >= 5.1 -BuildRequires: fdupes - -# Pre-Reqs PHP5 -BuildRequires: systemd-devel -BuildRequires: libapparmor-devel -BuildRequires: php5-devel - -Requires: lib3270-5_1 -Requires: php5 -Requires: dbus-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) -%doc README.md -%config %{_phpconf}/tn3270.ini -%{_phpextdir}/*.so - -%changelog - -- libgit2 0.21.2