[svn] r5360 - in trunk/rpms: re2c syck
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Fri May 4 00:10:13 CEST 2007
Author: dag
Date: 2007-05-04 00:10:12 +0200 (Fri, 04 May 2007)
New Revision: 5360
Modified:
trunk/rpms/re2c/re2c.spec
trunk/rpms/syck/syck.spec
Log:
Updates
Modified: trunk/rpms/re2c/re2c.spec
===================================================================
--- trunk/rpms/re2c/re2c.spec 2007-05-03 16:30:09 UTC (rev 5359)
+++ trunk/rpms/re2c/re2c.spec 2007-05-03 22:10:12 UTC (rev 5360)
@@ -1,7 +1,7 @@
# $Id$
# Authority: dag
-Summary: tool for generating C-based recognizers from regular expressions
+Summary: Tool for generating C-based recognizers from regular expressions
Name: re2c
Version: 0.12.0
Release: 1
@@ -41,7 +41,7 @@
%files
%defattr(-, root, root, 0755)
-%doc README examples/ doc/* lessons/
+%doc CHANGELOG README examples/ doc/* lessons/
%doc %{_mandir}/man1/re2c.1*
%{_bindir}/re2c
Modified: trunk/rpms/syck/syck.spec
===================================================================
--- trunk/rpms/syck/syck.spec 2007-05-03 16:30:09 UTC (rev 5359)
+++ trunk/rpms/syck/syck.spec 2007-05-03 22:10:12 UTC (rev 5360)
@@ -1,18 +1,31 @@
# $Id: $
# Authority: dries
+%{?dist: %{expand: %%define %dist 1}}
+
+%{?rh9:%define _without_php 1}
+
+%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)')
+
+%define php_extdir %(php-config --extension-dir || echo %{_libdir}/php)
+%{!?php_version:%define php_version %(php-config --version || echo bad)}
+
Summary: Extension for reading and writing YAML
Name: syck
Version: 0.55
-Release: 2.2
+Release: 3
License: GPL
Group: Development/Libraries
URL: http://www.whytheluckystiff.net/syck/
Source: http://rubyforge.org/frs/download.php/4492/syck-%{version}.tar.gz
+Patch0: syck-0.55-libtool.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: byacc, flex, bison
+Buildrequires: autoconf >= 2.50
+BuildRequires: byacc, flex, bison, libtool
+BuildRequires: python-devel
+%{!?_without_php:BuildRequires: php-devel}
%description
Syck is an extension for reading and writing YAML swiftly in popular
@@ -29,37 +42,106 @@
scripting languages. As Syck loads the YAML, it stores the data directly in
your language's symbol table.
+%package -n php-syck
+Summary: YAML module for php
+Group: Development/Languages
+Requires: php = %{php_version}
+Obsoletes: syck-php <= %{version}-%{release}
+Provides: syck-php = %{version}-%{release}
+
+%description -n php-syck
+Syck is an extension for reading and writing YAML swiftly in popular
+scripting languages. As Syck loads the YAML, it stores the data directly in
+your language's symbol table.
+
+The php-syck package contains the syck php extension.
+
+%package -n python-syck
+Summary: YAML module for python
+Group: Development/Languages
+Requires: python
+Obsoletes: python-syck <= %{version}-%{release}
+Provides: php-syck = %{version}-%{release}
+
+%description -n python-syck
+Syck is an extension for reading and writing YAML swiftly in popular
+scripting languages. As Syck loads the YAML, it stores the data directly in
+your language's symbol table.
+
%prep
%setup
+%patch0 -p1 -b .orig
%build
-export CFLAGS="%{optflags} -fPIC"
+libtoolize --force --copy && aclocal && automake --add-missing && autoconf
%configure
%{__make} %{?_smp_mflags}
+%if %{!?_without_php:1}0
+pushd ext/php
+phpize
+%configure --with-syck="."
+%{__make} %{?_smp_mflags}
+popd
+%endif
+
+pushd ext/python
+%{__python} setup.py build
+popd
+
%install
%{__rm} -rf %{buildroot}
-%makeinstall
+%{__make} install DESTDIR="%{buildroot}"
-%post
-/sbin/ldconfig 2>/dev/null
+%if %{!?_without_php:1}0
+%{__make} install -C ext/php INSTALL_ROOT="%{buildroot}"
+%endif
-%postun
-/sbin/ldconfig 2>/dev/null
+pushd ext/python
+%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
+popd
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%clean
%{__rm} -rf %{buildroot}
+%files
+%defattr(-, root, root, 0755)
+%doc CHANGELOG COPYING README TODO
+%{_libdir}/libsyck.so.*
+
%files devel
%defattr(-, root, root, 0755)
-%doc COPYING README
%{_includedir}/syck.h
%{_includedir}/syck_st.h
%{_libdir}/libsyck.a
+%exclude %{_libdir}/libsyck.la
+%{_libdir}/libsyck.so
+%if %{!?_without_php:1}0
+%files -n php-syck
+%defattr(-, root, root, 0755)
+%{php_extdir}/syck.so
+%endif
+
+%files -n python-syck
+%defattr(-, root, root, 0755)
+%{python_sitearch}/syck.so
+%{python_sitearch}/yaml2xml.py
+%{python_sitearch}/yaml2xml.pyc
+%ghost %{python_sitearch}/yaml2xml.pyo
+%{python_sitearch}/ydump.py
+%{python_sitearch}/ydump.pyc
+%ghost %{python_sitearch}/ydump.pyo
+%{python_sitearch}/ypath.py
+%{python_sitearch}/ypath.pyc
+%ghost %{python_sitearch}/ypath.pyo
+
%changelog
-* Sat Apr 08 2006 Dries Verachtert <dries at ulyssis.org> - 0.55-2.2
-- Rebuild for Fedora Core 5.
+* Wed May 02 2007 Dag Wieers <dag at wieers.com> - 0.55-3
+- Added php and python extensions.
* Fri Nov 11 2005 Dries Verachtert <dries at ulyssis.org> - 0.55-2
- Fixed the source url.
More information about the svn-commits
mailing list