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