1 Summary: Programmer's documentation reader
6 Group: Applications/Publishing
7 Source0: http://dl.sourceforge.net/documancer/%{name}-%{version}.tar.gz
8 # Source0-md5: f570655370c232a2947699258fc6fae0
9 URL: http://documancer.sourceforge.net/
10 Requires: python-wxPython
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Documancer is programmer's documentation reader with very fast fulltext searching.
26 rm -rf $RPM_BUILD_ROOT
29 DESTDIR=$RPM_BUILD_ROOT
31 mv $RPM_BUILD_ROOT%{_datadir}/documancer/providers/man/man2html/man2html \
32 $RPM_BUILD_ROOT%{_bindir}
33 ln -sf %{_bindir}/man2html $RPM_BUILD_ROOT%{_datadir}/documancer/providers/man/man2html/man2html
35 rm -f $RPM_BUILD_ROOT%{_bindir}/documancer
36 echo '#!/usr/bin/python %{_datadir}/documancer/documancer.py' > $RPM_BUILD_ROOT%{_bindir}/documancer
39 rm -rf $RPM_BUILD_ROOT
42 %defattr(644,root,root,755)
43 %attr(755,root,root) %{_bindir}/documancer
44 %attr(755,root,root) %{_bindir}/man2html
45 %{_datadir}/documancer
46 # /usr/share/documancer/indexers/java/documancer-java-indexer needs to be 755
48 %{_desktopdir}/*.desktop