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