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