8061977
%define			php_extdir %(php-config --extension-dir || echo %{_libdir}/php)
8061977
%{!?php_version:%define php_version %(php-config --version || echo bad)}
eaa0f02
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
8061977
7a89a2c
Name:		syck
7a89a2c
Summary:	YAML for C, Python, and PHP
8061977
7a89a2c
Version:	0.61
eaa0f02
Release:	4.3%{?dist}
8061977
7a89a2c
License:	BSD
7a89a2c
Group:		System Environment/Libraries
7a89a2c
URL:		http://whytheluckystiff.net/syck/
8061977
7a89a2c
Source0:	http://pyyaml.org/download/pysyck/syck-%{version}+svn231+patches.tar.gz
8061977
7a89a2c
Patch0:		syck-0.55-libtool.patch
8061977
7a89a2c
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28892af
BuildRequires:	gawk bison flex libtool
8061977
BuildRequires:	php-devel
8061977
BuildRequires:	python-devel
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
7a89a2c
Requires:	php = %{php_version}
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	python
7a89a2c
Summary:	YAML module for python
7a89a2c
Group:		Development/Languages
8061977
8061977
%description	python
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}-python 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
7a89a2c
%setup -q -n syck-0.61+svn231+patches
8061977
%patch0 -p1
8061977
8061977
%build
a20cda7
libtoolize --force --copy && aclocal && automake --add-missing && autoconf
8061977
%configure
8061977
%{__make} %{?_smp_mflags} 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
# Python extension
8061977
pushd python
1b2db85
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
8061977
popd # End python 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
8061977
# Python extension
8061977
pushd python
1b2db85
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
8061977
popd # End python extension
8061977
8061977
# Get out of extension
8061977
popd
8061977
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
8061977
%{_libdir}/*.a
8061977
%{_includedir}/*.h
8061977
8061977
%files python
8061977
%defattr(-,root,root,0755)
eaa0f02
%{python_sitearch}/*
8061977
8061977
%files php
8061977
%defattr(-,root,root,0755)
8061977
%{php_extdir}/*.so
8061977
8061977
%changelog
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