Files
spawn/.copr/spawn.spec
Maxim Reznik d3533ad662 W102-006 Restore Finalize of Posix/Glib
lost during the code refactoring.

Also a minor fix for RPM specification after the license changes.
2023-01-02 14:47:09 +02:00

63 lines
1.5 KiB
RPMSpec

%undefine _hardened_build
%define _gprdir %_GNAT_project_dir
Name: spawn
Version: 0.1.0
Release: git%{?dist}
Summary: Ada Process API
Group: Development/Libraries
License: GPLv3+ with exceptions
URL: https://github.com/AdaCore/spawn
### Direct download is not availeble
Source0: spawn.tar.gz
BuildRequires: gcc-gnat
BuildRequires: fedora-gnat-project-common >= 3
BuildRequires: gprbuild
# gprbuild only available on these:
ExclusiveArch: %GPRbuild_arches
%description
This library provides simple API to spawn processes and communicate with them.
%package devel
Group: Development/Libraries
License: GPLv3+ with exceptions
Summary: Devel package for spawn
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: fedora-gnat-project-common >= 2
%description devel
Devel package for spawn
%prep
%setup -q -n %{name}
%build
make %{?_smp_mflags} GPRBUILD_FLAGS="-p -j0 -R" LIBRARY_TYPE=relocatable #GPRBUILD_FLAGS="%Gnatmake_optflags"
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} PREFIX=%{_prefix} GPRDIR=%{_gprdir} BINDIR=%{_bindir} LIBRARY_TYPE=relocatable
%check
make %{?_smp_mflags} GPRBUILD_FLAGS="%Gnatmake_optflags" check LIBRARY_TYPE=relocatable
%files
%doc LICENSE
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libspawn.so
%{_libdir}/libspawn.so
%files devel
%doc README.md
%{_libdir}/%{name}/*.ali
%{_includedir}/%{name}
%{_gprdir}/spawn.gpr
%{_gprdir}/manifests/spawn
%changelog
* Sat Feb 22 2020 Maxim Reznik <reznikmm@gmail.com> - 0.1.0-git
- Initial package