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