Name: florist
Version: 2017
Release: 7%{?dist}
Summary: Open Source implementation of the POSIX Ada Bindings
License: GPLv2+
URL: https://www.adacore.com/download/more
Source: http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed009#/florist-gpl-2017-src.tar.gz
# The long hexadecimal number is what identifies the file on the server.
# Don't forget to update it!
Source2: florist.gpr
# adaptation to an API change in System.Soft_Links:
Patch1: florist-2017-gcc8.patch
BuildRequires: fedora-gnat-project-common
BuildRequires: gprbuild gcc-gnat
BuildRequires: make
# Build only on architectures where GPRbuild is available:
ExclusiveArch: %{GPRbuild_arches}
%global common_description_en \
Florist is an implementation of the IEEE Standards 1003.5: 1992, \
IEEE STD 1003.5b: 1996, and parts of IEEE STD 1003.5c: 1998, \
also known as the POSIX Ada Bindings. Using this library, \
you can call operating system services from within Ada programs.
%description %{common_description_en}
%package devel
Summary: Development files for Florist
License: GPLv2+
Requires: fedora-gnat-project-common
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %{common_description_en}
The florist-devel package contains source code and linking information for
developing applications that use Florist.
%prep
%autosetup -n %{name}-gpl-%{version}-src -p0
%build
%configure --enable-shared
make %{?_smp_mflags} GCCFLAGS='%{optflags}' \
GPRBUILD_FLAGS='%{GPRbuild_optflags} -XLIBRARY_TYPE=relocatable' TARGET=
%install
# The easiest way to collect all the files seems to be to ignore the inadequate
# Make rule and invoke GPRinstall directly.
gprinstall -p -m -Pflorist -XLIBRARY_TYPE=relocatable \
--prefix='%{buildroot}%{_prefix}' \
--link-lib-subdir=%{buildroot}%{_libdir} \
--lib-subdir=%{buildroot}%{_libdir}/%{name}
chmod 444 %{buildroot}%{_libdir}/%{name}/*.ali
cp -p %{SOURCE2} %{buildroot}%{_GNAT_project_dir}
# GPRinstall's manifest files are architecture-specific because they contain
# what seems to be checksums of architecture-specific files, so they must not
# be under _datadir. Their function is apparently undocumented, but my crystal
# ball tells me that they're used when GPRinstall uninstalls or upgrades
# packages. The manifest file is therefore irrelevant in this RPM package, so
# delete it.
rm -rf %{buildroot}%{_GNAT_project_dir}/manifests
%check
%{_rpmconfigdir}/check-rpaths
%files
%doc README
%license COPYING
# There is a COPYING3 in the 2017 tarball, but the source files' headers say
# version 2 or later, so COPYING3 is left out of the package for now.
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libflorist.so.1
%{_libdir}/libflorist.so.1
%files devel
%{_GNAT_project_dir}/%{name}.gpr
%{_includedir}/%{name}
%{_libdir}/%{name}/*.ali
%{_libdir}/%{name}/libflorist.so
%{_libdir}/libflorist.so
%changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2017-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2017-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Feb 12 2019 Björn Persson <Bjorn@Rombobjörn.se> - 2017-4
- Built for x86.
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2017-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Feb 18 2018 Björn Persson <Bjorn@Rombobjörn.se> - 2017-1
- Upgraded to version 2017.
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2011-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2011-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2011-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Feb 02 2016 Björn Persson <Bjorn@Rombobjörn.se> - 2011-19
- Rebuilt with GCC 6 prerelease.
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Apr 29 2015 Peter Robinson <pbrobinson@fedoraproject.org> 2011-17
- rebuild (gcc / gnat 5)
* Sat Oct 11 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-16
- Exclude arm
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue May 13 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2011-13
- Use GNAT_arches rather than an explicit list
* Wed May 7 2014 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-12
- Rebuild with new libgnat
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Jan 30 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-10
- Add gcc-gnat to BR
* Sat Jan 26 2013 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-9
- Rebuild with new GCC-.48
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Tue Jan 10 2012 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-7
- Rebuild for new GCC-4.7
* Wed Aug 10 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-6
- Add ExclusiveArch
* Wed Aug 03 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-5
- Add posix-implemetation_signals
- Add posix-permissions_implementation
* Tue Aug 02 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 2011-4
- Initial build
- Add C sources to *.so
- patch autoconf