]> git.pld-linux.org Git - packages/tidy.git/blobdiff - tidy.spec
- switch to successor project (tidy-html5), updated to 5.6.0 (new soname; 0.99 left...
[packages/tidy.git] / tidy.spec
index 9500481c3885723fa9594bc9ba42ac98328c1a0b..a7430dce374e78f4f79da3e966bf1373690a93b2 100644 (file)
--- a/tidy.spec
+++ b/tidy.spec
@@ -1,20 +1,17 @@
-%define                _snap   20080116
 Summary:       Utility to clean up and pretty print HTML files
 Summary(pl.UTF-8):     Narzędzie do porządkowania kodu HTML
 Name:          tidy
-Version:       0.%{_snap}
+Version:       5.6.0
 Release:       1
 Epoch:         1
 License:       distributable
 Group:         Applications/Text
-#Source0:      http://tidy.sourceforge.net/src/tidy_src.tgz
-# tidy projects no longer releases tarballs. Use debian ones
-Source0:       http://ftp.de.debian.org/debian/pool/main/t/tidy/tidy_20080116cvs.orig.tar.gz
-# Source0-md5: ff4558a920cfd7247f17e79b143f5a69
-URL:           http://tidy.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+#Source0Download: https://github.com/htacg/tidy-html5/releases
+Source0:       https://github.com/htacg/tidy-html5/archive/5.6.0/tidy-html5-%{version}.tar.gz
+# Source0-md5: 85c8a163d9ece6a02fe12bc9bddbc455
+URL:           http://www.html-tidy.org/
+BuildRequires: cmake >= 2.8.12
+BuildRequires: libxslt-progs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -53,22 +50,30 @@ Static Tidy library.
 Statyczna biblioteka Tidy.
 
 %prep
-%setup -q -n %{name}-%{_snap}cvs
+%setup -q -n tidy-html5-%{version}
 
 %build
-%{__libtoolize}
-%{__aclocal}
-%{__automake}
-%{__autoconf}
-%configure
+install -d build
+cd build
+# .pc file template expects relative {INCLUDE,LIB}_INSTALL_DIR
+%cmake .. \
+       -DBUILD_TAB2SPACE=ON \
+       -DINCLUDE_INSTALL_DIR=include/tidy \
+       -DLIB_INSTALL_DIR=%{_lib} \
+       -DTIDY_COMPAT_HEADERS=ON \
+       -DTIDY_CONSOLE_SHARED=ON
+
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# not installed
+install build/tab2space $RPM_BUILD_ROOT%{_bindir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -77,16 +82,19 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc htmldoc/*
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%doc README.md README/{API_AND_NAMESPACE.md,ATTRIBUTES.md,LICENSE.md,MESSAGES.md,OPTIONS.md,TAGS.md}
+%attr(755,root,root) %{_bindir}/tab2space
+%attr(755,root,root) %{_bindir}/tidy
+%attr(755,root,root) %{_libdir}/libtidy.so.%{version}
+%attr(755,root,root) %ghost %{_libdir}/libtidy.so.5
+%{_mandir}/man1/tidy.1*
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
-%{_includedir}/*.h
+%attr(755,root,root) %{_libdir}/libtidy.so
+%{_includedir}/tidy
+%{_pkgconfigdir}/tidy.pc
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libtidys.a
This page took 0.210561 seconds and 4 git commands to generate.