8061977
%define			php_extdir %(php-config --extension-dir || echo %{_libdir}/php)
8061977
%{!?php_version:%define php_version %(php-config --version || echo bad)}
8061977
6d20ee0
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
5909521
# Private libraries are not be exposed globally by RPM
5909521
%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
5909521
%{?filter_setup}
6d20ee0
%endif
6d20ee0
6d20ee0
%if "%{php_version}" < "5.6"
6d20ee0
%global ini_name    %{name}.ini
6d20ee0
%else
6d20ee0
%global ini_name    40-%{name}.ini
6d20ee0
%endif
5909521
7a89a2c
Name:		syck
7a89a2c
Summary:	YAML for C, Python, and PHP
8061977
8a66626
Version:	0.70
1b5d6d5
Release:	7.20130402%{?dist}
8061977
7a89a2c
License:	BSD
7a89a2c
Group:		System Environment/Libraries
7a89a2c
URL:		http://whytheluckystiff.net/syck/
8061977
8a66626
Source0:	http://pyyaml.org/download/pysyck/syck-20130402.tar.bz2
4cd504b
Source1:	syck.ini
8061977
7a89a2c
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28892af
BuildRequires:	gawk bison flex libtool
8061977
BuildRequires:	php-devel
8f953c7
BuildRequires:	bison-devel
d3ac6d2
BuildRequires:	automake
8061977
8061977
%description
8061977
Syck is an extension for reading and writing YAML swiftly in popular scripting
8061977
languages. As Syck loads the YAML, it stores the data directly in your
8061977
language's symbol table. This means speed. This means power. This means Do not
8061977
disturb Syck because it is so focused on the task at hand that it will slay you
8061977
mortally if you get in its way. 
8061977
8061977
From http://yaml.org:
8061977
YAML(tm) (rhymes with "camel") is a straightforward machine parsable data
8061977
serialization format designed for human readability and interaction with
8061977
scripting languages such as Perl and Python. YAML is optimized for data
8061977
serialization, configuration settings, log files, Internet messaging and
8061977
filtering. 
8061977
7a89a2c
%package	php
7a89a2c
Summary:	YAML module for php
7a89a2c
Group:		Development/Languages
4cd504b
Requires:	php(zend-abi) = %{php_zend_api}
4cd504b
Requires:	php(api) = %{php_core_api}
4cd504b
Provides:	php-syck = %{version}-%{release}
8061977
8061977
%description	php
8061977
Syck is an extension for reading and writing YAML swiftly in popular scripting
8061977
languages. As Syck loads the YAML, it stores the data directly in your
8061977
language's symbol table. This means speed. This means power. This means Do not
8061977
disturb Syck because it is so focused on the task at hand that it will slay you
8061977
mortally if you get in its way. 
8061977
8061977
From http://yaml.org:
8061977
YAML(tm) (rhymes with "camel") is a straightforward machine parsable data
8061977
serialization format designed for human readability and interaction with
8061977
scripting languages such as Perl and Python. YAML is optimized for data
8061977
serialization, configuration settings, log files, Internet messaging and
8061977
filtering. 
8061977
8061977
The %{name}-php package contains the syck php extension.
8061977
7a89a2c
%package	devel
8061977
Summary:	Static libraries and headers for developing with Syck
8061977
Group:		Development/Libraries
8061977
Requires:	syck = %{version}-%{release}
7a89a2c
%description	devel
8061977
Syck is an extension for reading and writing YAML swiftly in popular scripting
8061977
languages. As Syck loads the YAML, it stores the data directly in your
8061977
language's symbol table. This means speed. This means power. This means Do not
8061977
disturb Syck because it is so focused on the task at hand that it will slay you
8061977
mortally if you get in its way. 
8061977
8061977
From http://yaml.org:
8061977
YAML(tm) (rhymes with "camel") is a straightforward machine parsable data
8061977
serialization format designed for human readability and interaction with
8061977
scripting languages such as Perl and Python. YAML is optimized for data
8061977
serialization, configuration settings, log files, Internet messaging and
8061977
filtering. 
8061977
8061977
This package contains the header files and static archive for developing with
8061977
Syck.
8061977
8061977
%prep
8a66626
%setup -q -n syck
8061977
8061977
%build
d3ac6d2
# Rebuild all
d3ac6d2
touch NEWS ChangeLog AUTHORS
d3ac6d2
autoreconf -f -i
2fb1667
%configure --disable-static
d3ac6d2
ade1885
#%{__make} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
ade1885
#not parallel-build-safe
ade1885
%{__make} CFLAGS="$RPM_OPT_FLAGS"
8061977
8061977
rm lib/*.la lib/.libs/*.la lib/.libs/*.lai
8061977
# Go into extensions directory
8061977
pushd ext
8061977
8061977
# PHP extension
8061977
pushd php
8061977
phpize
8061977
export php_cv_cc_rpath=no
8061977
CFLAGS="$RPM_OPT_FLAGS -I../../lib -L../../lib/.libs" %configure --with-syck=.
8061977
%{__make} %{?_smp_mflags}
8061977
popd # End php extension
8061977
8061977
# Don't build the ruby extension, as syck is included since ruby 1.8.0.
8061977
# See the rubygarden: http://www.rubygarden.org/ruby?YamlInRuby
8061977
8061977
# Get out of extension
8061977
popd
8061977
8061977
%install
8061977
rm -rf $RPM_BUILD_ROOT
8061977
%{__make} install DESTDIR=$RPM_BUILD_ROOT
8061977
8061977
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
8061977
8061977
# Go into extensions directory
8061977
pushd ext
8061977
8061977
# PHP extension
8061977
pushd php
8061977
%{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT
8061977
popd # End php extension
8061977
6d20ee0
install -D -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/php.d/%{ini_name}
4cd504b
8061977
# Get out of extension
8061977
popd
8061977
5909521
%check
5909521
# minimal load test for the PHP extension
5909521
LD_LIBRARY_PATH=%{buildroot}%{_libdir} php -n \
5909521
    -d extension_dir=%{buildroot}%{php_extdir} \
5909521
    -d extension=syck.so -m \
5909521
    | grep syck
5909521
8061977
%clean
8061977
rm -rf $RPM_BUILD_ROOT
8061977
8061977
%post -p /sbin/ldconfig
8061977
8061977
%postun -p /sbin/ldconfig
8061977
8061977
%files
8061977
%defattr(-,root,root,0755)
8061977
%doc COPYING README TODO RELEASE CHANGELOG
8061977
%{_libdir}/*.so.*
8061977
8061977
%files devel
8061977
%defattr(-,root,root,0755)
eaa0f02
%doc README.EXT README.BYTECODE
8061977
%{_libdir}/*.so
8a66626
%{_libdir}/*.a
8061977
%{_includedir}/*.h
8061977
8061977
%files php
8061977
%defattr(-,root,root,0755)
8061977
%{php_extdir}/*.so
6d20ee0
%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
8061977
8061977
%changelog
1b5d6d5
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.70-7.20130402
1b5d6d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1b5d6d5
0bb2483
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.70-6.20130402
0bb2483
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0bb2483
6e794f4
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.70-5.20130402
6e794f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6e794f4
6d20ee0
* Thu Jun 19 2014 Remi Collet <rcollet@redhat.com> - 0.70-4.20130402
6d20ee0
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
6d20ee0
- add numerical prefix to PHP extension configuration file
6d20ee0
bf190bc
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.70-3.20130402
bf190bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
bf190bc
3264747
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.70-2.20130402
3264747
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3264747
8a66626
* Tue Apr 02 2013 Oliver Falk <oliver@linux-kernel.at> - 0.70-1.20130402
8a66626
- Update with latest version from GIT
8a66626
- No longer build python package, since no longer included
8a66626
9cea4ae
* Mon Mar 25 2013 Oliver Falk <oliver@linux-kernel.at> - 0.61-18.1
9cea4ae
- Rebuild for new PHP
9cea4ae
267ceb3
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-18
267ceb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
267ceb3
71216be
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-17
71216be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
71216be
5909521
* Thu Jan 19 2012 Remi Collet <remi@fedoraproject.org> - 0.9.2-10
5909521
- build against php 5.4, with patch
5909521
- add filter_provides to avoid private-shared-object-provides shout.so
5909521
- add minimal %%check for php extension
5909521
0864edc
* Mon Jan 16 2012 Oliver Falk <oliver@linux-kernel.at> - 0.61-15
0864edc
- Remove check on php_zend_api - it's causing troubles and we don't
0864edc
  need it on F17 branch
0864edc
9c7c7b2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-14
9c7c7b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9c7c7b2
6410eac
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-13
6410eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6410eac
f8a3fa0
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.61-12
f8a3fa0
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
f8a3fa0
d3ac6d2
* Fri Feb 12 2010 Oliver Falk <oliver@linux-kernel.at> - 0.61-11
d3ac6d2
- Force autotools rebuild
d3ac6d2
2fb1667
* Fri Feb 12 2010 Oliver Falk <oliver@linux-kernel.at> - 0.61-10
2fb1667
- NO update to 0.70 for now - it's somewhat b0rken
2fb1667
- Disable building of static libs #556095
2fb1667
823058b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-9.3
823058b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
823058b
d368bc5
* Tue Jul 14 2009 Remi Collet <Fedora@FamilleCollet.com> - 0.61-8.3
d368bc5
- rebuild for new PHP 5.3.0 ABI (20090626)
d368bc5
- add syck-nan.patch
d368bc5
bdee480
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-8.2
bdee480
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
bdee480
ade1885
* Wed Jan 07 2009 Caolán McNamara <caolanm@redhat.com> - 0.61-7.2
ade1885
- build isn't parallel-make safe
ade1885
8f953c7
* Fri Dec 19 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-7.1
8f953c7
- Add bison-devel as BR
8f953c7
9335e58
* Fri Dec 19 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-7
9335e58
- Rebuild for deps
9335e58
8a9b1ea
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.61-6.1
8a9b1ea
- Rebuild for Python 2.6
8a9b1ea
2fa3174
* Fri Jun 06 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-5.1
2fa3174
- Add syck.ini to files
2fa3174
4cd504b
* Fri Jun 06 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-5
4cd504b
- Rebuild to fix bug #447561
4cd504b
- Add syck.ini
4cd504b
eaa0f02
* Tue Feb 19 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-4.3
eaa0f02
- Yet another python fix
eaa0f02
b9dd1e2
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.61-4.2
b9dd1e2
- Autorebuild for GCC 4.3
b9dd1e2
d97adab
* Mon Feb 18 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-3.2
d97adab
* Make egginfo work and clean up python stuff in spec
d97adab
913982c
* Sat Feb 16 2008 Oliver Falk <oliver@linux-kernel.at>	- 0.61-3.1
913982c
- Rebuild against new PHP
da64655
db99974
* Thu Sep 20 2007 Oliver Falk <oliver@linux-kernel.at>	- 0.61-2
db99974
- Rebuild against new PHP
db99974
7a89a2c
* Tue Aug 21 2007 Oliver Falk <oliver@linux-kernel.at>	- 0.61-1
7a89a2c
- Update
7a89a2c
- Clean up spec a bit
7a89a2c
- Rebuild to make Jesse happy
7a89a2c
52076fa
* Thu Jul 19 2007 Jesse Keating <jkeating@redhat.com> - 0.55-17
52076fa
- Rebuild against new PHP, again.
52076fa
90b012e
* Thu May 24 2007 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-16
90b012e
- Rebuild against new PHP
90b012e
909991c
* Wed Mar 14 2007 Oliver Falk <oliver@linux-kernel.at>     - 0.55-15
909991c
- Bug #205438, don't ghost pyo any longer
909991c
b42d730
* Mon Feb 26 2007 Oliver Falk <oliver@linux-kernel.at>     - 0.55-14
f835953
- Rebuild against new PHP
f835953
cd5b239
* Sun Dec 24 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-13
cd5b239
- Rebuild with Python 2.5.
cd5b239
a20cda7
* Fri Dec 01 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-12
a20cda7
- Adapt to new autoconf in rawhide.
a20cda7
d818bfb
* Thu Nov 30 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-11
d818bfb
- Rebuild for updated php.
d818bfb
153f500
* Fri Sep 01 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-10
153f500
- Rebuild.
153f500
28892af
* Sat Aug 26 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-9
28892af
- Add BR: libtool to work with the minimal buildroot.
28892af
f169719
* Sat Aug 26 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 0.55-8
f169719
- Rebuild.
f169719
f90bf3c
* Wed Feb 22 2006 Oliver Falk <oliver@linux-kernel.at>		- 0.55-7
f90bf3c
- Bug #175619
f90bf3c
85ed969
* Fri Sep 16 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.55-6
85ed969
- Compile against PHP 5.0.5
85ed969
8061977
* Thu Aug 25 2005 Toshio Kuratomi <toshio@tiki-lounge.com> - 0.55-5
8061977
- Stop using a dynamically generated php-version in the BR.
8061977
- Create a devel package
8061977
- Correct libtool patch and implementation
8061977
- Implement some ugly workarounds to get the php module to build correctly
8061977
- Change Groups to be more like Core packages
8061977
- Enhance Summaries and description
8061977
- %%ghost the *.pyos.
8061977
8061977
* Thu Aug 25 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.55-4
8061977
- Bugs from #165686
8061977
- Add dist-tag
8061977
8061977
* Wed Aug 24 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.55-3
8061977
- Fix filelist
8061977
- Fix php module path - dynamic
8061977
8061977
* Wed Aug 24 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.55-2
8061977
- Bug #165686
8061977
8061977
* Thu May 19 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.55-1
8061977
- Update
8061977
- Remove patch, as it works without now
8061977
8061977
* Fri Apr 08 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.54-2
8061977
- Patch gram.y (taken from CVS) to fix compilation on Fedora Core 3
8061977
  (Should fix compilation...)
8061977
8061977
* Tue Apr 05 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.53-1.1
8061977
- Force rebuild on buildsys
8061977
8061977
* Sun Apr 03 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.53-1
8061977
- Update
8061977
8061977
* Fri Mar 25 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.51-1.2
8061977
- Force rebuild at automated build system...
8061977
8061977
* Fri Mar 25 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.51-1.1
8061977
- Rebuild
8061977
- Specfile cleanup
8061977
8061977
* Tue Mar 15 2005 Oliver Falk <oliver@linux-kernel.at>		- 0.51-1
8061977
- Update
8061977
- Delete python and php comments
8061977
- Move syck package to my cvs server
8061977
8061977
* Wed Sep 22 2004 Oliver Falk <oliver@linux-kernel.at>		- 0.45-1
8061977
- Initial build