]>
Commit | Line | Data |
---|---|---|
c8960d32 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
4fdd6ca6 | 5 | %define ecore_ver 0.9.9.044 |
6 | %define edje_ver 0.9.9.044 | |
7 | %define epsilon_ver 0.3.0.013 | |
8 | %define evas_ver 0.9.9.044 | |
9 | %define _snap 20080813 | |
191e0373 | 10 | |
6595d4f2 | 11 | Summary: Evas "smart objects" |
b2fd6688 | 12 | Summary(pl.UTF-8): "Inteligentne obiekty" Evas |
6595d4f2 | 13 | Name: esmart |
4fdd6ca6 | 14 | Version: 0.9.0.043 |
15 | Release: 0.%{_snap}.1 | |
6595d4f2 | 16 | License: BSD |
17 | Group: X11/Libraries | |
4fdd6ca6 | 18 | Source0: %{name}-%{version}-%{_snap}.tar.bz2 |
19 | # Source0-md5: 2e22c2f22485e333dedc275f3e40d5b8 | |
6595d4f2 | 20 | URL: http://enlightenment.org/ |
d8204237 JB |
21 | BuildRequires: autoconf >= 2.52 |
22 | BuildRequires: automake >= 1.6 | |
a4c7db4a | 23 | # ecore-evas ecore-x |
191e0373 BZ |
24 | BuildRequires: ecore-devel >= %{ecore_ver} |
25 | BuildRequires: edje-devel >= %{edje_ver} | |
26 | BuildRequires: epsilon-devel >= %{epsilon_ver} | |
27 | BuildRequires: evas-devel >= %{evas_ver} | |
a4c7db4a JB |
28 | BuildRequires: imlib2-devel >= 1.0.0 |
29 | BuildRequires: libltdl-devel | |
b0e1c1af | 30 | BuildRequires: libtool |
870c29f1 | 31 | BuildRequires: pkgconfig |
2c34a63d | 32 | Requires: %{name}-libs = %{version}-%{release} |
6595d4f2 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
ee1acfc1 | 35 | %undefine __cxx |
36 | ||
6595d4f2 | 37 | %description |
38 | Esmart contains "smart" pre-built evas objects. It currently includes | |
39 | a thumbnail generator and a horizontal/vertical container. | |
40 | ||
2f034a50 JR |
41 | %description -l pl.UTF-8 |
42 | Esmart zawiera "inteligentne" wstępnie zbudowane obiekty evas. | |
9fc8df7d JB |
43 | Aktualnie zawiera generator miniaturek i kontener poziomy/pionowy. |
44 | ||
2c34a63d | 45 | %package libs |
46 | Summary: Esmart libraries | |
b2fd6688 | 47 | Summary(pl.UTF-8): Biblioteka Esmart |
2c34a63d | 48 | Group: X11/Libraries |
49 | ||
50 | %description libs | |
51 | Esmart libraries. | |
52 | ||
2f034a50 | 53 | %description libs -l pl.UTF-8 |
2c34a63d | 54 | Biblioteka Esmart. |
55 | ||
6595d4f2 | 56 | %package devel |
9fc8df7d | 57 | Summary: Evas "smart objects" header files |
b2fd6688 | 58 | Summary(pl.UTF-8): Pliki nagłówkowe "inteligentnych obiektów" Evas |
6595d4f2 | 59 | Group: Development/Libraries |
2c34a63d | 60 | Requires: %{name}-libs = %{version}-%{release} |
a4c7db4a | 61 | # ecore-evas ecore-x |
191e0373 BZ |
62 | Requires: ecore-devel >= %{ecore_ver} |
63 | Requires: edje-devel >= %{edje_ver} | |
64 | Requires: epsilon-devel >= %{epsilon_ver} | |
65 | Requires: evas-devel >= %{evas_ver} | |
a4c7db4a | 66 | Requires: imlib2-devel >= 1.0.0 |
bd0768bb | 67 | Requires: libltdl-devel |
6595d4f2 | 68 | |
69 | %description devel | |
9fc8df7d JB |
70 | Evas "smart objects" development headers. |
71 | ||
2f034a50 JR |
72 | %description devel -l pl.UTF-8 |
73 | Pliki nagłówkowe "inteligentnych obiektów" Evas. | |
6595d4f2 | 74 | |
75 | %package static | |
9fc8df7d | 76 | Summary: Static Esmart libraries |
b2fd6688 | 77 | Summary(pl.UTF-8): Statyczne biblioteki Esmart |
6595d4f2 | 78 | Group: Development/Libraries |
9fc8df7d | 79 | Requires: %{name}-devel = %{version}-%{release} |
6595d4f2 | 80 | |
81 | %description static | |
9fc8df7d JB |
82 | Static Esmart libraries. |
83 | ||
2f034a50 | 84 | %description static -l pl.UTF-8 |
9fc8df7d | 85 | Statyczne biblioteki Esmart. |
6595d4f2 | 86 | |
87 | %prep | |
4fdd6ca6 | 88 | %setup -q -n %{name}-%{version}-%{_snap} |
6595d4f2 | 89 | |
90 | %build | |
22b7b184 | 91 | %{__libtoolize} |
a4c7db4a | 92 | %{__aclocal} |
22b7b184 | 93 | %{__autoconf} |
94 | %{__autoheader} | |
95 | %{__automake} | |
c8960d32 KK |
96 | %configure \ |
97 | %{!?with_static_libs:--disable-static} | |
6595d4f2 | 98 | %{__make} |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
9fc8df7d | 102 | |
6595d4f2 | 103 | %{__make} install \ |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
a4c7db4a JB |
106 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/layout/*.{la,a} |
107 | ||
d8204237 JB |
108 | # libs not build |
109 | rm $RPM_BUILD_ROOT%{_pkgconfigdir}/esmart_{file_dialog,textarea}.pc | |
110 | ||
6595d4f2 | 111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
a4c7db4a JB |
114 | %post libs -p /sbin/ldconfig |
115 | %postun libs -p /sbin/ldconfig | |
6595d4f2 | 116 | |
117 | %files | |
118 | %defattr(644,root,root,755) | |
a4c7db4a | 119 | %doc AUTHORS COPYING README |
52115843 | 120 | %attr(755,root,root) %{_bindir}/esmart_text_entry_test |
9fc8df7d | 121 | %attr(755,root,root) %{_bindir}/esmart_test |
2c34a63d | 122 | %{_datadir}/%{name} |
123 | ||
124 | %files libs | |
125 | %defattr(644,root,root,755) | |
d8204237 JB |
126 | %attr(755,root,root) %{_libdir}/libesmart_container.so.*.*.* |
127 | %attr(755,root,root) %ghost %{_libdir}/libesmart_container.so.0 | |
128 | %attr(755,root,root) %{_libdir}/libesmart_draggies.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libesmart_draggies.so.0 | |
130 | %attr(755,root,root) %{_libdir}/libesmart_resize.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libesmart_resize.so.0 | |
132 | %attr(755,root,root) %{_libdir}/libesmart_text_entry.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libesmart_text_entry.so.0 | |
134 | %attr(755,root,root) %{_libdir}/libesmart_thumb.so.*.*.* | |
135 | %attr(755,root,root) %ghost %{_libdir}/libesmart_thumb.so.0 | |
136 | %attr(755,root,root) %{_libdir}/libesmart_trans_x11.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libesmart_trans_x11.so.0 | |
6595d4f2 | 138 | %dir %{_libdir}/%{name} |
139 | %dir %{_libdir}/%{name}/layout | |
140 | %attr(755,root,root) %{_libdir}/%{name}/layout/*.so | |
6595d4f2 | 141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
d8204237 JB |
144 | %attr(755,root,root) %{_libdir}/libesmart_container.so |
145 | %attr(755,root,root) %{_libdir}/libesmart_draggies.so | |
146 | %attr(755,root,root) %{_libdir}/libesmart_resize.so | |
147 | %attr(755,root,root) %{_libdir}/libesmart_text_entry.so | |
148 | %attr(755,root,root) %{_libdir}/libesmart_thumb.so | |
149 | %attr(755,root,root) %{_libdir}/libesmart_trans_x11.so | |
150 | %{_libdir}/libesmart_container.la | |
151 | %{_libdir}/libesmart_draggies.la | |
152 | %{_libdir}/libesmart_resize.la | |
153 | %{_libdir}/libesmart_text_entry.la | |
154 | %{_libdir}/libesmart_thumb.la | |
155 | %{_libdir}/libesmart_trans_x11.la | |
9fc8df7d | 156 | %dir %{_includedir}/Esmart |
52115843 | 157 | %{_includedir}/Esmart/Esmart_*.h |
d8204237 JB |
158 | %{_pkgconfigdir}/esmart_container.pc |
159 | %{_pkgconfigdir}/esmart_draggies.pc | |
160 | %{_pkgconfigdir}/esmart_resize.pc | |
161 | %{_pkgconfigdir}/esmart_text_entry.pc | |
162 | %{_pkgconfigdir}/esmart_thumb.pc | |
163 | %{_pkgconfigdir}/esmart_trans_x11.pc | |
6595d4f2 | 164 | |
c8960d32 | 165 | %if %{with static_libs} |
6595d4f2 | 166 | %files static |
167 | %defattr(644,root,root,755) | |
d8204237 JB |
168 | %{_libdir}/libesmart_container.a |
169 | %{_libdir}/libesmart_draggies.a | |
170 | %{_libdir}/libesmart_resize.a | |
171 | %{_libdir}/libesmart_text_entry.a | |
172 | %{_libdir}/libesmart_thumb.a | |
173 | %{_libdir}/libesmart_trans_x11.a | |
c8960d32 | 174 | %endif |