2 %define plugin timingandestimation
3 Summary: Trac plugin to track hours spent on tickets
4 Name: trac-plugin-timingandestimation
8 Group: Applications/WWW
9 Source0: http://trac-hacks.org/changeset/latest/timingandestimationplugin/branches/trac0.12?old_path=/&filename=timingandestimationplugin/branches/trac0.12&format=zip
10 # Source0-md5: d2ed4beba5e99d1758e7e9c57cb74f5f
11 URL: http://trac-hacks.org/wiki/TimingAndEstimationPlugin
12 BuildRequires: python-devel
14 Requires: python >= 1:2.4
15 Requires: trac >= %{trac_ver}
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 The goal of this plugin is to help keep trac of hours worked on
27 cd %{plugin}plugin/branches/trac%{trac_ver}
28 %{__python} setup.py build
29 %{__python} setup.py egg_info
31 ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
32 test "$ver" = %{version}
35 rm -rf $RPM_BUILD_ROOT
36 cd %{plugin}plugin/branches/trac%{trac_ver}
37 %{__python} setup.py install \
38 --single-version-externally-managed \
40 --root=$RPM_BUILD_ROOT
45 rm -rf $RPM_BUILD_ROOT
48 trac-enableplugin "trac%{plugin}.*"
50 if [ "$1" = "1" ]; then
51 %banner -e %{name} <<-'EOF'
57 %defattr(644,root,root,755)
58 %{py_sitescriptdir}/%{plugin}plugin
59 %{py_sitescriptdir}/*-*.egg-info