1 |
%define name tidyp |
2 |
%define version 1.04 |
3 |
%define release %mkrel 1 |
4 |
%define libname %mklibname %{name} 1.04 |
5 |
%define develname %mklibname %name -d |
6 |
|
7 |
Summary: Program for tidying up messy HTML |
8 |
Name: %{name} |
9 |
Version: %{version} |
10 |
Release: %{release} |
11 |
Group: Text tools |
12 |
License: W3C License |
13 |
URL: http://tidyp.com/ |
14 |
Source0: http://github.com/downloads/petdance/tidyp/tidyp-%{version}.tar.gz |
15 |
Patch0: tidy-20081224cvs-fix-format-errors.patch |
16 |
BuildRoot: %{_tmppath}/%{name}-%{version} |
17 |
|
18 |
%description |
19 |
tidyp is a program that can validate your HTML, as well as modify it to be more |
20 |
clean and standard. tidyp does not validate HTML 5. |
21 |
|
22 |
libtidyp is the library on which the program is based. It can be used by any |
23 |
other program that can interface to it. The Perl module HTML::Tidy is based on |
24 |
this library, allowing Perl programmers to easily validate HTML. |
25 |
|
26 |
tidyp is a fork of the tidy project. |
27 |
|
28 |
%package -n %{libname} |
29 |
Summary: Main library for %{name} |
30 |
Group: System/Libraries |
31 |
|
32 |
%description -n %{libname} |
33 |
This package contains the library needed to run programs dynamically |
34 |
linked with %{name}. |
35 |
|
36 |
%package -n %{develname} |
37 |
Summary: Headers for developing programs that will use %{name} |
38 |
Group: Development/Other |
39 |
Requires: %{libname} = %{version}-%{release} |
40 |
Provides: %{name}-devel = %{version}-%{release} |
41 |
|
42 |
%description -n %{develname} |
43 |
This package contains the headers that programmers will need to develop |
44 |
applications which will use %{name}. |
45 |
|
46 |
%prep |
47 |
%setup -q |
48 |
%patch0 -p1 |
49 |
|
50 |
%build |
51 |
%configure2_5x |
52 |
%make |
53 |
|
54 |
%install |
55 |
%__rm -rf %{buildroot} |
56 |
%makeinstall_std |
57 |
|
58 |
%clean |
59 |
%__rm -rf %{buildroot} |
60 |
|
61 |
%if %mdkversion < 200900 |
62 |
%post -n %{libname} -p /sbin/ldconfig |
63 |
%endif |
64 |
|
65 |
%if %mdkversion < 200900 |
66 |
%postun -n %{libname} -p /sbin/ldconfig |
67 |
%endif |
68 |
|
69 |
%files |
70 |
%defattr(-,root,root) |
71 |
%doc README ChangeLog |
72 |
%{_bindir}/* |
73 |
|
74 |
%files -n %{libname} |
75 |
%defattr(-,root,root) |
76 |
%{_libdir}/*.so.* |
77 |
|
78 |
%files -n %{develname} |
79 |
%defattr(-,root,root) |
80 |
%{_includedir}/* |
81 |
%{_libdir}/*.la |
82 |
%{_libdir}/*.a |
83 |
%{_libdir}/*.so |
84 |
|
85 |
|
86 |
|