Commit 0babdb1f92c7e96f5efa34d6be6f32e9e2f16de7
1 parent
02fad81c
Exists in
master
Updating PHP5 binding.
Showing
3 changed files
with
97 additions
and
72 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,25 @@ |
| 1 | +<services> | |
| 2 | + | |
| 3 | + <!-- https://github.com/openSUSE/obs-service-tar_scm/blob/master/tar_scm.py --> | |
| 4 | + <service name="tar_scm"> | |
| 5 | + <param name="changesgenerate">enable</param> | |
| 6 | + <param name="sslverify">disable</param> | |
| 7 | + <param name="versionformat">@PARENT_TAG@</param> | |
| 8 | + <param name="url">http://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5.git</param> | |
| 9 | + <param name="scm">git</param> | |
| 10 | + </service> | |
| 11 | + | |
| 12 | + <!-- https://github.com/openSUSE/obs-service-extract_file --> | |
| 13 | + <!-- service name="extract_file"> | |
| 14 | + <param name="archive">*.tar</param> | |
| 15 | + <param name="files">*/rpm/*.spec</param> | |
| 16 | + </service --> | |
| 17 | + | |
| 18 | + <service name="recompress"> | |
| 19 | + <param name="file">*.tar</param> | |
| 20 | + <param name="compression">xz</param> | |
| 21 | + </service> | |
| 22 | + | |
| 23 | + <service name="set_version" /> | |
| 24 | + | |
| 25 | +</services> | ... | ... |
| ... | ... | @@ -0,0 +1,72 @@ |
| 1 | +e%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: lib3270-php5-bindings | |
| 6 | +Version: 5.2 | |
| 7 | +Release: 0 | |
| 8 | +License: GPL-2.0 | |
| 9 | +Source: pw3270-php5.tar.xz | |
| 10 | +URL: https://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5 | |
| 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: pkgconfig(pw3270) >= 5.2 | |
| 23 | +BuildRequires: fdupes | |
| 24 | + | |
| 25 | +# Pre-Reqs PHP5 | |
| 26 | +BuildRequires: systemd-devel | |
| 27 | +BuildRequires: libapparmor-devel | |
| 28 | +BuildRequires: php5-devel | |
| 29 | + | |
| 30 | +Requires: lib3270-5_2 | |
| 31 | +Requires: php5 | |
| 32 | +Requires: dbus-1 | |
| 33 | + | |
| 34 | +%description | |
| 35 | + | |
| 36 | +This is an extension for acessing 3270 hosts directly | |
| 37 | +from PHP apps. | |
| 38 | + | |
| 39 | +%prep | |
| 40 | + | |
| 41 | +%setup | |
| 42 | + | |
| 43 | +export CFLAGS="$RPM_OPT_FLAGS" | |
| 44 | +export CXXFLAGS="$RPM_OPT_FLAGS" | |
| 45 | +export FFLAGS="$RPM_OPT_FLAGS" | |
| 46 | + | |
| 47 | +aclocal | |
| 48 | +autoconf | |
| 49 | +%configure | |
| 50 | + | |
| 51 | +%build | |
| 52 | +make clean | |
| 53 | +make Release | |
| 54 | + | |
| 55 | +%install | |
| 56 | +rm -rf $RPM_BUILD_ROOT | |
| 57 | + | |
| 58 | +%makeinstall | |
| 59 | + | |
| 60 | +%fdupes $RPM_BUILD_ROOT | |
| 61 | + | |
| 62 | +%clean | |
| 63 | +rm -rf $RPM_BUILD_ROOT | |
| 64 | + | |
| 65 | +%files | |
| 66 | +%defattr(-,root,root) | |
| 67 | +%doc README.md | |
| 68 | +%config %{_phpconf}/tn3270.ini | |
| 69 | +%{_phpextdir}/*.so | |
| 70 | + | |
| 71 | +%changelog | |
| 72 | + | ... | ... |
rpm/php5-pw3270.spec
| ... | ... | @@ -1,72 +0,0 @@ |
| 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://softwarepublico.gov.br/gitlab/pw3270/pw3270-php5 | |
| 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: pkgconfig(pw3270) >= 5.1 | |
| 23 | -BuildRequires: fdupes | |
| 24 | - | |
| 25 | -# Pre-Reqs PHP5 | |
| 26 | -BuildRequires: systemd-devel | |
| 27 | -BuildRequires: libapparmor-devel | |
| 28 | -BuildRequires: php5-devel | |
| 29 | - | |
| 30 | -Requires: lib3270-5_1 | |
| 31 | -Requires: php5 | |
| 32 | -Requires: dbus-1 | |
| 33 | - | |
| 34 | -%description | |
| 35 | - | |
| 36 | -This is an extension for acessing 3270 hosts directly | |
| 37 | -from PHP apps. | |
| 38 | - | |
| 39 | -%prep | |
| 40 | - | |
| 41 | -%setup | |
| 42 | - | |
| 43 | -export CFLAGS="$RPM_OPT_FLAGS" | |
| 44 | -export CXXFLAGS="$RPM_OPT_FLAGS" | |
| 45 | -export FFLAGS="$RPM_OPT_FLAGS" | |
| 46 | - | |
| 47 | -aclocal | |
| 48 | -autoconf | |
| 49 | -%configure | |
| 50 | - | |
| 51 | -%build | |
| 52 | -make clean | |
| 53 | -make Release | |
| 54 | - | |
| 55 | -%install | |
| 56 | -rm -rf $RPM_BUILD_ROOT | |
| 57 | - | |
| 58 | -%makeinstall | |
| 59 | - | |
| 60 | -%fdupes $RPM_BUILD_ROOT | |
| 61 | - | |
| 62 | -%clean | |
| 63 | -rm -rf $RPM_BUILD_ROOT | |
| 64 | - | |
| 65 | -%files | |
| 66 | -%defattr(-,root,root) | |
| 67 | -%doc README.md | |
| 68 | -%config %{_phpconf}/tn3270.ini | |
| 69 | -%{_phpextdir}/*.so | |
| 70 | - | |
| 71 | -%changelog | |
| 72 | - |