OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 14-Aug-2005 14:58:38
Branch: HEAD Handle: 2005081413583800
Modified files:
openpkg-src/tidy tidy.spec
Log:
install C API of newer modular Tidy and generate and install tidy(1)
manual page
Summary:
Revision Changes Path
1.172 +35 -12 openpkg-src/tidy/tidy.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/tidy/tidy.spec
============================================================================
$ cvs diff -u -r1.171 -r1.172 tidy.spec
--- openpkg-src/tidy/tidy.spec 5 Aug 2005 20:57:12 -0000 1.171
+++ openpkg-src/tidy/tidy.spec 14 Aug 2005 12:58:38 -0000 1.172
@@ -23,8 +23,9 @@
##
# package version
-%define V_here 20050803
-%define V_real 050803
+%define V_opkg 20050803
+%define V_src 050803
+%define V_doc 050705
# package information
Name: tidy
@@ -36,16 +37,17 @@
Class: PLUS
Group: Text
License: GPL
-Version: %{V_here}
-Release: 20050805
+Version: %{V_opkg}
+Release: 20050814
# list of sources
-Source0: http://tidy.sourceforge.net/src/tidy_src_%{V_real}.tgz
+Source0: http://tidy.sourceforge.net/src/tidy_src_%{V_src}.tgz
+Source1: http://tidy.sourceforge.net/docs/tidy_docs_%{V_doc}.tgz
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make
+BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, make, libxslt
PreReq: OpenPKG, openpkg >= 20040130
AutoReq: no
AutoReqProv: no
@@ -54,26 +56,47 @@
This is a HTML/XHTML markup code cleaning tool.
%track
- prog tidy = {
- version = %{V_real}
+ prog tidy:src = {
+ version = %{V_src}
url = http://tidy.sourceforge.net/src/
regex = tidy_src_(__VER__)\.tgz
}
+ prog tidy:doc = {
+ version = %{V_doc}
+ url = http://tidy.sourceforge.net/docs/
+ regex = tidy_docs_(__VER__)\.tgz
+ }
%prep
%setup -q -n tidy
+ %setup -q -n tidy -T -D -a 1
%build
- cd build/gmake
- %{l_make} %{l_mflags} \
- CC="%{l_cc} %{l_cflags -O}"
+ ( cd build/gmake
+ %{l_make} %{l_mflags} \
+ CC="%{l_cc} %{l_cflags -O}"
+ ) || exit $?
+ ( cd tidy/htmldoc
+ ../../bin/tidy -xml-help >tidy.xml
+ ../../bin/tidy -xml-config >tidy-config.xml
+ %{l_prefix}/bin/xsltproc tidy1.xsl tidy.xml >tidy.1
+ ) || exit $?
%install
rm -rf $RPM_BUILD_ROOT
%{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin
+ $RPM_BUILD_ROOT%{l_prefix}/bin \
+ $RPM_BUILD_ROOT%{l_prefix}/include/tidy \
+ $RPM_BUILD_ROOT%{l_prefix}/lib \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1
%{l_shtool} install -c -s -m 755 \
bin/tidy $RPM_BUILD_ROOT%{l_prefix}/bin/
+ %{l_shtool} install -c -m 644 \
+ lib/libtidy.a $RPM_BUILD_ROOT%{l_prefix}/lib/
+ %{l_shtool} install -c -m 644 \
+ include/*.h $RPM_BUILD_ROOT%{l_prefix}/include/tidy/
+ %{l_shtool} install -c -m 644 \
+ tidy/htmldoc/tidy.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
%files -f files
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]