]> git.pld-linux.org Git - packages/ffcall.git/blame - ffcall.spec
- fix %files; duplicate libraries identified by Natalia Dragun <dna@xatka.net>
[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
69522ab0 21%undefine __cxx
22
cac2c25e
JB
23%description
24This is a collection of four libraries which can be used to build
25foreign function call interfaces in embedded interpreters.
26
27The four packages are:
28- avcall - calling C functions with variable arguments
29- vacall - C functions accepting variable argument prototypes
30- trampoline - closures as first-class C functions
31- callback - closures with variable arguments as first-class C
32 functions (a reentrant combination of vacall and trampoline)
33
34This version B includes some minor configuration changes so that files
35are installed in the proper place. Also it compiles on cygwin and
36mingw32.
37
304739ce
JR
38%description -l pl.UTF-8
39To jest zestaw czterech bibliotek, których można użyć do tworzenia
40interfejsów wywołań obcych procedur we wbudowanych interpreterach.
cac2c25e
JB
41
42Te cztery pakiety to:
304739ce
JR
43- avcall - wywoływanie funkcji w C ze zmiennymi argumentami
44- vacall - funkcje w C akceptujące prototypy ze zmiennymi argumentami
45- trampoline - domknięcia jako funkcje C pierwszej klasy
46- callback - domknięcia ze zmiennymi argumentami jako funkcje C
47 pierwszej klasy (zagnieżdżalna kombinacja vacall i trampoline)
48
49Ta wersja B zawiera trochę małych zmian w konfiguracji, dzięki którym
50pliki instalują się we właściwych miejscach. A także kompiluje się pod
cac2c25e
JB
51cygwinem i mingw32.
52
53%package devel
54Summary: Development files for ffcall libraries
8445a4fb 55Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ffcall
cac2c25e 56Group: Development/Libraries
87c4ec88 57Requires: %{name} = %{epoch}:%{version}-%{release}
cac2c25e
JB
58
59%description devel
60Development files for ffcall libraries: headers and static trampoline
61and vacall libraries.
62
304739ce
JR
63%description devel -l pl.UTF-8
64Pliki dla programistów używających bibliotek ffcall: nagłówki i
cac2c25e
JB
65statyczne biblioteki trampoline oraz vacall.
66
67%package static
68Summary: Static versions of avcall and callback libraries
8445a4fb 69Summary(pl.UTF-8): Statyczne wersje bibliotek avcall i callback
cac2c25e 70Group: Development/Libraries
87c4ec88 71Requires: %{name}-devel = %{epoch}:%{version}-%{release}
cac2c25e
JB
72
73%description static
74Static versions of avcall and callback libraries.
75
304739ce 76%description static -l pl.UTF-8
cac2c25e
JB
77Statyczne wersje bibliotek avcall i callback.
78
79%prep
561c751d 80%setup -q -n %{name}-%{snap}
264bd3ff 81%patch0 -p1
6bbe77a9 82%patch1 -p1
ab1059b7 83%patch2 -p0
cac2c25e
JB
84
85%build
87c4ec88 86%configure \
cac2c25e
JB
87 --enable-shared
88
264bd3ff 89%{__make}
cac2c25e
JB
90
91%install
92rm -rf $RPM_BUILD_ROOT
93install -d $RPM_BUILD_ROOT%{_mandir}
94
95%{__make} install \
96 DESTDIR=$RPM_BUILD_ROOT
97
f11a7762 98# don't need those since we have man pages
69522ab0 99%{__rm} $RPM_BUILD_ROOT%{_datadir}/html/*.html
f11a7762 100
cac2c25e 101%clean
f11a7762 102rm -fr $RPM_BUILD_ROOT
cac2c25e
JB
103
104%post -p /sbin/ldconfig
105%postun -p /sbin/ldconfig
106
107%files
108%defattr(644,root,root,755)
87c4ec88 109%doc NEWS README
bbb36a01 110%attr(755,root,root) %{_libdir}/libavcall.so.*.*.*
111%attr(755,root,root) %ghost %{_libdir}/libavcall.so.?
112%attr(755,root,root) %{_libdir}/libcallback.so.*.*.*
113%attr(755,root,root) %ghost %{_libdir}/libcallback.so.?
cac2c25e
JB
114
115%files devel
116%defattr(644,root,root,755)
87c4ec88 117%doc */*.html
bbb36a01 118%attr(755,root,root) %{_libdir}/libavcall.so
119%attr(755,root,root) %{_libdir}/libcallback.so
120%{_libdir}/libavcall.la
121%{_libdir}/libcallback.la
cac2c25e
JB
122%{_libdir}/libtrampoline.a
123%{_libdir}/libvacall.a
bbb36a01 124%{_includedir}/*.h
125%{_mandir}/man3/*.3*
cac2c25e
JB
126
127%files static
128%defattr(644,root,root,755)
129%{_libdir}/libavcall.a
130%{_libdir}/libcallback.a
This page took 0.09321 seconds and 4 git commands to generate.