Author: glen                         Date: Wed Oct 28 10:52:33 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/trac-plugin-hours/trac-plugin-hours.spec
diff -u /dev/null packages/trac-plugin-hours/trac-plugin-hours.spec:1.1
--- /dev/null   Wed Oct 28 11:52:33 2009
+++ packages/trac-plugin-hours/trac-plugin-hours.spec   Wed Oct 28 11:52:28 2009
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+%define                trac_ver        0.11
+%define                plugin          trachours
+Summary:       Trac plugin to track hours spent on tickets
+Name:          trac-plugin-hours
+Version:       0.3.1
+Release:       0.1
+License:       BSD-like
+Group:         Applications/WWW
+# Source0Download:     
http://trac-hacks.org/changeset/latest/trachoursplugin?old_path=/&filename=trachoursplugin&format=zip
+Source0:       trachoursplugin.zip
+# Source0-md5: 7f1c462b4fbcc4a52aceaf1bf66de6d4
+URL:           http://trac-hacks.org/wiki/TracHoursPlugin
+BuildRequires: python-devel
+Requires:      python >= 1:2.4
+Requires:      python-dateutil
+Requires:      python-feedparser
+Requires:      trac >= %{trac_ver}
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The goal of this plugin is to help keep trac of hours worked on
+tickets.
+
+%prep
+%setup -q -n %{plugin}plugin
+
+%build
+cd %{trac_ver}
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd %{trac_ver}
+%{__python} setup.py install \
+       --single-version-externally-managed \
+       --optimize 2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = "1" ]; then
+       %banner -e %{name} <<-'EOF'
+       To enable the %{plugin} plugin, add to conf/trac.ini:
+
+       [components]
+       %{plugin}.* = enabled
+
+       Add users to the group TICKET_ADD_HOURS.
+
+       You will need to run trac-admin <env> upgrade in order to create the 
correct database tables.
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/*-*.egg-info
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/10/28 10:52:28  glen
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to