SPECS: trac-plugin-wikirename.spec (NEW) - add again

glen glen at pld-linux.org
Mon Jan 19 16:13:16 CET 2009


Author: glen                         Date: Mon Jan 19 15:13:16 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add again

---- Files affected:
SPECS:
   trac-plugin-wikirename.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/trac-plugin-wikirename.spec
diff -u /dev/null SPECS/trac-plugin-wikirename.spec:1.1
--- /dev/null	Mon Jan 19 16:13:16 2009
+++ SPECS/trac-plugin-wikirename.spec	Mon Jan 19 16:13:10 2009
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+%define		trac_ver	0.11
+%define		plugin		wikirename
+Summary:	Add simple support for renaming/moving wiki pages
+Name:		trac-plugin-%{plugin}
+Version:	2.1.1
+Release:	0.1
+License:	BSD
+Group:		Applications/WWW
+# Source0Download:	http://trac-hacks.org/changeset/latest/wikirenameplugin?old_path=/&filename=wikirenameplugin&format=zip
+Source0:	%{plugin}plugin.zip
+# Source0-md5:	16637f1de20736455568f8fa30c2e935
+URL:		http://trac-hacks.org/wiki/WikiRenamePlugin
+BuildRequires:	python-devel
+Requires:	trac >= %{trac_ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This plugin allows you to rename wiki pages. It is an evolution of the
+WikiRenameScript, and currently has the same limitations.
+
+It will move a page and its history, and will rewrite explicit links
+[wiki:PageName Label] leading to it from other wiki pages. It will
+also move any attachments on the page.
+
+caution: Currently this plugin doesn't interact well with the
+TagsPlugin. You should be careful to remove any tags on a page before
+renaming it, and then re-adding them to the new page.
+
+You can access the page rename form through the Admin system. For
+convenience, a link is also added to the context navigation bar in the
+wiki.
+
+%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
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{trac_ver}/README
+%attr(755,root,root) %{_bindir}/trac-wikirename
+%{py_sitescriptdir}/%{plugin}
+%{py_sitescriptdir}/TracWikiRename-*.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  2009/01/19 15:13:10  glen
+- add again
================================================================


More information about the pld-cvs-commit mailing list