8b1554079ccd7255947b316958784c2c3a9ef004
[platform/upstream/emotion.git] / emotion.spec
1 %{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
2 %define _missing_doc_files_terminate_build 0
3
4 Summary: emotion
5 Name: emotion
6 Version: 1.7.1
7 Release: 0.%(date '+%Y%m%d')
8 License: BSD
9 Group: System Environment/Libraries
10 URL: http://www.enlightenment.org/
11 Source: ftp://ftp.enlightenment.org/pub/emotion/%{name}-%{version}.tar.gz
12 Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
13 Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
14 Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
15 #BuildSuggests: xorg-x11-devel XFree86-devel libX11-devel libxine1-devel xine-lib-devel
16 #BuildSuggests: gstreamer-devel gstreamer-plugins-devel gstreamer-plugins-base-devel gstreamer-ffmpeg
17 BuildRequires: eet-devel evas-devel edje-devel edje-bin
18 BuildRequires: /usr/bin/xine-config
19 BuildRoot: %{_tmppath}/%{name}-%{version}-root
20
21 %description
22 Emotion is a Media Library
23
24 %package devel
25 Summary: Emotion headers, static libraries, documentation and test programs
26 Group: System Environment/Libraries
27 Requires: %{name} = %{version}
28 Requires: eet-devel evas-devel edje-devel
29
30 %description devel
31 Headers, static libraries, test programs and documentation for Emotion
32
33 %prep
34 %setup -q
35
36 %build
37 %{configure} --prefix=%{_prefix} --enable-static --enable-shared
38 %{__make} %{?_smp_mflags} %{?mflags}
39
40 %install
41 %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
42 test -x `which doxygen` && sh gendoc || :
43
44 # Remove useless static modules
45 %{__rm} -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/*a
46
47 %post
48 /sbin/ldconfig || :
49
50 %postun
51 /sbin/ldconfig || :
52
53 %clean
54 test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(-, root, root)
58 %doc AUTHORS COPYING* README
59 %dir %{_libdir}/%{name}
60 %{_bindir}/%{name}_*
61 %{_libdir}/libemotion.so.*
62 %{_libdir}/%{name}/*.so
63 #%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
64 %{_datadir}/%{name}
65
66 %files devel
67 %defattr(-, root, root)
68 %doc doc/html
69 %{_includedir}/emotion-1/*.h
70 %{_libdir}/libemotion.a
71 %{_libdir}/libemotion.la
72 %{_libdir}/libemotion.so
73 %{_libdir}/edje/modules/emotion/*/module.la
74 %{_libdir}/edje/modules/emotion/*/module.so
75 #%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.a
76 #%{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.la
77 %{_libdir}/pkgconfig/%{name}.pc
78
79 %changelog