]> git.pld-linux.org Git - packages/dyncall.git/commitdiff
- new
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 Apr 2020 16:51:38 +0000 (18:51 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 29 Apr 2020 16:51:38 +0000 (18:51 +0200)
dyncall.spec [new file with mode: 0644]

diff --git a/dyncall.spec b/dyncall.spec
new file mode 100644 (file)
index 0000000..a9afc09
--- /dev/null
@@ -0,0 +1,101 @@
+#
+# Conditional build:
+%bcond_without doc     # manual.pdf
+#
+Summary:       A Generic Dynamic FFI package
+Summary(pl.UTF-8):     Ogólny pakiet do dynamicznych wywołań obcych funkcji (FFI)
+Name:          dyncall
+Version:       1.1
+Release:       1
+License:       MIT
+Group:         Libraries
+#Source0Download: https://dyncall.org/download
+Source0:       https://dyncall.org/r%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: db7dab95f721dc1c0c513a7e4ab28345
+#Patch0:       %{name}-what.patch
+URL:           https://dyncall.org/
+BuildRequires: cmake >= 2.6
+%if %{with doc}
+BuildRequires: texlive-format-pdflatex
+BuildRequires: texlive-latex
+BuildRequires: texlive-latex-moreverb
+# for html
+#BuildRequires:        texlive-tex4ht
+%endif
+ExclusiveArch: %{ix86} %{x8664} x32 %{arm} aarch64 ia64 mips mips64 ppc ppc64 sh sparc sparcv9 sparc64
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+dyncall is a low-level toolkit providing a portable abstraction for
+handling native code dynamically at run time.
+
+It comprises three independent components, available as C libraries,
+namely:
+- 'dyncall' for making function calls,
+- 'dyncallback' for writing generic callback handlers, and
+- 'dynload' for loading code.
+
+%description -l pl.UTF-8
+dyncall to zestaw niskopoziomowych narzędzi z przenośną abstrakcją
+dynamicznej obsługi kodu natywnego w czasie uruchomienia.
+
+Obejmuje trzy niezależne komponenty, dostępne jako biblioteki C:
+- dyncall do wywołań funkcji
+- dyncallback do pisania generycznej obsługi wywołań zwrotnych
+- dynload do ładowania kodu
+
+%package doc
+Summary:       Documentation for dyncall libraries
+Summary(pl.UTF-8):     Dokumentacja bibliotek dyncall
+Group:         Documentation
+%if "%{_rpmversion}" >= "4.6"
+BuildArch:     noarch
+%endif
+
+%description doc
+Documentation for dyncall libraries.
+
+%description doc -l pl.UTF-8
+Dokumentacja bibliotek dyncall.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+cd ..
+
+%if %{with doc}
+cd doc/manual
+%{__make} -f Makefile.generic pdf
+
+# TODO: html (but broken even with SHELL=/bin/bash)
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS BUGS ChangeLog LICENSE README ToDo
+%{_libdir}/libdyncall_s.a
+%{_libdir}/libdyncallback_s.a
+%{_libdir}/libdynload_s.a
+%{_includedir}/dyncall*.h
+%{_includedir}/dynload.h
+
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc doc/manual/manual.pdf
+%endif
This page took 0.103105 seconds and 4 git commands to generate.