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