packages: trac-plugin-timingandestimation/trac-plugin-timingandestimation.s...

zbyniu zbyniu at pld-linux.org
Fri Sep 10 15:02:18 CEST 2010


Author: zbyniu                       Date: Fri Sep 10 13:02:18 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- raw but works

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

---- Diffs:

================================================================
Index: packages/trac-plugin-timingandestimation/trac-plugin-timingandestimation.spec
diff -u /dev/null packages/trac-plugin-timingandestimation/trac-plugin-timingandestimation.spec:1.1
--- /dev/null	Fri Sep 10 15:02:18 2010
+++ packages/trac-plugin-timingandestimation/trac-plugin-timingandestimation.spec	Fri Sep 10 15:02:10 2010
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+%define		trac_ver	0.12
+%define		plugin		timingandestimation
+Summary:	Trac plugin to track hours spent on tickets
+Name:		trac-plugin-timingandestimation
+Version:	1.0.6
+Release:	0.2
+License:	BSD-like
+Group:		Applications/WWW
+Source0:	http://trac-hacks.org/changeset/latest/timingandestimationplugin/branches/trac0.12?old_path=/&filename=timingandestimationplugin/branches/trac0.12&format=zip
+# Source0-md5:	d2ed4beba5e99d1758e7e9c57cb74f5f
+URL:		http://trac-hacks.org/wiki/TimingAndEstimationPlugin
+BuildRequires:	python-devel
+BuildRequires:	unzip
+Requires:	python >= 1:2.4
+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 -qc
+
+%build
+cd %{plugin}plugin/branches/trac%{trac_ver}
+%{__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
+cd %{plugin}plugin/branches/trac%{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
+trac-enableplugin "trac%{plugin}.*"
+
+if [ "$1" = "1" ]; then
+	%banner -e %{name} <<-'EOF'
+TODO
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{plugin}plugin
+%{py_sitescriptdir}/*-*.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  2010/09/10 13:02:10  zbyniu
+- raw but works
+
================================================================


More information about the pld-cvs-commit mailing list