packages: trac-plugin-graphviz/trac-plugin-graphviz.spec (NEW) - new

glen glen at pld-linux.org
Sun Oct 3 14:29:01 CEST 2010


Author: glen                         Date: Sun Oct  3 12:29:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/trac-plugin-graphviz:
   trac-plugin-graphviz.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/trac-plugin-graphviz/trac-plugin-graphviz.spec
diff -u /dev/null packages/trac-plugin-graphviz/trac-plugin-graphviz.spec:1.1
--- /dev/null	Sun Oct  3 14:29:01 2010
+++ packages/trac-plugin-graphviz/trac-plugin-graphviz.spec	Sun Oct  3 14:28:56 2010
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+%define		trac_ver	0.12
+%define		plugin		graphviz
+Summary:	Graphviz Plugin for Trac
+Name:		trac-plugin-%{plugin}
+Version:	0.7.5
+Release:	1
+License:	BSD-like
+Group:		Applications/WWW
+Source0:	http://trac-hacks.org/changeset/latest/graphvizplugin/0.11-%{version}?old_path=/&format=zip#/%{plugin}-%{version}.zip
+# Source0-md5:	5ffbcb4743c85c0a34eff98918c814b6
+URL:		http://trac-hacks.org/wiki/GraphvizPlugin
+BuildRequires:	python-devel
+BuildRequires:	rpmbuild(macros) >= 1.553
+Requires:	trac >= %{trac_ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The graphviz wiki processor is a plugin for Trac that allows the the
+dynamic generation of diagrams by the various graphviz programs. The
+text of a wiki page can contain the source text for graphviz and the
+web browser will show the resulting image.
+
+%prep
+%setup -qc
+mv %{plugin}plugin/0.11-%{version}/* .
+
+%build
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
+test "$ver" = %{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--single-version-externally-managed \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+trac-enableplugin "graphviz.*"
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README.txt ReleaseNotes.txt
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/*-*.egg-info
+%{_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/10/03 12:28:56  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list