]>
Commit | Line | Data |
---|---|---|
59152d12 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
dbcf1d3f | 5 | Summary: Enlightenment Fundation Libraries - Embryo |
5536bddf | 6 | Summary(pl.UTF-8): Podstawowe biblioteki Enlightenmenta - Embryo |
2585c38c | 7 | Name: embryo |
a46dd224 | 8 | Version: 0.9.9.050 |
9 | Release: 0.1 | |
2585c38c | 10 | License: BSD |
27bcff7a | 11 | Group: Libraries |
a46dd224 | 12 | Source0: http://download.enlightenment.org/snapshots/2008-09-25/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 6c56918b4808b7486e485e9a94d974fa | |
b8f7a762 | 14 | URL: http://enlightenment.org/p.php?p=about/libs/embryo |
27bcff7a JB |
15 | BuildRequires: autoconf >= 2.52 |
16 | BuildRequires: automake >= 1.6 | |
2585c38c | 17 | BuildRequires: libtool |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
24b2d257 | 20 | %undefine __cxx |
21 | ||
2585c38c | 22 | %description |
23 | Embryo is a tiny library designed as a virtual machine to interpret a | |
24 | limited set of small compiled programs. | |
25 | ||
102d1ca8 JR |
26 | %description -l pl.UTF-8 |
27 | Embryo to mała biblioteka zaprojektowana jako maszyna wirtualna do | |
28 | interpretowania ograniczonego zbioru małych skompilowanych programów. | |
dbcf1d3f | 29 | |
2585c38c | 30 | %package devel |
dbcf1d3f | 31 | Summary: Embryo header files |
5536bddf | 32 | Summary(pl.UTF-8): Pliki nagłówkowe Embryo |
2585c38c | 33 | Group: Development/Libraries |
dbcf1d3f | 34 | Requires: %{name} = %{version}-%{release} |
2585c38c | 35 | |
36 | %description devel | |
dbcf1d3f JB |
37 | Header files for Embryo. |
38 | ||
102d1ca8 JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe Embryo. | |
2585c38c | 41 | |
42 | %package static | |
dbcf1d3f | 43 | Summary: Static Embryo library |
5536bddf | 44 | Summary(pl.UTF-8): Statyczna biblioteka Embryo |
2585c38c | 45 | Group: Development/Libraries |
dbcf1d3f | 46 | Requires: %{name}-devel = %{version}-%{release} |
2585c38c | 47 | |
48 | %description static | |
dbcf1d3f JB |
49 | Static Embryo library. |
50 | ||
102d1ca8 | 51 | %description static -l pl.UTF-8 |
dbcf1d3f | 52 | Statyczna biblioteka Embryo. |
2585c38c | 53 | |
54 | %prep | |
5ca41195 | 55 | %setup -q |
2585c38c | 56 | |
57 | %build | |
1ad0d17c | 58 | %{__libtoolize} |
59 | %{__aclocal} | |
60 | %{__autoconf} | |
61 | %{__autoheader} | |
62 | %{__automake} | |
59152d12 KK |
63 | %configure \ |
64 | %{!?with_static_libs:--disable-static} | |
2585c38c | 65 | %{__make} |
66 | ||
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
dbcf1d3f | 69 | |
2585c38c | 70 | %{__make} install \ |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
45b83e18 | 81 | %doc AUTHORS COPYING COPYING-PLAIN README |
2585c38c | 82 | %attr(755,root,root) %{_bindir}/embryo_cc |
27bcff7a JB |
83 | %attr(755,root,root) %{_libdir}/libembryo.so.*.*.* |
84 | %attr(755,root,root) %ghost %{_libdir}/libembryo.so.0 | |
45b83e18 JB |
85 | # for embryo_cc |
86 | %{_datadir}/%{name} | |
2585c38c | 87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
dbcf1d3f JB |
90 | %attr(755,root,root) %{_libdir}/libembryo.so |
91 | %{_libdir}/libembryo.la | |
45b83e18 | 92 | %{_includedir}/Embryo.h |
2585c38c | 93 | %{_pkgconfigdir}/embryo.pc |
2585c38c | 94 | |
59152d12 | 95 | %if %{with static_libs} |
2585c38c | 96 | %files static |
97 | %defattr(644,root,root,755) | |
98 | %{_libdir}/libembryo.a | |
59152d12 | 99 | %endif |