%undefine _hardened_build %global git_commit 1fcbd0b9303d044d8f09a8ef652afa8c0400ee8b %global git_date 20200324 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} Summary: Alex's Ada Assortment of Utilities Name: semantic_versioning Version: 20201023 Release: 1.%{git_suffix}%{?dist} License: GPLv2+ Group: Development/Libraries URL: https://github.com/alire-project/semantic_versioning Source0: https://github.com/alire-project/%{name}/archive/%{git_commit}/%{name}-%{version}.tar.gz BuildRequires: gprbuild gcc-gnat fedora-gnat-project-common %description %{summary} %package devel Summary: Development files for semantic_versioning Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary} %prep %autosetup -p1 -n %{name}-0.1 %build export SEMVER_BUILD_MODE="Shared_Lib" gprbuild semantic_versioning.gpr %{GPRbuild_optflags} %install cat semantic_versioning.gpr export SEMVER_BUILD_MODE="Shared_Lib" gprinstall -p semantic_versioning.gpr --sources-subdir=%{buildroot}/%{_includedir}/%{name} \ --project-subdir=%{buildroot}/%_GNAT_project_dir --exec-subdir=%{buildroot}/%{_bindir} \ --lib-subdir=%{buildroot}/%{_libdir}/%{name} --link-lib-subdir=%{buildroot}/%{_libdir} cat %{buildroot}/%_GNAT_project_dir/semantic_versioning.gpr rm -rf %{buildroot}/%_GNAT_project_dir/manifests/ %files %defattr(-,root,root,-) %doc %{_libdir}/%{name}/libsemverada.so %files devel %{_includedir}/%{name} %_GNAT_project_dir/semantic_versioning.gpr %dir %{_libdir}/%{name} %{_libdir}/libsemverada.so %{_libdir}/%{name}/*.ali %{_libdir}/*.so* %changelog * Fri Oct 23 2020 Pavel Zhukov - - Initial build.