uriparser/uriparser.spec

90 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

Name: uriparser
Version: 0.9.6
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 <silvan.calarco@mambasoft.it>
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
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%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-%{version}.qch
%dir %{_docdir}/uriparser
%dir %{_docdir}/uriparser/html
%{_datadir}/doc/uriparser/html/*
%doc ChangeLog README.md
%changelog
* Fri Jan 07 2022 Automatic Build System <autodist@mambasoft.it> 0.9.6-1mamba
- automatic version update by autodist
* Mon Mar 22 2021 Automatic Build System <autodist@mambasoft.it> 0.9.5-1mamba
- automatic version update by autodist
* Thu Jan 07 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.4-1mamba
- package created using the webbuild interface