diff --git a/README.md b/README.md index 68662d1..b482463 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # uriparser +uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C89 ("ANSI C"). + diff --git a/uriparser.spec b/uriparser.spec new file mode 100644 index 0000000..5c9d7e5 --- /dev/null +++ b/uriparser.spec @@ -0,0 +1,85 @@ +Name: uriparser +Version: 0.9.4 +Release: 1mamba +Summary: A strictly RFC 3986 compliant URI parsing and handling library written in C89 ("ANSI C") +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://uriparser.github.io/ +Source: https://github.com/uriparser/uriparser.git/uriparser-%{version}/uriparser-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +uriparser is a strictly RFC 3986 compliant URI parsing and handling library written in C89 ("ANSI C"). + +%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} +## note: you can add this requirement if .pc files are provided by this package +#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}/uriparse + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/liburiparser.so.* +%doc AUTHORS COPYING THANKS + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/uriparser +%{_includedir}/uriparser/*.h +%dir %{_libdir}/cmake/uriparser-%{version} +%{_libdir}/cmake/uriparser-%{version}/uriparser*.cmake +%{_libdir}/liburiparser.so +%{_libdir}/pkgconfig/liburiparser.pc +%{_datadir}/doc/uriparser/uriparser-0.9.4.qch +%dir %{_docdir}/uriparser +%dir %{_docdir}/uriparser/html +%{_datadir}/doc/uriparser/html/* +%doc ChangeLog README.md + +%changelog +* Thu Jan 07 2021 Silvan Calarco 0.9.4-1mamba +- package created using the webbuild interface