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