]>
Commit | Line | Data |
---|---|---|
561c751d | 1 | %define snap 20090629 |
2 | ||
cac2c25e | 3 | Summary: Libraries for building foreign function call interfaces |
8445a4fb | 4 | Summary(pl.UTF-8): Biblioteki do tworzenia interfejsów wywołań obcych funkcji |
cac2c25e | 5 | Name: ffcall |
561c751d | 6 | Version: 1.11 |
7 | Release: 0.%{snap}.1 | |
cac2c25e JB |
8 | Epoch: 1 |
9 | License: GPL | |
10 | Group: Libraries | |
561c751d | 11 | # cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co . |
12 | Source0: %{name}-%{snap}.tar.bz2 | |
13 | # Source0-md5: a5190885da8e701a012bb282bfb3c51b | |
264bd3ff | 14 | Patch0: %{name}-make-jN.patch |
6bbe77a9 | 15 | Patch1: %{name}-sparcv9.patch |
ab1059b7 | 16 | # https://savannah.gnu.org/bugs/index.php?22081 |
17 | Patch2: %{name}-sparc64.patch | |
561c751d | 18 | URL: http://savannah.gnu.org/projects/libffcall |
cac2c25e JB |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | This is a collection of four libraries which can be used to build | |
23 | foreign function call interfaces in embedded interpreters. | |
24 | ||
25 | The four packages are: | |
26 | - avcall - calling C functions with variable arguments | |
27 | - vacall - C functions accepting variable argument prototypes | |
28 | - trampoline - closures as first-class C functions | |
29 | - callback - closures with variable arguments as first-class C | |
30 | functions (a reentrant combination of vacall and trampoline) | |
31 | ||
32 | This version B includes some minor configuration changes so that files | |
33 | are installed in the proper place. Also it compiles on cygwin and | |
34 | mingw32. | |
35 | ||
304739ce JR |
36 | %description -l pl.UTF-8 |
37 | To jest zestaw czterech bibliotek, których można użyć do tworzenia | |
38 | interfejsów wywołań obcych procedur we wbudowanych interpreterach. | |
cac2c25e JB |
39 | |
40 | Te cztery pakiety to: | |
304739ce JR |
41 | - avcall - wywoływanie funkcji w C ze zmiennymi argumentami |
42 | - vacall - funkcje w C akceptujące prototypy ze zmiennymi argumentami | |
43 | - trampoline - domknięcia jako funkcje C pierwszej klasy | |
44 | - callback - domknięcia ze zmiennymi argumentami jako funkcje C | |
45 | pierwszej klasy (zagnieżdżalna kombinacja vacall i trampoline) | |
46 | ||
47 | Ta wersja B zawiera trochę małych zmian w konfiguracji, dzięki którym | |
48 | pliki instalują się we właściwych miejscach. A także kompiluje się pod | |
cac2c25e JB |
49 | cygwinem i mingw32. |
50 | ||
51 | %package devel | |
52 | Summary: Development files for ffcall libraries | |
8445a4fb | 53 | Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ffcall |
cac2c25e | 54 | Group: Development/Libraries |
87c4ec88 | 55 | Requires: %{name} = %{epoch}:%{version}-%{release} |
cac2c25e JB |
56 | |
57 | %description devel | |
58 | Development files for ffcall libraries: headers and static trampoline | |
59 | and vacall libraries. | |
60 | ||
304739ce JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki dla programistów używających bibliotek ffcall: nagłówki i | |
cac2c25e JB |
63 | statyczne biblioteki trampoline oraz vacall. |
64 | ||
65 | %package static | |
66 | Summary: Static versions of avcall and callback libraries | |
8445a4fb | 67 | Summary(pl.UTF-8): Statyczne wersje bibliotek avcall i callback |
cac2c25e | 68 | Group: Development/Libraries |
87c4ec88 | 69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
cac2c25e JB |
70 | |
71 | %description static | |
72 | Static versions of avcall and callback libraries. | |
73 | ||
304739ce | 74 | %description static -l pl.UTF-8 |
cac2c25e JB |
75 | Statyczne wersje bibliotek avcall i callback. |
76 | ||
77 | %prep | |
561c751d | 78 | %setup -q -n %{name}-%{snap} |
264bd3ff | 79 | %patch0 -p1 |
6bbe77a9 | 80 | %patch1 -p1 |
ab1059b7 | 81 | %patch2 -p0 |
cac2c25e JB |
82 | |
83 | %build | |
87c4ec88 | 84 | %configure \ |
cac2c25e JB |
85 | --enable-shared |
86 | ||
264bd3ff | 87 | %{__make} |
cac2c25e JB |
88 | |
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | install -d $RPM_BUILD_ROOT%{_mandir} | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
f11a7762 | 96 | # don't need those since we have man pages |
97 | %{__rm} $RPM_BUILD_ROOT/usr/share/html/*.html | |
98 | ||
cac2c25e | 99 | %clean |
f11a7762 | 100 | rm -fr $RPM_BUILD_ROOT |
cac2c25e JB |
101 | |
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files | |
106 | %defattr(644,root,root,755) | |
87c4ec88 | 107 | %doc NEWS README |
cac2c25e JB |
108 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
87c4ec88 | 112 | %doc */*.html |
f11a7762 | 113 | %attr(755,root,root) %{_libdir}/lib*.so* |
cac2c25e JB |
114 | %{_libdir}/lib*.la |
115 | %{_libdir}/libtrampoline.a | |
116 | %{_libdir}/libvacall.a | |
117 | %{_includedir}/* | |
118 | %{_mandir}/man?/* | |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libavcall.a | |
123 | %{_libdir}/libcallback.a |