2
# Tidy version is 02 Oct 2003 that is 10022003
3
# First edit this file and set the version number
4
# You need to unpack the original source and edit the Makefile
5
# and point the prefix as follows:
6
# runinst_prefix=${RPMTMP}
7
# devinst_prefix=${RPMTMP}
8
# Copy this source tidy-MMDDYYYY.tgz to directory /usr/src/redhat/SOURCES
10
####################################################################
11
# To Build the new RPM package for tidy_rpm, to be uploaded
12
# to ftp.redhat.com do the following:-
13
# cd /usr/src/redhat; mkdir -p BUILD SRPMS RPMS/i386
15
# Use the following commands - see 'man rpm' and 'man rpmbuild'
17
# To prep : rpmbuild --short-circuit -bp /usr/src/redhat/SPECS/tidy_rpm*.spec
18
# Build : rpmbuild --short-circuit -bc
19
# Install : rpmbuild --short-circuit -bi
20
# List : rpmbuild --short-circuit -bl
21
# Bin/Src : rpmbuild -ba
22
# Build from TAR gzip source code with : rpmbuild -ta tidy.tar.gz
23
####################################################################
27
Summary: tidy - Program for tidying up messy HTML files
30
# Version is 2 Oct 2003 - 10022003
31
Version: 02October2003
34
Group: Applications/Tools
35
%define mainurl http://tidy.sourceforge.net
36
%define source_code_name %{name}_src.tgz
37
%define url http://tidy.sourceforge.net
38
%define builddir $RPM_BUILD_DIR/%{name}-%{version}
41
# You cannot have $$ (process id)in rpmtmp below since it will
42
# be different for install and build sections
43
%define rpmtmp $RPM_BUILD_DIR/rpm_tmp_directory-%{name}-%{version}-%{release}
45
#Source0: %{url}/%{name}-%{version}.tgz
46
Source0: %{url}/%{source_code_name}
47
#Source1: %{name}.init
48
#Source2: %{name}-%{version}.tgz
49
#Patch0: %{name}-%{version}-rh.patch
50
#Patch1: %{name}-%{version}-teo.patch
51
Packager: Al Dev alavoor[at]yahoo.com
52
Buildroot: /var/tmp/%{name}-root
53
BuildArchitectures: noarch
54
#Prereq: /sbin/chkconfig /sbin/ldconfig /usr/sbin/useradd
55
Prereq: /usr/sbin/useradd
58
Summary(de): %{name} german-summary
59
Summary(fr): %{name} french-summary
60
Summary(tr): %{name} turkey-summary
66
%{name}: The tidy is a program for tidying up messy HTML files.
67
When editing HTML its easy to make mistakes. Would not it be nice if
68
there was a simple way to fix these mistakes automatically and tidy up
69
sloppy editing into nicely layed out markup? Dave Raggetts HTML TIDY
70
is a free utility for doing just that. It also works great on the
71
atrociously hard to read markup generated by specialized HTML editors
72
and conversion tools, and can help you identify where you need to pay
73
further attention on making your pages more accessible to people
82
rm -rf $RPM_BUILD_ROOT
91
echo "In build section ..."
95
export RPMTMP=%{rpmtmp} # So that you can access from Makefiles with $(RPMTMP)
96
#pwd && ./configure --prefix=%{rpmtmp}
97
# If there is no configure then
98
# Should modify your Makefile using $(RPMTMP)
100
cd %{builddir}/build/gmake;
101
make all && make && make install
103
#( cd $RPM_BUILD_DIR; pwd && tar xzf %{builddir}.tgz )
111
rm -rf $RPM_BUILD_ROOT
113
#useradd -M -r -d /var/lib/%{name} -s /bin/bash \
114
# -c "wvware package" %{name} || :
116
# For maintaining separate versions of packages do ...
117
#mkdir -p $RPM_BUILD_ROOT/var/lib/%{name}/%{version}
118
#cd $RPM_BUILD_ROOT/var/lib/%{name}/%{version}
119
#cp -pr %{rpmtmp}/* .
120
#( cd $RPM_BUILD_ROOT/var/lib/%{name}; ln -s %{version} current )
122
# Or alternatively copy to default locations as below...
123
mkdir -p $RPM_BUILD_ROOT/usr
125
mv %{rpmtmp}/* $RPM_BUILD_ROOT/usr
127
#chown -R %{name}.%{name} *
128
chmod -R 644 * # read for all and write for user
129
find . -type d -exec chmod a+rx {} \;
130
find . -type f -name "*.so" -exec chmod a+rx {} \;
131
#chmod a+rx run-%{name} # read for all and write for user
135
## Pre-install section:
138
#useradd -M -o -r -d /var/lib/%{name} -s /bin/bash \
139
# -c "tidy Package" %{name} >/dev/null 2>&1 || :
141
#%post -p /sbin/ldconfig
143
#%postun -p /sbin/ldconfig clients
146
#if [ $1 = 0 ] ; then
147
# chkconfig --del %{name}
152
#if [ $1 = 0 ] ; then
153
# userdel %{name} >/dev/null 2>&1 || :
160
rm -rf $RPM_BUILD_ROOT
166
# ----> These are files in the %{name}-x.x.x.rpm package
168
#%defattr(-,%{name},%{name})
169
#%defattr(-,root,root)
170
#%config /etc/rc.d/init.d/*
174
# Use either /, or /usr or /var as below :
177
# ----> These are files in the %{name}-data-*.rpm package
179
#%attr(-,%{name},%{name}) %dir /var/lib/%{name}
180
#%attr(-,%{name},%{name}) %config /var/lib/%{name}/*
181
#/usr/bin/somefilename
183
################################################################
185
* Mon Oct 25 2003 Al Dev (Alavoor Vasudevan) <alavoor[at]yahoo.com>
186
- Initial version of %{name} rpm
187
################################################################