SPECS: python-rrdtool.spec (NEW) - Initial
beorn
beorn at pld-linux.org
Mon Mar 5 22:32:50 CET 2007
Author: beorn Date: Mon Mar 5 21:32:50 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Initial
---- Files affected:
SPECS:
python-rrdtool.spec (1.8 -> 1.9) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-rrdtool.spec
diff -u /dev/null SPECS/python-rrdtool.spec:1.9
--- /dev/null Mon Mar 5 22:32:50 2007
+++ SPECS/python-rrdtool.spec Mon Mar 5 22:32:45 2007
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%define _package py-rrdtool
+#
+Summary: Python Interface to RRDTool
+Summary(pl.UTF-8): Interfejs języka Python do RRDTool
+Name: python-rrdtool
+Version: 1.0b1
+Release: 1
+License: LGPL
+Group: Development/Languages/Python
+Source0: http://dl.sourceforge.net/py-rrdtool/%{_package}-%{version}.tar.gz
+# Source0-md5: 483090fe2aea4215007caef4d0c868dc
+URL: http://www.nongnu.org/py-rrdtool/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: rrdtool-devel
+%pyrequires_eq python-modules
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires: python >= 2.3
+Requires: rrdtool
+
+%description
+The python-rrdtool provides an interface to rrdtool, the wonderful
+graphing and logging utility. This wrapper implementation was made
+from scratch (without SWIG), and it's licensed under LGPL.
+
+This module has not been documented yet. Please refer to pydoc.
+
+%description -l pl.UTF-8
+Python-rrdtool dostarcza interfejs do rrdtool, wspaniałego narzędzia
+do tworzenia wykresów i logowania. Ten moduł został wykonany bez
+użycia SWIG i jest licencjonowany na zasadach LGPL.
+
+Nineijszy moduł nie został jeszcze udokumentowany. Prosimy owoływać
+się do pydoc.
+
+%prep
+%setup -q -n %{_package}-%{version}
+
+%build
+find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+install test.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README THANKS AUTHORS
+%attr(755,root,root) %{py_sitedir}/*.so
+%{py_sitedir}/*.py[co]
+%{_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.9 2007/03/05 21:32:45 beorn
+- Initial
+
================================================================
More information about the pld-cvs-commit
mailing list