summaryrefslogtreecommitdiff
path: root/legacy/emotion/emotion.spec.in
blob: d1abb596d092366814b71edbfe6758c07e95c87c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%define _missing_doc_files_terminate_build 0

Summary: emotion
Name: @PACKAGE@
Version: @VERSION@
Release: 0.%(date '+%Y%m%d')
License: BSD
Group: System Environment/Libraries
URL: http://www.enlightenment.org/
Source: ftp://ftp.enlightenment.org/pub/emotion/%{name}-%{version}.tar.gz
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
#BuildSuggests: xorg-x11-devel XFree86-devel libX11-devel libxine1-devel xine-lib-devel
#BuildSuggests: gstreamer-devel gstreamer-plugins-devel gstreamer-plugins-base-devel gstreamer-ffmpeg
BuildRequires: eet-devel evas-devel edje-devel edje-bin
BuildRequires: /usr/bin/xine-config
BuildRoot: %{_tmppath}/%{name}-%{version}-root

%description
Emotion is a Media Library

%package devel
Summary: Emotion headers, static libraries, documentation and test programs
Group: System Environment/Libraries
Requires: %{name} = %{version}
Requires: eet-devel evas-devel edje-devel

%description devel
Headers, static libraries, test programs and documentation for Emotion

%prep
%setup -q

%build
%{configure} --prefix=%{_prefix} --enable-static --enable-shared
%{__make} %{?_smp_mflags} %{?mflags}

%install
%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
test -x `which doxygen` && sh gendoc || :

# Remove useless static modules
%{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/*a

%post
/sbin/ldconfig || :

%postun
/sbin/ldconfig || :

%clean
test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS COPYING* README
%dir %{_libdir}/%{name}
%{_bindir}/%{name}_*
%{_libdir}/libemotion.so.*
%{_libdir}/%{name}/*.so
#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
%{_datadir}/%{name}

%files devel
%defattr(-, root, root)
%doc doc/html
%{_includedir}/emotion-0/*.h
%{_libdir}/libemotion.a
%{_libdir}/libemotion.la
%{_libdir}/libemotion.so
%{_libdir}/edje/modules/emotion/*/module.la
%{_libdir}/edje/modules/emotion/*/module.so
#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.a
#%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.la
%{_libdir}/pkgconfig/%{name}.pc

%changelog