|
Revision 126, 1.3 kB
(checked in by xi, 3 years ago)
|
Add a spec file for rpm (thanks, Jeff Johnson).
|
| Line | |
|---|
| 1 |
Summary: Python bindings for the Syck YAML parser and emitter |
|---|
| 2 |
Name: PySyck |
|---|
| 3 |
Version: 0.61.2 |
|---|
| 4 |
Release: 1 |
|---|
| 5 |
License: BSD |
|---|
| 6 |
Group: Development/Libraries |
|---|
| 7 |
URL: http://pyyaml.org/wiki/PySyck |
|---|
| 8 |
Source: http://pyyaml.org/download/pysyck/%{name}-%{version}.tar.gz |
|---|
| 9 |
BuildRequires: byacc, flex, bison |
|---|
| 10 |
BuildRoot: %{_tmppath}/%{name}-root |
|---|
| 11 |
|
|---|
| 12 |
%description |
|---|
| 13 |
Syck is an extension for reading and writing YAML swiftly in popular |
|---|
| 14 |
scripting languages. As Syck loads the YAML, it stores the data directly in |
|---|
| 15 |
your language's symbol table. |
|---|
| 16 |
|
|---|
| 17 |
PySyck is aimed to update the current Python bindings for Syck. The new bindings provide a wrapper for the Syck emitter and give access to YAML representation graphs. Hopefully it will not leak memory as well. |
|---|
| 18 |
|
|---|
| 19 |
PySyck may be used for various tasks, in particular, as a replacement of the module pickle. |
|---|
| 20 |
|
|---|
| 21 |
%prep |
|---|
| 22 |
%setup -q |
|---|
| 23 |
|
|---|
| 24 |
%build |
|---|
| 25 |
%{__python} setup.py build |
|---|
| 26 |
|
|---|
| 27 |
%install |
|---|
| 28 |
rm -rf ${RPM_BUILD_ROOT} |
|---|
| 29 |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT |
|---|
| 30 |
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/syck/*.py |
|---|
| 31 |
|
|---|
| 32 |
%clean |
|---|
| 33 |
rm -rf ${RPM_BUILD_ROOT} |
|---|
| 34 |
|
|---|
| 35 |
%files |
|---|
| 36 |
%defattr(-, root, root) |
|---|
| 37 |
%doc PKG-INFO README.html README.txt |
|---|
| 38 |
%{python_sitelib}/syck/ |
|---|
| 39 |
%{python_sitelib}/_syck.so |
|---|
| 40 |
|
|---|
| 41 |
%changelog |
|---|
| 42 |
* Sat Mar 25 2006 Jeff Johnson <jbj@jbj.org> 0.61.1-2 |
|---|
| 43 |
- upgrade to 0.61.2. |
|---|
| 44 |
|
|---|
| 45 |
* Sat Mar 18 2006 Jeff Johnson <jbj@jbj.org> 0.61.1-1 |
|---|
| 46 |
- create. |
|---|