]> git.pld-linux.org Git - packages/emotion.git/blame - emotion.spec
- ghost soname symlink
[packages/emotion.git] / emotion.spec
CommitLineData
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#
e6114e86
BZ
11%define ecore_ver 0.9.9.043
12%define edje_ver 0.9.9.043
13%define evas_ver 0.9.9.043
f53bb8f1 14
703408aa 15Summary: Enlightenment Fundation Libraries - Emotion
74669e6f 16Summary(pl.UTF-8): Podstawowe biblioteki Enlightenmenta - Emotion
a07f4f62 17Name: emotion
e6114e86 18Version: 0.1.0.042
936b60e1 19Release: 1
a07f4f62 20License: BSD
21Group: X11/Libraries
e6114e86
BZ
22Source0: http://download.enlightenment.org/snapshots/2008-01-25/%{name}-%{version}.tar.bz2
23# Source0-md5: 123c043d02f4da22fb36eede930a44e5
d98a035b 24URL: http://enlightenment.org/p.php?p=about/libs/emotion
581669c3
JB
25BuildRequires: autoconf >= 2.52
26BuildRequires: automake >= 1.6
936b60e1 27# ecore-evas ecore-job
f53bb8f1
BZ
28BuildRequires: ecore-devel >= %{ecore_ver}
29BuildRequires: edje >= %{edje_ver}
30BuildRequires: edje-devel >= %{edje_ver}
31BuildRequires: evas-devel >= %{evas_ver}
06a5aa95 32%if %{with gstreamer}
06a5aa95 33BuildRequires: gstreamer-devel >= 0.10.2
06a5aa95 34BuildRequires: gstreamer-plugins-base-devel >= 0.10.1
936b60e1 35# gstreamer-cdio,gstreamer-ffmpeg for runtime, configure just warns if missing
06a5aa95 36%endif
a07f4f62 37BuildRequires: libtool
9772bec2 38BuildRequires: pkgconfig
1add56ee 39%{?with_xine:BuildRequires: xine-lib-devel >= 2:1.1.1}
f53bb8f1
BZ
40Requires: ecore-evas >= %{ecore_ver}
41Requires: ecore-job >= %{ecore_ver}
42Requires: edje-libs >= %{edje_ver}
43Requires: evas >= %{evas_ver}
a07f4f62 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Emotion is a Media Library.
48
7f594546 49%description -l pl.UTF-8
703408aa
JB
50Emotion to biblioteka multimedialna.
51
a07f4f62 52%package devel
703408aa 53Summary: Emotion header files
74669e6f 54Summary(pl.UTF-8): Pliki nagłówkowe Emotion
a07f4f62 55Group: Development/Libraries
703408aa 56Requires: %{name} = %{version}-%{release}
936b60e1 57# ecore-evas ecore-job
f53bb8f1
BZ
58Requires: ecore-devel >= %{ecore_ver}
59Requires: edje-devel >= %{edje_ver}
60Requires: evas-devel >= %{evas_ver}
a07f4f62 61
62%description devel
703408aa
JB
63Header files for Emotion.
64
7f594546
JR
65%description devel -l pl.UTF-8
66Pliki nagłówkowe Emotion.
a07f4f62 67
68%package static
703408aa 69Summary: Static Emotion library
74669e6f 70Summary(pl.UTF-8): Statyczna biblioteka Emotion
a07f4f62 71Group: Development/Libraries
703408aa 72Requires: %{name}-devel = %{version}-%{release}
a07f4f62 73
74%description static
703408aa
JB
75Static Emotion library.
76
7f594546 77%description static -l pl.UTF-8
703408aa 78Statyczna biblioteka Emotion.
a07f4f62 79
1add56ee 80%package decoder-gstreamer
81Summary: Emotion decoder using gstreamer
74669e6f 82Summary(pl.UTF-8): Dekoder Emotion używający gstreamera
1add56ee 83Group: Development/Libraries
84Requires: %{name} = %{version}-%{release}
936b60e1
JB
85Requires: gstreamer >= 0.10.2
86Requires: gstreamer-plugins-base >= 0.10.1
87Suggests: gstreamer-cdio
88Suggests: gstreamer-ffmpeg
1add56ee 89
90%description decoder-gstreamer
91Emotion decoder using gstreamer.
92
7f594546
JR
93%description decoder-gstreamer -l pl.UTF-8
94Dekoder Emotion używający gstreamera.
1add56ee 95
96%package decoder-xine
97Summary: Emotion decoder using xine
74669e6f 98Summary(pl.UTF-8): Dekoder Emotion używający xine
1add56ee 99Group: Development/Libraries
100Requires: %{name} = %{version}-%{release}
936b60e1 101Requires: xine-lib >= 2:1.1.1
1add56ee 102
103%description decoder-xine
104Emotion decoder using xine.
105
7f594546
JR
106%description decoder-xine -l pl.UTF-8
107Dekoder 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
125rm -rf $RPM_BUILD_ROOT
703408aa 126
a07f4f62 127%{__make} install \
128 DESTDIR=$RPM_BUILD_ROOT
129
936b60e1
JB
130rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
131
a07f4f62 132%clean
133rm -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_*
581669c3
JB
142%attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
143%attr(755,root,root) %ghost %{_libdir}/libemotion.so.0
703408aa 144%dir %{_libdir}/%{name}
1add56ee 145%{_datadir}/%{name}
146
a07f4f62 147%files devel
148%defattr(644,root,root,755)
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)
e6114e86 163%attr(755,root,root) %{_libdir}/%{name}/gstreamer.so
936b60e1
JB
164%endif
165
166%if %{with xine}
167%files decoder-xine
168%defattr(644,root,root,755)
e6114e86 169%attr(755,root,root) %{_libdir}/%{name}/xine.so
936b60e1 170%endif
This page took 0.162083 seconds and 4 git commands to generate.