diff options
Diffstat (limited to 'libraries/ecore/ecore.spec.in')
-rw-r--r-- | libraries/ecore/ecore.spec.in | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/libraries/ecore/ecore.spec.in b/libraries/ecore/ecore.spec.in new file mode 100644 index 0000000..f542bf7 --- /dev/null +++ b/libraries/ecore/ecore.spec.in | |||
@@ -0,0 +1,234 @@ | |||
1 | # Conditional build stuff; from rpm 4.4 /usr/lib/rpm/macros. | ||
2 | # bcond_without defaults to WITH, and vice versa. Yes, it's | ||
3 | # ass-backward. Blame PLD. | ||
4 | # from KainX's changes to evas... | ||
5 | %if %{!?with:1}0 | ||
6 | %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} | ||
7 | %endif | ||
8 | %if %{!?without:1}0 | ||
9 | %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} | ||
10 | %endif | ||
11 | %if %{!?bcond_with:1}0 | ||
12 | %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} | ||
13 | %endif | ||
14 | %if %{!?bcond_without:1}0 | ||
15 | %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} | ||
16 | %endif | ||
17 | |||
18 | ## disabled features | ||
19 | %bcond_with lib_ecore_directfb | ||
20 | %bcond_with lib_ecore_sdl | ||
21 | |||
22 | ## enabled features | ||
23 | ##%bcond_without module_engine_software_x11 | ||
24 | %bcond_without lib_ecore_fb | ||
25 | %bcond_without lib_ecore_imf | ||
26 | |||
27 | # This just keeps a missing doxygen from killing the build. | ||
28 | %define _missing_doc_files_terminate_build 0 | ||
29 | |||
30 | %define breq_lib_ecore_directfb %{?with_lib_ecore_directfb:DirectFB} | ||
31 | %define breq_lib_ecore_sdl %{?with_lib_ecore_sdl:SDL-devel} | ||
32 | |||
33 | %define ac_with_lib_ecore_directfb --%{?with_lib_ecore_directfb:en}%{!?with_lib_ecore_directfb:dis}able-ecore-directfb | ||
34 | %define ac_with_lib_ecore_fb --%{?with_lib_ecore_fb:en}%{!?with_lib_ecore_fb:dis}able-ecore-fb | ||
35 | %define ac_with_lib_ecore_imf --%{?with_lib_ecore_imf:en}%{!?with_lib_ecore_imf:dis}able-ecore-imf | ||
36 | %define ac_with_lib_ecore_sdl --%{?with_lib_ecore_sdl:en}%{!?with_lib_ecore_sdl:dis}able-ecore-sdl | ||
37 | |||
38 | %{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}} | ||
39 | |||
40 | Summary: Enlightened Core X interface library | ||
41 | Name: @PACKAGE@ | ||
42 | Version: @VERSION@ | ||
43 | Release: %{_rel} | ||
44 | License: BSD | ||
45 | Group: User Interface/X | ||
46 | Source: %{name}-%{version}.tar.gz | ||
47 | URL: http://www.enlightenment.org | ||
48 | Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>} | ||
49 | Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} | ||
50 | Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} | ||
51 | #BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel, c-ares-devel | ||
52 | BuildRequires: libjpeg-devel, openssl-devel %{?breq_lib_ecore_directfb} | ||
53 | BuildRequires: curl-devel, evas-devel, eet-devel %{?breq_lib_ecore_sdl} | ||
54 | BuildRoot: %{_tmppath}/%{name}-%{version}-root | ||
55 | |||
56 | %description | ||
57 | Ecore is the event/X abstraction layer that makes doing selections, | ||
58 | Xdnd, general X stuff, event loops, timeouts and idle handlers fast, | ||
59 | optimized, and convenient. It's a separate library so anyone can make | ||
60 | use of the work put into Ecore to make this job easy for applications. | ||
61 | |||
62 | %package devel | ||
63 | Summary: Ecore headers and development libraries. | ||
64 | Group: Development/Libraries | ||
65 | Requires: %{name} = %{version} | ||
66 | Requires: curl-devel, openssl-devel, evas-devel, eet-devel | ||
67 | Requires: ecore-con, ecore-evas, ecore-file, ecore-ipc | ||
68 | Requires: ecore-x %{?with_lib_ecore_fb:ecore-fb} %{?with_lib_ecore_directfb:ecore-directfb} | ||
69 | |||
70 | %description devel | ||
71 | Ecore development files | ||
72 | |||
73 | %package con | ||
74 | Summary: Ecore Connection Library | ||
75 | Group: Development/Libraries | ||
76 | Requires: %{name} = %{version} | ||
77 | |||
78 | %description con | ||
79 | Ecore Connection Library | ||
80 | |||
81 | %if %{with lib_ecore_directfb} | ||
82 | %package directfb | ||
83 | Summary: Ecore DirectFB system functions | ||
84 | Group: Development/Libraries | ||
85 | Requires: %{name} = %{version} | ||
86 | %description directfb | ||
87 | Ecore DirectFB system functions | ||
88 | %endif | ||
89 | |||
90 | %package evas | ||
91 | Summary: Ecore Evas Wrapper Library | ||
92 | Group: Development/Libraries | ||
93 | Requires: %{name} = %{version} | ||
94 | |||
95 | %description evas | ||
96 | Ecore Evas Wrapper Library | ||
97 | |||
98 | %if %{with lib_ecore_fb} | ||
99 | %package fb | ||
100 | Summary: Ecore frame buffer system functions | ||
101 | Group: Development/Libraries | ||
102 | Requires: %{name} = %{version} | ||
103 | %description fb | ||
104 | Ecore frame buffer system functions | ||
105 | %endif | ||
106 | |||
107 | %package file | ||
108 | Summary: Ecore File Library | ||
109 | Group: Development/Libraries | ||
110 | Requires: %{name} = %{version} | ||
111 | |||
112 | %description file | ||
113 | Ecore File Library | ||
114 | |||
115 | %if %{with lib_ecore_imf} | ||
116 | %package imf | ||
117 | Summary: Ecore IMF functions | ||
118 | Group: Development/Libraries | ||
119 | Requires: %{name} = %{version} | ||
120 | %description imf | ||
121 | Ecore IMF functions | ||
122 | %endif | ||
123 | |||
124 | %package input | ||
125 | Summary: Ecore input functions | ||
126 | Group: Development/Libraries | ||
127 | Requires: %{name} = %{version} | ||
128 | |||
129 | %description input | ||
130 | Ecore input functions | ||
131 | |||
132 | %package ipc | ||
133 | Summary: Ecore inter-process communication functions | ||
134 | Group: Development/Libraries | ||
135 | Requires: %{name} = %{version} | ||
136 | |||
137 | %description ipc | ||
138 | Ecore inter-process communication functions | ||
139 | |||
140 | %package x | ||
141 | Summary: Ecore functions for dealing with the X Windows System | ||
142 | Group: Development/Libraries | ||
143 | Requires: %{name} = %{version} | ||
144 | |||
145 | %description x | ||
146 | Ecore functions for dealing with the X Windows System | ||
147 | |||
148 | %prep | ||
149 | %setup -q | ||
150 | |||
151 | %build | ||
152 | CFLAGS="-I/usr/kerberos/include -I/usr/X11R6/include/X11/extensions" | ||
153 | LDFLAGS="-L/usr/kerberos/lib -L/usr/X11R6/%{_lib}" | ||
154 | export CFLAGS LDFLAGS | ||
155 | %{configure} --prefix=%{_prefix} \ | ||
156 | %{?ac_with_lib_ecore_directfb} \ | ||
157 | %{?ac_with_lib_ecore_fb} \ | ||
158 | %{?ac_with_lib_ecore_imf} \ | ||
159 | %{?ac_with_lib_ecore_sdl} | ||
160 | |||
161 | %{__make} %{?_smp_mflags} %{?mflags} | ||
162 | |||
163 | %install | ||
164 | %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install | ||
165 | %{find_lang} %{name} | ||
166 | |||
167 | %post | ||
168 | /sbin/ldconfig || : | ||
169 | |||
170 | %postun | ||
171 | /sbin/ldconfig || : | ||
172 | |||
173 | %clean | ||
174 | test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT | ||
175 | |||
176 | %files -f %{name}.lang | ||
177 | %defattr(-, root, root) | ||
178 | %doc AUTHORS COPYING* README* | ||
179 | %{_bindir}/ecore_test | ||
180 | %{_libdir}/libecore*.so.* | ||
181 | |||
182 | %files devel | ||
183 | %defattr(-, root, root) | ||
184 | %doc doc/html | ||
185 | %{_libdir}/*.so | ||
186 | %{_libdir}/ecore/immodules/*.so | ||
187 | %{_libdir}/ecore/immodules/*.la | ||
188 | %{_libdir}/*.la | ||
189 | %{_libdir}/*.a | ||
190 | %{_libdir}/pkgconfig/* | ||
191 | #%{_datadir}/aclocal/* | ||
192 | %{_includedir}/ecore-1/*.h | ||
193 | |||
194 | %files con | ||
195 | %defattr(-, root, root) | ||
196 | %{_libdir}/libecore_con*.so.* | ||
197 | |||
198 | %if %{with lib_ecore_directfb} | ||
199 | %files directfb | ||
200 | %defattr(-, root, root) | ||
201 | %{_libdir}/libecore_directfb*.so.* | ||
202 | %endif | ||
203 | |||
204 | %files evas | ||
205 | %defattr(-, root, root) | ||
206 | %{_libdir}/libecore_evas*.so.* | ||
207 | |||
208 | %if %{with lib_ecore_fb} | ||
209 | %files fb | ||
210 | %defattr(-, root, root) | ||
211 | %{_libdir}/libecore_fb*.so.* | ||
212 | %endif | ||
213 | |||
214 | %files file | ||
215 | %defattr(-, root, root) | ||
216 | %{_libdir}/libecore_file*.so.* | ||
217 | |||
218 | %if %{with lib_ecore_imf} | ||
219 | %files imf | ||
220 | %defattr(-, root, root) | ||
221 | %{_libdir}/libecore_imf*.so.* | ||
222 | %endif | ||
223 | |||
224 | %files input | ||
225 | %defattr(-, root, root) | ||
226 | %{_libdir}/libecore_input*.so.* | ||
227 | |||
228 | %files ipc | ||
229 | %defattr(-, root, root) | ||
230 | %{_libdir}/libecore_ipc*.so.* | ||
231 | |||
232 | %files x | ||
233 | %defattr(-, root, root) | ||
234 | %{_libdir}/libecore_x*.so.* | ||