2 %define plugin autocompleteusers
4 Summary: Autocomplete user fields (assigned to and CC) on tickets
5 Name: trac-plugin-%{plugin}
7 Release: 0.r%{revision}
9 Group: Applications/WWW
10 # Source0Download: http://trac-hacks.org/changeset/latest/autocompleteusersplugin?old_path=/&filename=autocompleteusersplugin&format=zip
11 Source0: %{plugin}plugin-r%{revision}.zip
12 # Source0-md5: 8c28c08ec2314721c82ffc61358476c7
13 URL: http://trac-hacks.org/wiki/AutocompleteUsersPlugin
14 BuildRequires: python-devel
15 BuildRequires: python-setuptools
16 BuildRequires: rpm-pythonprov
17 Requires: trac >= %{trac_ver}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 The AutocompleteUsersPlugin allows AJAX completion of users for the
23 owner and CC fields on new and existing tickets. Currently, all the
24 known users are autocompleted though this could be restricted to those
25 that have the ticket owner permission. A /users URL is served which
26 presents the user data in a format suitable to the javascript
30 %setup -q -n %{plugin}plugin
34 %{__python} setup.py build
35 %{__python} setup.py egg_info
37 ver=$(awk '$1 == "Version:" {print $2}' *.egg-info/PKG-INFO)
38 test "$ver" = %{version}
41 rm -rf $RPM_BUILD_ROOT
43 %{__python} setup.py install \
44 --single-version-externally-managed \
46 --root=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 if [ "$1" = "1" ]; then
55 %banner -e %{name} <<-'EOF'
56 To enable the %{plugin} plugin, add to conf/trac.ini:
64 %defattr(644,root,root,755)
65 %{py_sitescriptdir}/%{plugin}
66 %{py_sitescriptdir}/AutocompleteUsers-*.egg-info