]> git.pld-linux.org Git - packages/ffcall.git/blame - ffcall.spec
- updated
[packages/ffcall.git] / ffcall.spec
CommitLineData
561c751d 1%define snap 20090629
2
cac2c25e 3Summary: Libraries for building foreign function call interfaces
8445a4fb 4Summary(pl.UTF-8): Biblioteki do tworzenia interfejsów wywołań obcych funkcji
cac2c25e 5Name: ffcall
561c751d 6Version: 1.11
7Release: 0.%{snap}.1
cac2c25e
JB
8Epoch: 1
9License: GPL
10Group: Libraries
561c751d 11# cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/libffcall co .
12Source0: %{name}-%{snap}.tar.bz2
13# Source0-md5: a5190885da8e701a012bb282bfb3c51b
264bd3ff 14Patch0: %{name}-make-jN.patch
6bbe77a9 15Patch1: %{name}-sparcv9.patch
ab1059b7 16# https://savannah.gnu.org/bugs/index.php?22081
17Patch2: %{name}-sparc64.patch
561c751d 18URL: http://savannah.gnu.org/projects/libffcall
cac2c25e
JB
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22This is a collection of four libraries which can be used to build
23foreign function call interfaces in embedded interpreters.
24
25The 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
32This version B includes some minor configuration changes so that files
33are installed in the proper place. Also it compiles on cygwin and
34mingw32.
35
304739ce
JR
36%description -l pl.UTF-8
37To jest zestaw czterech bibliotek, których można użyć do tworzenia
38interfejsów wywołań obcych procedur we wbudowanych interpreterach.
cac2c25e
JB
39
40Te 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
47Ta wersja B zawiera trochę małych zmian w konfiguracji, dzięki którym
48pliki instalują się we właściwych miejscach. A także kompiluje się pod
cac2c25e
JB
49cygwinem i mingw32.
50
51%package devel
52Summary: Development files for ffcall libraries
8445a4fb 53Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ffcall
cac2c25e 54Group: Development/Libraries
87c4ec88 55Requires: %{name} = %{epoch}:%{version}-%{release}
cac2c25e
JB
56
57%description devel
58Development files for ffcall libraries: headers and static trampoline
59and vacall libraries.
60
304739ce
JR
61%description devel -l pl.UTF-8
62Pliki dla programistów używających bibliotek ffcall: nagłówki i
cac2c25e
JB
63statyczne biblioteki trampoline oraz vacall.
64
65%package static
66Summary: Static versions of avcall and callback libraries
8445a4fb 67Summary(pl.UTF-8): Statyczne wersje bibliotek avcall i callback
cac2c25e 68Group: Development/Libraries
87c4ec88 69Requires: %{name}-devel = %{epoch}:%{version}-%{release}
cac2c25e
JB
70
71%description static
72Static versions of avcall and callback libraries.
73
304739ce 74%description static -l pl.UTF-8
cac2c25e
JB
75Statyczne 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
90rm -rf $RPM_BUILD_ROOT
91install -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 100rm -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
This page took 0.067119 seconds and 4 git commands to generate.