html2text/html2text.spec

60 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: html2text
Version: 1.3.2a
Release: 3mamba
Summary: html2text is a command line utility, written in C++, that converts HTML documents into plain text.
Group: Graphical Desktop/Applications/Office
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://www.mbayer.de/html2text
Source: http://userpage.fu-berlin.de/%7Embayer/tools/%{name}-%{version}.tar.gz
Patch0: %{name}-1.3.2a-utf8.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%description
html2text is a command line utility, written in C++, that converts HTML documents into plain text.
%prep
%setup -q
%patch0 -p1
%build
%configure --prefix=/usr
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_bindir}
install -m 755 html2text %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
install -m 644 html2text.1.gz %{buildroot}%{_mandir}/man1
install -m 644 html2textrc.5.gz %{buildroot}%{_mandir}/man5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc CHANGES COPYING CREDITS README TODO
%{_bindir}/html2text
%{_mandir}/man1/html2text.*
%{_mandir}/man5/html2textrc.*
%changelog
* Wed Jul 18 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2a-3mamba
- added utf8 patch
* Fri Oct 03 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.3.2a-2mamba
- update vendor, distribuition, mantainer, URL
- update buildrequirements list
* Wed Dec 28 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.3.2a-1qilnx
- package created by autospec