]> git.pld-linux.org Git - SPECS.git/blob - see.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / see.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Simple ECMAScript Engine
6 Summary(pl.UTF-8):      Prosty "silnik" ECMAScriptu
7 Name:           see
8 Version:        3.0.1376
9 Release:        1
10 License:        BSD-like
11 Group:          Libraries
12 Source0:        http://www.adaptive-enterprises.com.au/~d/software/see/%{name}-%{version}.tar.gz
13 # Source0-md5:  b67a8ff3e5e987328540fd4c01323700
14 Patch0:         %{name}-no_static.patch
15 URL:            http://www.adaptive-enterprises.com.au/~d/software/see
16 BuildRequires:  autoconf >= 2.52
17 BuildRequires:  automake
18 BuildRequires:  libltdl-devel
19 BuildRequires:  gc-devel
20 BuildRequires:  perl-base
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 SEE is a library that provides an ECMAScript (JavaScript)
25 run-time environment.
26
27 %description -l pl.UTF-8
28 SEE jest biblioteką udostępniającą środowisko uruchomieniowe
29 ECMAScriptu (JavaScriptu).
30
31 %package devel
32 Summary:        Header files for SEE library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki SEE
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       gc-devel
37
38 %description devel
39 Header files for SEE library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki SEE.
43
44 %package static
45 Summary:        Static SEE library
46 Summary(pl.UTF-8):      Statyczna biblioteka SEE
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static SEE library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka SEE.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 %build
61 %{__libtoolize}
62 %{__aclocal}
63 %{__autoconf}
64 %{__automake}
65 %{__autoheader}
66 %configure \
67         CPPFLAGS="$CPPFLAGS -I/usr/include/gc" \
68         %{!?with_static_libs:--disable-static}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post   -p /sbin/ldconfig
81 %postun -p /sbin/ldconfig
82
83 %files
84 %defattr(644,root,root,755)
85 %doc AUTHORS COPYING ChangeLog NEWS README TODO
86 %attr(755,root,root) %{_bindir}/see-shell
87 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
88
89 %files devel
90 %defattr(644,root,root,755)
91 %doc doc/USAGE.html
92 %attr(755,root,root) %{_bindir}/libsee-config
93 %attr(755,root,root) %{_libdir}/lib*.so
94 %{_libdir}/lib*.la
95 %{_includedir}/see
96
97 %if %{with static_libs}
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/lib*.a
101 %endif
This page took 0.570502 seconds and 3 git commands to generate.