|
|
8d12640 |
%if "%{php_version}" < "5.6"
|
|
|
8d12640 |
%global ini_name facedetect.ini
|
|
|
8d12640 |
%else
|
|
|
8d12640 |
%global ini_name 40-facedetect.ini
|
|
|
8d12640 |
%endif
|
|
|
d218d26 |
|
|
|
7a6fa7d |
%global github_owner infusion
|
|
|
7a6fa7d |
%global github_name PHP-Facedetect
|
|
|
bba85aa |
%global github_commit c7179418c4e62c3afb55cdb5a59d089353129134
|
|
|
bba85aa |
%global commitdate 20180306
|
|
|
7a6fa7d |
%global shortcommit %(c=%{github_commit}; echo ${c:0:7})
|
|
|
7a6fa7d |
|
|
|
d218d26 |
Name: php-facedetect
|
|
|
7a6fa7d |
Version: 1.2.0
|
|
|
fb51469 |
Release: 0.4.%{commitdate}git%{shortcommit}%{?dist}
|
|
|
d218d26 |
Summary: PHP extension to access the OpenCV library
|
|
|
d218d26 |
Group: Development/Languages
|
|
|
7a620a0 |
License: BSD
|
|
|
d218d26 |
URL: http://www.xarg.org/project/php-facedetect/
|
|
|
bba85aa |
Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{github_name}-%{shortcommit}.tar.gz
|
|
|
7a409f8 |
|
|
|
7a6fa7d |
BuildRequires: gcc-c++
|
|
|
7a6fa7d |
BuildRequires: php-devel
|
|
|
7a6fa7d |
BuildRequires: pkgconfig(opencv) >= 3.0.0
|
|
|
b54ee9c |
Requires: opencv
|
|
|
d218d26 |
Requires: php(zend-abi) = %{php_zend_api}
|
|
|
d218d26 |
Requires: php(api) = %{php_core_api}
|
|
|
d218d26 |
|
|
|
22de031 |
|
|
|
d218d26 |
%description
|
|
|
d218d26 |
This extension provides a PHP implementation of the OpenCV library.
|
|
|
d218d26 |
The extension offers two new functions. In principle, they differ
|
|
|
d218d26 |
only by their return value. The first returns only the number of
|
|
|
d218d26 |
faces found on the given image and the other an associative array
|
|
|
d218d26 |
of their coordinates.
|
|
|
d218d26 |
|
|
|
d218d26 |
|
|
|
d218d26 |
%prep
|
|
|
7a6fa7d |
%setup -q -n %{github_name}-%{github_commit}
|
|
|
22de031 |
|
|
|
8d12640 |
%{__cat} <<'EOF' >%{ini_name}
|
|
|
d218d26 |
extension=facedetect.so
|
|
|
d218d26 |
EOF
|
|
|
d218d26 |
sed -i 's/\r//' CREDITS
|
|
|
d218d26 |
|
|
|
d218d26 |
%build
|
|
|
d218d26 |
phpize
|
|
|
d218d26 |
%configure
|
|
|
d218d26 |
make %{?_smp_mflags}
|
|
|
d218d26 |
|
|
|
476e1b7 |
%install
|
|
|
476e1b7 |
make install INSTALL_ROOT=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
8d12640 |
install -p -D -m0644 %{ini_name} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/%{ini_name}
|
|
|
d218d26 |
|
|
|
22de031 |
%check
|
|
|
22de031 |
# Minimal load test of php extension
|
|
|
22de031 |
php --no-php-ini \
|
|
|
22de031 |
--define extension_dir=${RPM_BUILD_ROOT}%{php_extdir} \
|
|
|
22de031 |
--define extension=facedetect.so \
|
|
|
22de031 |
--modules | grep facedetect
|
|
|
22de031 |
|
|
|
d218d26 |
%files
|
|
|
d218d26 |
%doc CREDITS
|
|
|
23e9399 |
%license LICENSE
|
|
|
8d12640 |
%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
|
|
|
d218d26 |
%{php_extdir}/facedetect.so
|
|
|
d218d26 |
|
|
|
d218d26 |
%changelog
|
|
|
fb51469 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-0.4.20180306gitc717941
|
|
|
fb51469 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
fb51469 |
|
|
|
7a620a0 |
* Thu Mar 15 2018 Sérgio Basto <sergio@serjux.com> - 1.2.0-0.3.20180306gitc717941
|
|
|
7a620a0 |
- Fix the License tag
|
|
|
7a620a0 |
|
|
|
bba85aa |
* Thu Mar 15 2018 Sérgio Basto <sergio@serjux.com> - 1.2.0-0.2.20180306gitc717941
|
|
|
bba85aa |
- Add last commit
|
|
|
bba85aa |
|
|
|
7a6fa7d |
* Mon Mar 05 2018 Adam Williamson <awilliam@redhat.com> - 1.2.0-0.1.20180305git263435f
|
|
|
7a6fa7d |
- Bump to latest git (PHP 7, OpenCV 3.x compat)
|
|
|
7a6fa7d |
- BuildRequires gcc-c++
|
|
|
7a6fa7d |
- License change back to PHP
|
|
|
7a6fa7d |
|
|
|
825d342 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11
|
|
|
825d342 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
825d342 |
|
|
|
fa3aa9e |
* Sun Dec 24 2017 Sérgio Basto <sergio@serjux.com> - 1.1.0-10
|
|
|
fa3aa9e |
- Rebuild (opencv-3.3.1)
|
|
|
fa3aa9e |
|
|
|
8a87c5b |
* Tue Oct 03 2017 Remi Collet <remi@fedoraproject.org> - 1.1.0-9
|
|
|
8a87c5b |
- rebuild for https://fedoraproject.org/wiki/Changes/php72
|
|
|
8a87c5b |
|
|
|
7e24311 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
|
|
|
7e24311 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
7e24311 |
|
|
|
503b6bf |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-7
|
|
|
503b6bf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
503b6bf |
|
|
|
fe1d423 |
* Fri Mar 03 2017 Sérgio Basto <sergio@serjux.com> - 1.1.0-6
|
|
|
fe1d423 |
- Rebuild (opencv)
|
|
|
fe1d423 |
|
|
|
35adb55 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
|
|
|
35adb55 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
35adb55 |
|
|
|
81a86d6 |
* Thu Nov 24 2016 Remi Collet <remi@fedoraproject.org> - 1.1.0-4
|
|
|
7a409f8 |
- add patch to use pkg-config to retrieve build options
|
|
|
db38896 |
|
|
|
6935307 |
* Wed Jun 29 2016 Sérgio Basto <sergio@serjux.com> - 1.1.0-2
|
|
|
6935307 |
- Rebuild for PHP 7
|
|
|
6935307 |
|
|
|
23e9399 |
* Sat May 07 2016 Sérgio Basto <sergio@serjux.com> - 1.1.0-1
|
|
|
23e9399 |
- Update php-facedetect to 1.1.0
|
|
|
23e9399 |
- Drop patch 3 is upstreamed.
|
|
|
23e9399 |
- Drop patch 1 and 2 looks like that is fixed.
|
|
|
23e9399 |
- Add last 8 commits from GIT upstream (change license and add opencv3 support
|
|
|
23e9399 |
which drop opencv2 support so we need just apply part2 when we have opencv3
|
|
|
23e9399 |
in buildroot)
|
|
|
23e9399 |
|
|
|
4837cb7 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-15
|
|
|
4837cb7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
4837cb7 |
|
|
|
013fa94 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-14
|
|
|
013fa94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
013fa94 |
|
|
|
847e510 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-13
|
|
|
847e510 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
847e510 |
|
|
|
8d12640 |
* Fri Jun 20 2014 Remi Collet <rcollet@redhat.com> - 1.0.1-12
|
|
|
8d12640 |
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
|
|
|
8d12640 |
- add numerical prefix to extension configuration file
|
|
|
8d12640 |
|
|
|
d9177b3 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-11
|
|
|
d9177b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
d9177b3 |
|
|
|
09b3d69 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-10
|
|
|
09b3d69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
09b3d69 |
|
|
Remi Collet |
77436f5 |
* Fri Mar 22 2013 Remi Collet <rcollet@redhat.com> - 1.0.1-9
|
|
Remi Collet |
77436f5 |
- rebuild for http://fedoraproject.org/wiki/Features/Php55
|
|
Remi Collet |
77436f5 |
|
|
|
3677433 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-8
|
|
|
3677433 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3677433 |
|
|
|
9d1c6a7 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
|
|
|
9d1c6a7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9d1c6a7 |
|
|
|
22de031 |
* Wed Jan 18 2012 Remi Collet <remi@fedoraproject.org> - 1.0.1-6
|
|
|
22de031 |
- build against php 5.4.0
|
|
|
22de031 |
- add filter to fix private-shared-object-provides
|
|
|
22de031 |
- add %%check for php extension
|
|
|
22de031 |
|
|
|
12b56d9 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
|
|
|
12b56d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
12b56d9 |
|
|
|
d0f8ecd |
* Wed Aug 31 2011 Rex Dieter <rdieter@fedoraproject.org> 1.0.1-4
|
|
|
d0f8ecd |
- rebuild (opencv)
|
|
|
d0f8ecd |
|
|
|
476e1b7 |
* Tue May 10 2011 Tom Callaway <spot@fedoraproject.org> - 1.0.1-3
|
|
|
476e1b7 |
- Clean up spec
|
|
|
476e1b7 |
- Fix code to work with OpenCV 2.2.0
|
|
|
476e1b7 |
|
|
|
3ed16f4 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
3ed16f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
3ed16f4 |
|
|
|
10b42d6 |
* Mon Jan 10 2011 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.1-1
|
|
|
10b42d6 |
- Bump up to latest upstream
|
|
|
a7de25e |
- Rebuild with new opencv
|
|
|
a7de25e |
|
|
|
4668012 |
* Wed Jun 30 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-6
|
|
|
4668012 |
- Rebuild with new opencv
|
|
|
4668012 |
|
|
|
4129893 |
* Thu Mar 04 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-5
|
|
|
b54ee9c |
- Explicit requires opencv
|
|
|
b54ee9c |
|
|
|
b71fc1f |
* Mon Mar 01 2010 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-4
|
|
|
b71fc1f |
- Patch to build with new DSO linkage Change
|
|
|
b71fc1f |
- Rebuild with new opencv
|
|
|
b71fc1f |
|
|
|
d4fea5a |
* Sun Nov 29 2009 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-3
|
|
|
17a532c |
- Rebuild with new opencv
|
|
|
17a532c |
|
|
|
d218d26 |
* Thu Jul 30 2009 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-2
|
|
|
d218d26 |
- Fix macros
|
|
|
d218d26 |
|
|
|
d218d26 |
* Wed Jul 22 2009 Andrew Colin Kissa <andrew@topdog.za.net> - 1.0.0-1
|
|
|
d218d26 |
- Initial package
|