Projects
home:rottame:vhosts-ng:php5-extensions
php5-uploadprogress
php5-uploadprogress.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php5-uploadprogress.spec of Package php5-uploadprogress (Revision 2)
Currently displaying revision
2
,
Show latest
# # spec file for package php5-uploadprogress # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define pkg_name uploadprogress Name: php5-uploadprogress Version: 1.0.3.1 Release: 3.2 Summary: An extension to track progress of a file upload License: PHP-3.01 Group: Productivity/Networking/Web/Servers Url: http://pecl.php.net/uploadprogress Source: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz Patch0: uploadprogress-0.9.0-no-return-in-nonvoid-function.patch #only php 5.2 has the needed api features. BuildRequires: php5-devel >= 5.3.0 Provides: php-uploadprogress = %{version} Provides: php-uploadprogress(vhng) = %{php_vhng_branch} Obsoletes: php-uploadprogress < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{?php_zend_api}0 Requires: php(api) = %{php_core_api} Requires: php(zend-abi) = %{php_zend_api} %else %requires_eq php5 %endif %description An extension to track progress of a file upload. %prep %setup -q -n %{pkg_name}-%{version} %patch0 mkdir %{name} %build %{_bindir}/phpize pushd %{name} CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS export CXXFLAGS ../configure make %{?_smp_mflags} popd %install make DESTDIR=%{buildroot} install %{?_smp_mflags} -C %{name} INSTALL_ROOT=%{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/php5/conf.d echo "; comment out next line to disable uploadprogress extension in php" > %{buildroot}%{_sysconfdir}/php5/conf.d/uploadprogress.ini echo 'extension = uploadprogress.so' >> %{buildroot}%{_sysconfdir}/php5/conf.d/uploadprogress.ini %files %defattr(-,root,root,-) %{_libdir}/php5/extensions/uploadprogress.so %config(noreplace) %{_sysconfdir}/php5/conf.d/uploadprogress.ini %changelog * Fri Jan 29 2016 pgajdos@suse.com - provides php-uploadprogress symbol * Tue Jan 12 2016 pgajdos@suse.com - call spec-cleaner * Thu Apr 25 2013 adaugherity@tamu.edu - Update to version 1.0.3.1 (fixes PHP 5.4 compatibility). * Sat Aug 7 2010 cristian.rodriguez@opensuse.org - Update to version 1.0.1 * Thu Jul 10 2008 crrodriguez@suse.de - update to version 0.9.0 - Added uploadprogress_get_contents(id, fieldname) to return the contents of that file (Ben Ramsey) - Added uploadprogress.get_contents INI option to enable above function (Ben Ramsey) - Added a simple example - Minor Fixes
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.