%undefine _hardened_build %global git_commit 080ca96388e12dd7b5863463acbad3dc862e06ee %global git_date 20200324 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} Summary: Creation of XML-formatted output from within Ada programs Name: ajunitgen Version: 20201023 Release: 1.%{git_suffix}%{?dist} License: GPLv2+ Group: Development/Libraries URL: https://github.com/mosteo/ajunitgen Source0: https://github.com/mosteo/%{name}/archive/%{git_commit}/%{name}-%{version}.tar.gz BuildRequires: gprbuild gcc-gnat fedora-gnat-project-common BuildRequires: xmlezout-devel %description %{summary} %package devel Summary: Development files for ajunitgen Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary} %prep %autosetup -p1 -n %{name}-0.1 %build gprbuild ajunitgen.gpr %{GPRbuild_optflags} %install gprinstall -p %{name}.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} rm -rf %{buildroot}/%_GNAT_project_dir/manifests/ %files %defattr(-,root,root,-) %doc %{_libdir}/%{name}/lib%{name}.so.?.? %files devel %_GNAT_project_dir/*.gpr %{_includedir}/%{name} %dir %{_libdir}/%{name} %{_libdir}/%{name}/lib%{name}.so.? %{_libdir}/%{name}/lib%{name}.so %{_libdir}/lib%{name}.so* %{_libdir}/%{name}/*.ali %changelog * Fri Oct 23 2020 Pavel Zhukov - - Initial build.