%global _with_checks 0 Name: casendra Version: 0.3 Release: 11%{?dist} Summary: Library and set of tools to work with strata Group: Applications/Engineering License: GPLv3+ URL: https://github.com/landgraf/casendra Source0: %{name}-%{version}.tar.gz BuildRequires: gcc-gnat aws-devel > 3.2 %if 0%{?fedora} && 0%{?fedora} <= 28 BuildRequires: gnatcoll-devel >= 2014 %else BuildRequires: gnatcoll-core-devel >= 2018 %endif BuildRequires: gprbuild ## Workaround of aws problem ## remove it once aws requirements are fixed BuildRequires: openldap-devel gnutls-devel templates_parser-devel BuildRequires: fedora-gnat-project-common > 3 Requires: %{name}-libs%{?_isa} = %{version}-%{release} ExclusiveArch: %GPRbuild_arches %description %{summary} %prep %setup -q %package libs Summary: libraries for %{name} License: GPLv3+ Requires: %{name}%{?_isa} = %{version}-%{release} %description libs %{summary} %package devel Summary: Devel files for %{name} License: GPLv3+ Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary} %build DEBUG=True make %{?_smp_mflags} BUILDER="gprbuild -p %{GPRbuild_optflags}" %check export LD_LIBRARY_PATH="%{buildroot}/%{_libdir}/:$LD_LIBRARY_PATH" %if %{_with_checks} make check %endif %install %make_install prefix=%{buildroot}/%{_prefix} libdir=%{buildroot}/%{_libdir} cd %{buildroot}/%{_libdir} && ln -f -s %{name}/lib%{name}.so.%{version} . %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc %{name}.conf.templ %{_bindir}/%{name}_cli %{_bindir}/%{name}d %{_bindir}/csdownloader %{_bindir}/csclean %files devel %{_libdir}/%{name}/*.ali %{_includedir}/%{name} %{_libdir}/lib%{name}.so %{_libdir}/%{name}/lib%{name}.so %if 0%{?fedora} >= 25 %{_libdir}/lib%{name}.so.0 %{_libdir}/%{name}/lib%{name}.so.0 %endif %_GNAT_project_dir/manifests %_GNAT_project_dir/%{name}*gpr %files libs %{_libdir}/lib%{name}.so.%{version} %{_libdir}/%{name}/lib%{name}.so.%{version} %changelog * Mon Nov 5 2018 Pavel Zhukov - 0.3-8 - Bump release. Add get request debug * Mon Nov 5 2018 Pavel Zhukov - 0.3-7 - Add debug variable * Tue Jul 18 2017 Pavel Zhukov - 0.3-6 - Limit on gprbuild arches * Fri Jul 07 2017 Pavel Zhukov - 0.3-5 - Specify libs versions explicitely to avoid copr issue - Bump so version - Build major versions for F25 and later * Mon Jan 16 2017 Pavel Zhukov - 0.3-1 - New release (0.3) - Improve org mode comments - Bugfixes * Mon Dec 05 2016 Pavel Zhukov - 0.2-8 - Fix packaging issue * Wed Feb 03 2016 Pavel Zhukov - 0.2-5 - Fix bug with unique filenames * Thu Jun 23 2015 Pavel Zhukov - 0.2-2 - New release (0.2) * Wed Jun 3 2015 Pavel Zhukov - 0.1-3 - Package template * Tue Jun 02 2015 Pavel Zhukov - 0.1-2 - Initial build