dcontainers/dcontainers.spec

85 lines
2.4 KiB
RPMSpec
Raw Normal View History

%define gitver %(echo %version | tr _ -)
Name: dcontainers
Version: 0.9.0
Release: 1mamba
Summary: dlang containers backed by std.experimental.allocator
Group: Development/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://dlang-community.github.io/containers/index.html
Source: https://github.com/dlang-community/containers.git/v%{gitver}/containers-%{version}.tar.bz2
License: Boost Software License
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: ldc
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
dlang containers backed by std.experimental.allocator.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
dlang containers backed by std.experimental.allocator.
%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 -n containers-%{version}
%build
%meson \
--wrap-mode=default
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
#%files -n lib%{name}
#%defattr(-,root,root)
#%{_libdir}/libdcontainers.so.*
#%{_libdir}/libstdx-allocator.so.*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/d/containers
%dir %{_includedir}/d/containers/containers
%{_includedir}/d/containers/containers/*
#%dir %{_includedir}/d/stdx-allocator
#%dir %{_includedir}/d/stdx-allocator/stdx
#%dir %{_includedir}/d/stdx-allocator/stdx/allocator
#%{_includedir}/d/stdx-allocator/stdx/allocator/*
%{_libdir}/libdcontainers.a
#%{_libdir}/libdcontainers.so
#%{_libdir}/libstdx-allocator.so
%{_libdir}/pkgconfig/dcontainers.pc
#%{_libdir}/pkgconfig/stdx-allocator.pc
%doc README.md
%changelog
* Sat Jul 23 2022 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Sat Jul 13 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.0_alpha.15-1mamba
- package created using the webbuild interface