]> git.pld-linux.org Git - packages/g-wrap.git/blob - g-wrap.spec
- release 2,
[packages/g-wrap.git] / g-wrap.spec
1 Summary:        A tool for exporting C libraries into Scheme interpreters
2 Name:           g-wrap
3 Version:        0.9.1
4 Release:        2
5 License:        GPL
6 Group:          Libraries
7 Group(fr):      Librairies
8 Group(pl):      Biblioteki
9 Source0:        ftp://ftp.gnucash.org/pub/g-wrap/%{name}-%{version}.tar.gz
10 BuildRequires:  guile-devel >= 1.4
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 This is a tool for specifying types, functions, and constants to
15 import into a Scheme interpreter, and for generating code (in C) to
16 interface these to the Guile and RScheme interpreters in particular.
17
18 %package devel
19 Summary:        headers for developing programs using g-wrap
20 Group:          Development/Libraries
21 Group(fr):      Development/Librairies
22 Group(pl):      Programowanie/Biblioteki
23 Requires:       %{name} = %{version}
24
25 %description devel
26 headers for developing programs using g-wrap.
27
28 %package static
29 Summary:        Static libraries for developing programs using g-wrap
30 Summary(pl):    Biblioteki statyczne g-wrap
31 Group:          Development/Libraries
32 Group(fr):      Development/Librairies
33 Group(pl):      Programowanie/Biblioteki
34 Requires:       %{name}-devel = %{version}
35
36 %description static
37 Static libraries for developing programs using g-wrap.
38
39 %prep
40 %setup -q
41
42 %build
43 LDFLAGS="-s"; export LDFLAGS
44 %configure
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 %{__make} install DESTDIR=$RPM_BUILD_ROOT
50
51 strip --strip-unneed $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
52
53 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/* NEWS README
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post   -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %post devel
62 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
63  
64 %postun devel
65 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
66
67 %files
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_libdir}/lib*.so.*.*
70 %attr(755,root,root) %{_bindir}/g-scan
71 %attr(755,root,root) %{_bindir}/g-wrap
72 %attr(755,root,root) %{_libexecdir}/*
73 %{_datadir}/guile/site/g-wrap
74 %{_datadir}/guile/site/g-wrap.scm
75
76 %files devel
77 %defattr(644,root,root,755)
78 %doc {NEWS,README}.gz
79 %attr(755,root,root) %{_bindir}/g-wrap-config
80 %attr(755,root,root) %{_libdir}/lib*.so
81 %attr(755,root,root) %{_libdir}/lib*.la
82 %{_includedir}/*.h
83 %{_infodir}/*
84
85 %files static
86 %defattr(644,root,root,755)
87 %{_libdir}/lib*.a
This page took 0.087812 seconds and 3 git commands to generate.