diff --git a/README.md b/README.md index 24d93f9..4c84d9b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ada +WHATWG-compliant and fast URL parser written in modern C++, part of Node.js, Redpanda, Kong, Telegram and Cloudflare Workers. + diff --git a/ada.spec b/ada.spec new file mode 100644 index 0000000..48bc638 --- /dev/null +++ b/ada.spec @@ -0,0 +1,78 @@ +Name: ada +Version: 2.9.2 +Release: 1mamba +Summary: WHATWG-compliant and fast URL parser +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://ada-url.com/ +Source: https://github.com/ada-url/ada.git/v%{version}/ada-%{version}.tar.bz2 +License: Apache License 2.0, MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libfmt-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +WHATWG-compliant and fast URL parser written in modern C++, part of Node.js, Redpanda, Kong, Telegram and Cloudflare Workers. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +WHATWG-compliant and fast URL parser written in modern C++, part of Node.js, Redpanda, Kong, Telegram and Cloudflare Workers. +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} + +%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 +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libada.so.* +%doc LICENSE-APACHE LICENSE-MIT + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/adaparse +%{_includedir}/ada.h +%dir %{_includedir}/ada +%{_includedir}/ada/*.h +%{_includedir}/ada_c.h +%{_includedir}/cxxopts.hpp +%{_libdir}/libada.so +%{_libdir}/pkgconfig/cxxopts.pc +%dir %{_libdir}/cmake/ada +%{_libdir}/cmake/ada/*.cmake +%dir %{_libdir}/cmake/cxxopts +%{_libdir}/cmake/cxxopts/*.cmake +%doc README.md + +%changelog +* Sat Oct 05 2024 Silvan Calarco 2.9.2-1mamba +- package created using the webbuild interface