packages: trac-plugin-autocompleteusers/trac-plugin-autocompleteusers.spec ...
zbyniu
zbyniu at pld-linux.org
Mon Jul 11 14:25:01 CEST 2011
Author: zbyniu Date: Mon Jul 11 12:25:01 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/trac-plugin-autocompleteusers:
trac-plugin-autocompleteusers.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/trac-plugin-autocompleteusers/trac-plugin-autocompleteusers.spec
diff -u /dev/null packages/trac-plugin-autocompleteusers/trac-plugin-autocompleteusers.spec:1.1
--- /dev/null Mon Jul 11 14:25:02 2011
+++ packages/trac-plugin-autocompleteusers/trac-plugin-autocompleteusers.spec Mon Jul 11 14:24:56 2011
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+%define trac_ver 0.11
+%define plugin autocompleteusers
+%define revision 10429
+Summary: Autocomplete user fields (assigned to and CC) on tickets
+Name: trac-plugin-%{plugin}
+Version: 0.4.1
+Release: 0.r%{revision}
+License: BSD
+Group: Applications/WWW
+# Source0Download: http://trac-hacks.org/changeset/latest/autocompleteusersplugin?old_path=/&filename=autocompleteusersplugin&format=zip
+Source0: %{plugin}plugin-r%{revision}.zip
+# Source0-md5: 8c28c08ec2314721c82ffc61358476c7
+URL: http://trac-hacks.org/wiki/AutocompleteUsersPlugin
+BuildRequires: python-devel
+BuildRequires: python-setuptools
+BuildRequires: rpm-pythonprov
+Requires: trac >= %{trac_ver}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The AutocompleteUsersPlugin allows AJAX completion of users for the
+owner and CC fields on new and existing tickets. Currently, all the
+known users are autocompleted though this could be restricted to those
+that have the ticket owner permission. A /users URL is served which
+presents the user data in a format suitable to the javascript
+autocompleter.
+
+%prep
+%setup -q -n %{plugin}plugin
+
+%build
+cd %{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 %{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]
+ trac%{plugin}.* = enabled
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/AutocompleteUsers-*.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 2011/07/11 12:24:56 zbyniu
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list