]>
Commit | Line | Data |
---|---|---|
9772bec2 KK |
1 | # |
2 | # Conditional build: | |
1add56ee | 3 | %bcond_without gstreamer # don't build gstreamer decoder |
4 | %bcond_without xine # don't build xine decoder | |
9772bec2 KK |
5 | %bcond_without static_libs # don't build static library |
6 | # | |
c0a6ec43 | 7 | %if !%{with gstreamer} && !%{with xine} |
936b60e1 | 8 | %error at last one backend must be enabled |
1add56ee | 9 | %endif |
10 | # | |
703408aa | 11 | Summary: Enlightenment Fundation Libraries - Emotion |
74669e6f | 12 | Summary(pl.UTF-8): Podstawowe biblioteki Enlightenmenta - Emotion |
a07f4f62 | 13 | Name: emotion |
936b60e1 JB |
14 | Version: 0.0.1.005 |
15 | Release: 1 | |
a07f4f62 | 16 | License: BSD |
17 | Group: X11/Libraries | |
936b60e1 JB |
18 | Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz |
19 | # Source0-md5: e1550ff7a8f68b76b76a4d857073b3ee | |
d98a035b | 20 | URL: http://enlightenment.org/p.php?p=about/libs/emotion |
a07f4f62 | 21 | BuildRequires: autoconf |
936b60e1 JB |
22 | BuildRequires: automake >= 1.4 |
23 | # ecore-evas ecore-job | |
24 | BuildRequires: ecore-devel >= 0.9.9 | |
25 | BuildRequires: edje >= 0.5.0 | |
26 | BuildRequires: edje-devel >= 0.5.0 | |
27 | BuildRequires: evas-devel >= 0.9.9 | |
06a5aa95 | 28 | %if %{with gstreamer} |
06a5aa95 | 29 | BuildRequires: gstreamer-devel >= 0.10.2 |
06a5aa95 | 30 | BuildRequires: gstreamer-plugins-base-devel >= 0.10.1 |
936b60e1 | 31 | # gstreamer-cdio,gstreamer-ffmpeg for runtime, configure just warns if missing |
06a5aa95 | 32 | %endif |
a07f4f62 | 33 | BuildRequires: libtool |
9772bec2 | 34 | BuildRequires: pkgconfig |
1add56ee | 35 | %{?with_xine:BuildRequires: xine-lib-devel >= 2:1.1.1} |
936b60e1 JB |
36 | Requires: ecore-evas >= 0.9.9 |
37 | Requires: ecore-job >= 0.9.9 | |
38 | Requires: edje-libs >= 0.5.0 | |
39 | Requires: evas >= 0.9.9 | |
a07f4f62 | 40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Emotion is a Media Library. | |
44 | ||
7f594546 | 45 | %description -l pl.UTF-8 |
703408aa JB |
46 | Emotion to biblioteka multimedialna. |
47 | ||
a07f4f62 | 48 | %package devel |
703408aa | 49 | Summary: Emotion header files |
74669e6f | 50 | Summary(pl.UTF-8): Pliki nagłówkowe Emotion |
a07f4f62 | 51 | Group: Development/Libraries |
703408aa | 52 | Requires: %{name} = %{version}-%{release} |
936b60e1 JB |
53 | # ecore-evas ecore-job |
54 | Requires: ecore-devel >= 0.9.9 | |
55 | Requires: edje-devel >= 0.5.0 | |
56 | Requires: evas-devel >= 0.9.9 | |
a07f4f62 | 57 | |
58 | %description devel | |
703408aa JB |
59 | Header files for Emotion. |
60 | ||
7f594546 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe Emotion. | |
a07f4f62 | 63 | |
64 | %package static | |
703408aa | 65 | Summary: Static Emotion library |
74669e6f | 66 | Summary(pl.UTF-8): Statyczna biblioteka Emotion |
a07f4f62 | 67 | Group: Development/Libraries |
703408aa | 68 | Requires: %{name}-devel = %{version}-%{release} |
a07f4f62 | 69 | |
70 | %description static | |
703408aa JB |
71 | Static Emotion library. |
72 | ||
7f594546 | 73 | %description static -l pl.UTF-8 |
703408aa | 74 | Statyczna biblioteka Emotion. |
a07f4f62 | 75 | |
1add56ee | 76 | %package decoder-gstreamer |
77 | Summary: Emotion decoder using gstreamer | |
74669e6f | 78 | Summary(pl.UTF-8): Dekoder Emotion używający gstreamera |
1add56ee | 79 | Group: Development/Libraries |
80 | Requires: %{name} = %{version}-%{release} | |
936b60e1 JB |
81 | Requires: gstreamer >= 0.10.2 |
82 | Requires: gstreamer-plugins-base >= 0.10.1 | |
83 | Suggests: gstreamer-cdio | |
84 | Suggests: gstreamer-ffmpeg | |
1add56ee | 85 | |
86 | %description decoder-gstreamer | |
87 | Emotion decoder using gstreamer. | |
88 | ||
7f594546 JR |
89 | %description decoder-gstreamer -l pl.UTF-8 |
90 | Dekoder Emotion używający gstreamera. | |
1add56ee | 91 | |
92 | %package decoder-xine | |
93 | Summary: Emotion decoder using xine | |
74669e6f | 94 | Summary(pl.UTF-8): Dekoder Emotion używający xine |
1add56ee | 95 | Group: Development/Libraries |
96 | Requires: %{name} = %{version}-%{release} | |
936b60e1 | 97 | Requires: xine-lib >= 2:1.1.1 |
1add56ee | 98 | |
99 | %description decoder-xine | |
100 | Emotion decoder using xine. | |
101 | ||
7f594546 JR |
102 | %description decoder-xine -l pl.UTF-8 |
103 | Dekoder Emotion używający xine. | |
1add56ee | 104 | |
a07f4f62 | 105 | %prep |
936b60e1 | 106 | %setup -q |
a07f4f62 | 107 | |
108 | %build | |
109 | %{__libtoolize} | |
7cc83f9c | 110 | %{__aclocal} -I m4 |
a07f4f62 | 111 | %{__autoconf} |
112 | %{__autoheader} | |
113 | %{__automake} | |
9772bec2 | 114 | %configure \ |
1add56ee | 115 | %{!?with_static_libs:--disable-static} \ |
dc18c2f6 | 116 | %{!?with_gstreamer:--disable-gstreamer} \ |
117 | %{!?with_xine:--disable-xine} | |
a07f4f62 | 118 | %{__make} |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
703408aa | 122 | |
a07f4f62 | 123 | %{__make} install \ |
124 | DESTDIR=$RPM_BUILD_ROOT | |
125 | ||
936b60e1 JB |
126 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la} |
127 | ||
a07f4f62 | 128 | %clean |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
131 | %post -p /sbin/ldconfig | |
132 | %postun -p /sbin/ldconfig | |
133 | ||
134 | %files | |
135 | %defattr(644,root,root,755) | |
4b4b4171 | 136 | %doc AUTHORS COPYING COPYING-PLAIN README TODO |
a07f4f62 | 137 | %attr(755,root,root) %{_bindir}/emotion_* |
02a44cc0 | 138 | %attr(755,root,root) %{_libdir}/libemotion.so.*.*.* |
703408aa | 139 | %dir %{_libdir}/%{name} |
1add56ee | 140 | %{_datadir}/%{name} |
141 | ||
a07f4f62 | 142 | %files devel |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_bindir}/emotion-config | |
a07f4f62 | 145 | %attr(755,root,root) %{_libdir}/libemotion.so |
146 | %{_libdir}/libemotion.la | |
936b60e1 | 147 | %{_includedir}/Emotion.h |
703408aa | 148 | %{_pkgconfigdir}/emotion.pc |
a07f4f62 | 149 | |
9772bec2 | 150 | %if %{with static_libs} |
a07f4f62 | 151 | %files static |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libemotion.a | |
9772bec2 | 154 | %endif |
936b60e1 JB |
155 | |
156 | %if %{with gstreamer} | |
157 | %files decoder-gstreamer | |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so | |
160 | %endif | |
161 | ||
162 | %if %{with xine} | |
163 | %files decoder-xine | |
164 | %defattr(644,root,root,755) | |
165 | %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so | |
166 | %endif |