|
|
|
|
@ -22,13 +22,13 @@
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package version |
|
|
|
|
%define V_tidy 20090325 |
|
|
|
|
%define V_tidy 20120821 |
|
|
|
|
%define V_perl 1.54 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: tidy |
|
|
|
|
Summary: HTML Tidy |
|
|
|
|
URL: http://tidy.sourceforge.net/ |
|
|
|
|
URL: http://w3c.github.io/tidy-html5/ |
|
|
|
|
Vendor: Dave Raggett |
|
|
|
|
Packager: OpenPKG Foundation e.V. |
|
|
|
|
Distribution: OpenPKG Community |
|
|
|
|
@ -42,7 +42,7 @@ Release: 20140413
|
|
|
|
|
%option with_perl no |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/tidy/tidy-%{V_tidy}.tar.gz |
|
|
|
|
Source0: http://download.openpkg.org/components/versioned/tidy/tidy-html5-%{V_tidy}.tar.gz |
|
|
|
|
Source1: http://www.cpan.org/modules/by-module/HTML/HTML-Tidy-%{V_perl}.tar.gz |
|
|
|
|
Patch0: tidy.patch |
|
|
|
|
|
|
|
|
|
@ -61,7 +61,7 @@ PreReq: perl
|
|
|
|
|
prog tidy:tidy = { |
|
|
|
|
version = %{V_tidy} |
|
|
|
|
url = http://download.openpkg.org/components/versioned/tidy/ |
|
|
|
|
regex = tidy-(__VER__)\.tar\.gz |
|
|
|
|
regex = tidy-html5-(__VER__)\.tar\.gz |
|
|
|
|
} |
|
|
|
|
prog tidy:perl = { |
|
|
|
|
version = %{V_perl} |
|
|
|
|
@ -70,9 +70,9 @@ PreReq: perl
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n tidy |
|
|
|
|
%setup -q -n tidy-html5 |
|
|
|
|
%if "%{with_perl}" == "yes" |
|
|
|
|
%setup -q -n tidy -T -D -a 1 |
|
|
|
|
%setup -q -n tidy-html5 -T -D -a 1 |
|
|
|
|
%endif |
|
|
|
|
%patch -p0 |
|
|
|
|
|
|
|
|
|
@ -88,9 +88,9 @@ PreReq: perl
|
|
|
|
|
) || exit $? |
|
|
|
|
%if "%{with_perl}" == "yes" |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e "s;-ltidyp;-L`pwd`/../tidy/lib -ltidy;" \ |
|
|
|
|
-e "s;-I/usr/local/include/tidyp;-I`pwd`/../tidy/include;" \ |
|
|
|
|
-e "s;-I/usr/include/tidyp;-I`pwd`/../tidy/include;" \ |
|
|
|
|
-e "s;-ltidyp;-L`pwd`/../tidy-html5/lib -ltidy;" \ |
|
|
|
|
-e "s;-I/usr/local/include/tidyp;-I`pwd`/../tidy-html5/include;" \ |
|
|
|
|
-e "s;-I/usr/include/tidyp;-I`pwd`/../tidy-html5/include;" \ |
|
|
|
|
HTML-Tidy-%{V_perl}/Makefile.PL |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;tidyp.h;tidy.h;g' \ |
|
|
|
|
|