source: pysyck/trunk/PySyck.spec @ 126

Revision 126, 1.3 KB checked in by xi, 9 years ago (diff)

Add a spec file for rpm (thanks, Jeff Johnson).

Line 
1Summary: Python bindings for the Syck YAML parser and emitter
2Name: PySyck
3Version: 0.61.2
4Release: 1
5License: BSD
6Group: Development/Libraries
7URL: http://pyyaml.org/wiki/PySyck
8Source: http://pyyaml.org/download/pysyck/%{name}-%{version}.tar.gz
9BuildRequires: byacc, flex, bison
10BuildRoot: %{_tmppath}/%{name}-root
11
12%description
13Syck is an extension for reading and writing YAML swiftly in popular
14scripting languages. As Syck loads the YAML, it stores the data directly in
15your language's symbol table.
16
17PySyck 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
19PySyck 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
28rm -rf ${RPM_BUILD_ROOT}
29%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
30chmod +x $RPM_BUILD_ROOT%{python_sitelib}/syck/*.py
31
32%clean
33rm -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.
Note: See TracBrowser for help on using the repository browser.