File ada.spec of Package ada
#
# spec file for package sha-2
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define major 3
Name: ada
Version: %{major}.3.0
Release: 0
Summary: WHATWG-compliant and fast URL parser written in modern C++
License: Apache-2.0 or MIT
URL: https://ada-url.com/
Source: https://github.com/ada-url/ada/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%description
WHATWG-compliant and fast URL parser written in modern C++, part of Internet Archive, Node.js, Clickhouse, Redpanda, Kong, Telegram, Adg uard, Datadog and Cloudflare Workers.
%package devel
Summary: Development files for ada library
%description devel
Development files for ada library
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%check
%ctest
%post -p /usr/bin/ldconfig
%postun -p /usr/bin/ldconfig
%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_libdir}/libada.so.%{major}
%{_libdir}/libada.so.%{version}
%files devel
%{_libdir}/libada.so
%{_includedir}/ada.h
%{_includedir}/ada_c.h
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/ada.pc
%changelog