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