diff --git a/README.md b/README.md index 5233697..4c5b929 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # tidy-html5 +The granddaddy of HTML tools, with support for modern standards. + diff --git a/tidy-html5.spec b/tidy-html5.spec new file mode 100644 index 0000000..8f40629 --- /dev/null +++ b/tidy-html5.spec @@ -0,0 +1,82 @@ +Name: tidy-html5 +Version: 5.6.0 +Release: 1mamba +Summary: The granddaddy of HTML tools, with support for modern standards +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.html-tidy.org +## GITSOURCE https://github.com/htacg/tidy-html5.git 5.6.0 +Source: https://github.com/htacg/tidy-html5.git/%{version}/tidy-html5-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The granddaddy of HTML tools, with support for modern standards. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/tidy +%{_mandir}/man1/tidy.1* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libtidy.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/tidy.h +%{_includedir}/tidybuffio.h +%{_includedir}/tidyenum.h +%{_includedir}/tidyplatform.h +%{_libdir}/libtidy.so +%{_libdir}/libtidys.a +%{_libdir}/pkgconfig/tidy.pc +%doc README.md + + +%changelog +* Tue Apr 23 2019 Silvan Calarco 5.6.0-1mamba +- package created using the webbuild interface