]> 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 6e2c48c2ded886d2f41e38dba91dd30948f5adf1..a7430dce374e78f4f79da3e966bf1373690a93b2 100644 (file)
--- a/tidy.spec
+++ b/tidy.spec
@@ -1,17 +1,17 @@
-# $Revision: 1.21 $ $Date: 2003-05-25 06:27:20 $
-# TODO:
-#   - Add docs from http://tidy.sourceforge.net/docs/tidy_docs.tgz
-#   - Make all ac/am stuff. (Now only oryginal make is used)
-
 Summary:       Utility to clean up and pretty print HTML files
-Summary(pl):   Narzêdzie do porz±dkowania kodu HTML
+Summary(pl.UTF-8):     Narzędzie do porządkowania kodu HTML
 Name:          tidy
-Version:       20030205
-Release:       0.9
+Version:       5.6.0
+Release:       1
+Epoch:         1
 License:       distributable
 Group:         Applications/Text
-Source0:        http://tidy.sourceforge.net/src/tidy_src.tgz
-URL:           http://tidy.sourceforge.net/
+#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
@@ -19,55 +19,82 @@ Tidy is utility for cleaning and pretty printing HTML files. It can
 help in keeping your WWW sources in unified format (case of tags) and
 proper encoding of different character sets.
 
-%description -l pl
-Tidy jest narzêdziem s³u¿±cym do czytelnego formatowania i
-wy¶wietlania ¼ród³owego kodu HTML. U³atwia utrzymanie porz±dku w
-¼ród³ach stron WWW, utrzymanie jednolitej konwecji (wielko¶æ liter w
-tagach) oraz poprawnego kodowania ró¿nych standardów znaków.
+%description -l pl.UTF-8
+Tidy jest narzędziem służącym do czytelnego formatowania i
+wyświetlania źródłowego kodu HTML. Ułatwia utrzymanie porządku w
+źródłach stron WWW, utrzymanie jednolitej konwencji (wielkość liter w
+tagach) oraz poprawnego kodowania różnych standardów znaków.
 
 %package devel
-Summary:        Tidy header & static library files.
-Summary(pl):    Pliki nag³ówkowe i biblioteki dla programu Tidy.
-Group:          Developement
+Summary:       Tidy header files
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki dla programu Tidy
+Group:         Development/Libraries
+Requires:      %{name} = %{epoch}:%{version}-%{release}
 
 %description devel
-Tidy header & static library files
+Tidy header files.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki dla programu Tidy.
+
+%package static
+Summary:       Static Tidy library
+Summary(pl.UTF-8):     Statyczna biblioteka Tidy
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
-%description -l pl devel
-Pliki nag³ówkowe i biblioteki dla programu Tidy.
+%description static
+Static Tidy library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka Tidy.
 
 %prep
-%setup -q -n %{name}
+%setup -q -n tidy-html5-%{version}
 
 %build
-#%%{__make} CFLAGS="%{rpmcflags}"
-%{__make}
+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 \
-#            DESTDIR=$RPM_BUILD_ROOT
-# Above doesn't work so:
 
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/%{name},%{_libdir}}
-install bin/* ${RPM_BUILD_ROOT}%{_bindir}
-install include/* ${RPM_BUILD_ROOT}%{_includedir}/%{name} 
-install lib/* ${RPM_BUILD_ROOT}%{_libdir}
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-#install tidy ${RPM_BUILD_ROOT}%{_bindir}
-#install tidy.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
+# not installed
+install build/tab2space $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-#%%doc Overview.html release-notes.html grid.gif tidy.gif
-#%%{_mandir}/man1/*
-%%attr(755,root,root) %{_bindir}/*
+%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)
-%{_includedir}/%{name}/*.h
-%{_libdir}/*.a
+%attr(755,root,root) %{_libdir}/libtidy.so
+%{_includedir}/tidy
+%{_pkgconfigdir}/tidy.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtidys.a
This page took 0.049364 seconds and 4 git commands to generate.