packages: trac-plugin-stractistics/trac-plugin-stractistics.spec (NEW) - new
glen
glen at pld-linux.org
Thu Jan 26 23:29:41 CET 2012
Author: glen Date: Thu Jan 26 22:29:41 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/trac-plugin-stractistics:
trac-plugin-stractistics.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/trac-plugin-stractistics/trac-plugin-stractistics.spec
diff -u /dev/null packages/trac-plugin-stractistics/trac-plugin-stractistics.spec:1.1
--- /dev/null Thu Jan 26 23:29:41 2012
+++ packages/trac-plugin-stractistics/trac-plugin-stractistics.spec Thu Jan 26 23:29:36 2012
@@ -0,0 +1,65 @@
+# $Revision$, $Date$
+%define trac_ver 0.12
+%define plugin stractistics
+Summary: Repository, ticket and wiki statistics
+Name: trac-plugin-%{plugin}
+Version: 0.5.0b
+Release: 1
+License: GPL v2
+Group: Applications/WWW
+Source0: http://trac-hacks.org/changeset/latest/stractisticsplugin?old_path=/&format=zip#/%{plugin}-%{version}.zip
+# Source0-md5: 46d88e22c664cbf57e625319dc705421
+URL: http://trac-hacks.org/wiki/StractisticsPlugin
+BuildRequires: python-devel
+BuildRequires: rpmbuild(macros) >= 1.553
+Requires: python-modules
+Requires: python-simplejson
+Requires: trac >= %{trac_ver}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Stractistics is a plugin designed to estimate recent project activity
+by providing repository, ticket and wiki statistics.
+
+%prep
+%setup -qc
+mv %{plugin}plugin/trunk/* .
+%undos README.txt
+
+%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
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+trac-enableplugin "stractistics.web_ui.*"
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/STractistics-%{version}-py*.egg-info
+
+%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 2012/01/26 22:29:36 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list