3 %bcond_without doc # manual.pdf
5 Summary: A Generic Dynamic FFI package
6 Summary(pl.UTF-8): Ogólny pakiet do dynamicznych wywołań obcych funkcji (FFI)
12 #Source0Download: https://dyncall.org/download
13 Source0: https://dyncall.org/r%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 4f96a2f86aae116f84ee7db01b164d41
15 Patch0: %{name}-libdir.patch
16 # https://dyncall.org/pub/dyncall/dyncall/raw-rev/1e65b8911603
17 Patch1: %{name}-cmake.patch
18 URL: https://dyncall.org/
19 BuildRequires: cmake >= 2.6
20 BuildRequires: rpm-build >= 4.6
22 BuildRequires: texlive-format-pdflatex
23 BuildRequires: texlive-latex
25 BuildRequires: texlive-latex-extend
26 BuildRequires: texlive-latex-moreverb
28 #BuildRequires: texlive-tex4ht
30 ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 ia64 mips mips64 ppc ppc64 sh sparc sparcv9 sparc64
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _debugsource_packages 0
36 dyncall is a low-level toolkit providing a portable abstraction for
37 handling native code dynamically at run time.
39 It comprises three independent components, available as C libraries,
41 - 'dyncall' for making function calls,
42 - 'dyncallback' for writing generic callback handlers, and
43 - 'dynload' for loading code.
45 %description -l pl.UTF-8
46 dyncall to zestaw niskopoziomowych narzędzi z przenośną abstrakcją
47 dynamicznej obsługi kodu natywnego w czasie uruchomienia.
49 Obejmuje trzy niezależne komponenty, dostępne jako biblioteki C:
50 - dyncall do wywołań funkcji
51 - dyncallback do pisania generycznej obsługi wywołań zwrotnych
52 - dynload do ładowania kodu
55 Summary: Documentation for dyncall libraries
56 Summary(pl.UTF-8): Dokumentacja bibliotek dyncall
61 Documentation for dyncall libraries.
63 %description doc -l pl.UTF-8
64 Dokumentacja bibliotek dyncall.
81 %{__make} -f Makefile.generic pdf
83 # TODO: html (but broken even with SHELL=/bin/bash)
87 rm -rf $RPM_BUILD_ROOT
89 %{__make} -C build install \
90 DESTDIR=$RPM_BUILD_ROOT
93 rm -rf $RPM_BUILD_ROOT
96 %defattr(644,root,root,755)
97 %doc AUTHORS BUGS ChangeLog LICENSE README ToDo
98 %{_libdir}/libdyncall_s.a
99 %{_libdir}/libdyncallback_s.a
100 %{_libdir}/libdynload_s.a
101 %{_includedir}/dyncall*.h
102 %{_includedir}/dynload.h
106 %defattr(644,root,root,755)
107 %doc doc/manual/manual.pdf