tidy-html5/tidy-html5.spec

83 lines
2.1 KiB
RPMSpec
Raw Normal View History

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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 5.6.0-1mamba
- package created using the webbuild interface