]> git.pld-linux.org Git - packages/g-wrap.git/blob - g-wrap.spec
initialization of spec file.
[packages/g-wrap.git] / g-wrap.spec
1
2 Summary:        A tool for exporting C libraries into Scheme interpreters
3 Name:           g-wrap
4 Version:        0.9.1
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Group(pl):      Biblioteki
9 Source:         ftp://ftp.gnucash.org/pub/g-wrap/%{name}-%{version}.tar.gz
10 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 BuildRequires:  guile
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(pl):      Programowanie/Biblioteki
22 Requires:       %{name} = %{version}
23
24 %description devel
25 headers for developing programs using g-wrap
26
27 %package static
28 Summary:        Static libraries for developing programs using g-wrap
29 Summary(pl):    Biblioteki statyczne g-wrap
30 Group:          Development/Libraries
31 Group(pl):      Programowanie/Biblioteki
32 Requires:       %{name}-devel = %{version}
33
34 %description static
35 Static libraries for developing programs using g-wrap.
36  
37
38 %prep
39 %setup -q
40
41
42 %build
43 %configure
44 make
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 make DESTDIR=$RPM_BUILD_ROOT install
49
50 strip --strip-all $RPM_BUILD_ROOT%{_bindir}/g-scan
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.169132 seconds and 3 git commands to generate.