rpms/htmldoc/devel htmldoc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Adam Goode (agoode) fedora-extras-commits at redhat.com
Thu Jun 1 23:49:04 UTC 2006


Author: agoode

Update of /cvs/extras/rpms/htmldoc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15659/devel

Modified Files:
	.cvsignore sources 
Added Files:
	htmldoc.spec 
Log Message:
auto-import htmldoc-1.8.26-4 on branch devel from htmldoc-1.8.26-4.src.rpm


--- NEW FILE htmldoc.spec ---
Name:		htmldoc
Version:	1.8.26
Release:	4%{?dist}
Summary:	Convert HTML source files into HTML, PostScript, or PDF

Group:		Applications/Publishing
License:	GPL	
URL:		http://www.htmldoc.org/

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source:		http://ftp.easysw.com/pub/%{name}/%{version}/%{name}-%{version}-source.tar.bz2

BuildRequires:	openssl-devel libjpeg-devel libpng-devel zlib-devel
BuildRequires:	fltk-devel libXpm-devel desktop-file-utils
#Requires:

%description
HTMLDOC converts HTML source files into indexed HTML, PostScript, or
Portable Document Format (PDF) files that can be viewed online or
printed. With no options a HTML document is produced on stdout.
 
The second form of HTMLDOC reads HTML source from stdin, which allows
you to use HTMLDOC as a filter.
 
The third form of HTMLDOC launches a graphical interface that allows
you to change options and generate documents interactively.

%prep
%setup -q

# fix up hardcoded documentation path
sed -i 's/\(\$prefix\/share\/doc\/htmldoc\)/\1-%{version}/g' configure

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install prefix=${RPM_BUILD_ROOT}%{_prefix} mandir=${RPM_BUILD_ROOT}%{_mandir} bindir=${RPM_BUILD_ROOT}%{_bindir} datadir=${RPM_BUILD_ROOT}%{_datadir}

# kill thing which we get later in the right place with %doc
rm -rf ${RPM_BUILD_ROOT}%{_docdir}/htmldoc

# install icons
for s in 16 24 32 48 64 96 128; do 			\
	install -d ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/${s}x${s}/apps; \
	cp -a desktop/htmldoc-$s.png 			\
	${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/${s}x${s}/apps/htmldoc.png;\
done

# install MIME
install -d ${RPM_BUILD_ROOT}%{_datadir}/mime/packages
cp -a desktop/htmldoc.xml ${RPM_BUILD_ROOT}%{_datadir}/mime/packages

# desktop file
desktop-file-install --vendor fedora                            \
	--dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
	--add-category X-Fedora                                 \
	--remove-category=X-Red-Hat-Base			\
	--add-mime-type=application/vnd.htmldoc-book		\
	desktop/htmldoc.desktop



%post
# scriptlet for icons
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

# scriptlet for MIME
update-mime-database %{_datadir}/mime &> /dev/null || :

# scriptlet for desktop database
update-desktop-database &> /dev/null || :


%postun
# scriptlet for icons
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

# scriptlet for MIME
update-mime-database %{_datadir}/mime &> /dev/null || :

# scriptlet for desktop database
update-desktop-database &> /dev/null || :



%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc doc/intro.html doc/c-relnotes.html doc/htmldoc.{html,pdf,ps} doc/help.html
%doc CHANGES.txt COPYING.txt README.txt
%{_datadir}/htmldoc
%{_datadir}/applications/*
%{_mandir}/man1/*
%{_bindir}/htmldoc
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/mime/packages/htmldoc.xml

%changelog
* Wed May 31 2006 Adam Goode <adam at spicenitz.org> - 1.8.26-4
- Fix hardcoded documentation path in configure
- Add help.html to documentation

* Mon May 29 2006 Adam Goode <adam at spicenitz.org> - 1.8.26-3
- Use upstream desktop file
- Install icons
- Install mime XML file
- Eliminate strange spaces in description

* Sat May 27 2006 Adam Goode <adam at spicenitz.org> - 1.8.26-2
- Add downloadable source

* Thu May 25 2006 Adam Goode <adam at spicenitz.org> - 1.8.26-1
- New upstream release
- Rebuild for FC5

* Mon Oct 24 2005 Thomas Chung <tchung at fedoranews.org> 1.8.24-1
- Rebuild for FC4

* Tue Feb 22 2005 Thomas Chung <tchung at fedoranews.org> 1.8.24-0
- Initial RPM build for FC3


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/htmldoc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	1 Jun 2006 23:47:20 -0000	1.1
+++ .cvsignore	1 Jun 2006 23:49:04 -0000	1.2
@@ -0,0 +1 @@
+htmldoc-1.8.26-source.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/htmldoc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	1 Jun 2006 23:47:20 -0000	1.1
+++ sources	1 Jun 2006 23:49:04 -0000	1.2
@@ -0,0 +1 @@
+5bb7d68b90a17d4aaf85011706879143  htmldoc-1.8.26-source.tar.bz2




More information about the fedora-extras-commits mailing list