packages: python-silvercity/python-silvercity.spec (NEW) - new, based on al...
glen
glen at pld-linux.org
Fri Feb 12 10:32:36 CET 2010
Author: glen Date: Fri Feb 12 09:32:36 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new, based on altlinux src.rpm
---- Files affected:
packages/python-silvercity:
python-silvercity.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/python-silvercity/python-silvercity.spec
diff -u /dev/null packages/python-silvercity/python-silvercity.spec:1.1
--- /dev/null Fri Feb 12 10:32:37 2010
+++ packages/python-silvercity/python-silvercity.spec Fri Feb 12 10:32:31 2010
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+# TODO
+# cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
+Summary: SilverCity is a lexing package, based on Scintilla
+Name: python-silvercity
+Version: 0.9.7
+Release: 1
+License: BSD
+Group: Development/Languages/Python
+URL: http://silvercity.sourceforge.net/
+Source0: http://prdownloads.sf.net/silvercity/SilverCity-%{version}.tar.bz2
+# Source0-md5: 1074215f68bace9f1509810993c6410e
+BuildRequires: libstdc++-devel
+BuildRequires: python-devel
+BuildRequires: python-modules
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SilverCity is a lexing package, based on Scintilla, that can provide
+lexical analysis for over 20 programming and markup langauges.
+SilverCity can be used as a C++ library and also has scripting
+language bindings for Python.
+
+%prep
+%setup -q -n SilverCity-%{version}
+%{__sed} -i -e "1i#!%{_bindir}/env python" PySilverCity/Scripts/*.py
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+mv $RPM_BUILD_ROOT{%{_bindir}/*.py,%{_examplesdir}/%{name}-%{version}}
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%if "%{py_ver}" > "2.4"
+%{py_sitedir}/SilverCity-*.egg-info
+%endif
+%attr(755,root,root) %{py_sitedir}/SilverCity/_SilverCity.so
+%{py_sitedir}/SilverCity/*.py[co]
+%{py_sitedir}/SilverCity/default.css
+%{_examplesdir}/%{name}-%{version}
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2010/02/12 09:32:31 glen
+- new, based on altlinux src.rpm
================================================================
More information about the pld-cvs-commit
mailing list