%define libname %mklibname %{name} %{version} %define develname %mklibname %{name} -d Summary: Program for tidying up messy HTML Name: tidyp Version: 1.04 Release: %mkrel 4 Group: Text tools License: W3C License URL: http://tidyp.com/ Source0: http://github.com/downloads/petdance/tidyp/%{name}-%{version}.tar.gz Patch0: tidy-20081224cvs-fix-format-errors.patch %description tidyp is a program that can validate your HTML, as well as modify it to be more clean and standard. tidyp does not validate HTML 5. libtidyp is the library on which the program is based. It can be used by any other program that can interface to it. The Perl module HTML::Tidy is based on this library, allowing Perl programmers to easily validate HTML. tidyp is a fork of the tidy project. %package -n %{libname} Summary: Main library for %{name} Group: System/Libraries %description -n %{libname} This package contains the library needed to run programs dynamically linked with %{name}. %package -n %{develname} Summary: Headers for developing programs that will use %{name} Group: Development/Other Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains the headers that programmers will need to develop applications which will use %{name}. %prep %setup -q %patch0 -p1 %build %configure2_5x %make %install %makeinstall_std # don't ship .a, .la find %{buildroot} -name *.a | xargs rm -f find %{buildroot} -name *.la | xargs rm -f %files %defattr(-,root,root) %doc README ChangeLog %{_bindir}/* %files -n %{libname} %{_libdir}/*.so.* %files -n %{develname} %{_includedir}/* %{_libdir}/*.so %changelog * Mon Jan 14 2013 umeabot <umeabot> 1.04-4.mga3 + Revision: 384572 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Jan 28 2012 kamil <kamil> 1.04-3.mga2 + Revision: 202377 - rebuild against gcc 4.6.2 - clean .spec * Sat Jan 22 2011 ahmad <ahmad> 1.04-2.mga1 + Revision: 31685 - drop old/unneeded scriptlets - don't ship .a, .la - imported package tidyp