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