/[packages]/cauldron/tidy/current/SPECS/tidy.spec
ViewVC logotype

Annotation of /cauldron/tidy/current/SPECS/tidy.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1146779 - (hide annotations) (download)
Thu Aug 24 01:11:06 2017 UTC (6 years, 8 months ago) by ovitters
File size: 2255 byte(s)
SILENT use autopatch
1 mikala 17621 %define epoch 1
2     %define apiver 0.99
3     %define major 0
4     %define libname %mklibname %{name} %{apiver} %{major}
5     %define develname %mklibname %name -d
6    
7     Summary: Program for tidying up messy HTML
8 ovitters 649367 Name: tidy
9     Version: 20090904
10 umeabot 952766 Release: %mkrel 11
11 mikala 17621 Epoch: %{epoch}
12     Group: Text tools
13     License: W3C License
14     URL: http://tidy.sourceforge.net/
15     Source0: http://tidy.sourceforge.net/src/tidy-%{version}.tar.bz2
16     Patch0: tidy-20081224cvs-fix-format-errors.patch
17 luigiwalser 494067 Patch1: tidy-20080322cvs-preserve-table-id.patch
18 luigiwalser 823062 Patch2: tidy-20090904cvs-negative-len.patch
19 mikala 17621 Requires: %{libname} = %{epoch}:%{version}
20     BuildRequires: xsltproc
21    
22     %description
23     tidy is a program for tidying up messy html, for example, when we do
24     html in vi, and we make the text italic with the <i> </i> tag some of us may
25     forget to end the italic text with </i>. tidy fixes this.
26    
27     Install this if you need a program to help you tidy up your HTML.
28    
29     %package -n %{libname}
30     Summary: Main library for %{name}
31     Group: System/Libraries
32     Obsoletes: %mklibname tidy 0.99
33    
34     %description -n %{libname}
35     This package contains the library needed to run programs dynamically
36     linked with %{name}.
37    
38     %package -n %{develname}
39     Summary: Headers for developing programs that will use %{name}
40     Group: Development/Other
41     Requires: %{libname} = %{epoch}:%{version}
42     Provides: lib%{name}-devel = %{epoch}:%{version}
43     Provides: %{name}-devel = %{epoch}:%{version}
44     Obsoletes: %mklibname -d tidy 0
45     Obsoletes: %mklibname -d tidy 0.99
46    
47     %description -n %{develname}
48     This package contains the headers that programmers will need to develop
49     applications which will use %{name}.
50    
51     %prep
52     %setup -q
53 ovitters 1146779 %autopatch -p1
54 mikala 17621
55     %build
56     sh build/gnuauto/setup.sh
57 fwang 305204 %configure2_5x --disable-static
58 mikala 17621 %make
59    
60     # generate man page
61     console/tidy -xml-help > htmldoc/tidy-help.xml
62     console/tidy -xml-config > htmldoc/tidy-config.xml
63     xsltproc -o tidy.1 htmldoc/tidy1.xsl htmldoc/tidy-help.xml
64    
65     %install
66 fwang 305204 %makeinstall_std
67 mikala 17621
68 fwang 305204 rm -f %{buildroot}%{_libdir}/*.la
69    
70 mikala 17621 install -d -m 755 %{buildroot}%{_mandir}/man1
71     install -m 644 tidy.1 %{buildroot}%{_mandir}/man1/%{name}.1
72    
73     %files
74     %doc htmldoc/*
75     %{_bindir}/*
76     %{_mandir}/man1/*
77    
78     %files -n %{libname}
79 fwang 305204 %{_libdir}/libtidy-%{apiver}.so.%{major}
80     %{_libdir}/libtidy-%{apiver}.so.%{major}.*
81 mikala 17621
82     %files -n %{develname}
83     %{_includedir}/*
84     %{_libdir}/*.so

  ViewVC Help
Powered by ViewVC 1.1.30