File htmlcompressor.spec of Package htmlcompressor

# spec file for package htmlcompressor
# References:

Name:           htmlcompressor
Summary:        HTML Compressor and Minifier
License:        Apache
Group:          Development/Tools
Version:        1.5.3
Release:        0

Source:		%name-%version.tar.bz2

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:	dos2unix
BuildRequires:	java >= 1.7.0

Requires:	java >= 1.7.0

BuildArchitectures: noarch

HtmlCompressor is a small, fast and very easy to use Java library that minifies 
given HTML or XML source by removing extra whitespaces, comments and other 
unneeded characters without breaking the content structure. As a result pages 
become smaller in size and load faster. A command-line version of the 
compressor is also available.

More info at

%setup -q


dos2unix *.txt

# startscript
cat > << 'EOF'
# Starting HTML compressor
java -jar %{_javadir}/%{name}-%{version}.jar $@



install -dm 0755 %{buildroot}/%{_javadir}
install -dm 0755 %{buildroot}/%{_bindir}

install -m755 bin/%{name}-%{version}.jar		%{buildroot}/%{_javadir}
install -m755 lib/*.jar					%{buildroot}/%{_javadir}
install -m755					%{buildroot}%{_bindir}/hc

%doc LICENSE.txt README.txt