]> git.pld-linux.org Git - packages/emotion.git/blob - emotion.spec
- proper rel, BR: pkgconfig
[packages/emotion.git] / emotion.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Enlightenment Fundation Libraries - Emotion
6 Summary(pl):    Podstawowe biblioteki Enlightenmenta - Emotion
7 Name:           emotion
8 Version:        0.0.1.004
9 %define _snap   20051116
10 Release:        2.%{_snap}.1
11 License:        BSD
12 Group:          X11/Libraries
13 #Source0:       http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
14 Source0:        http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.bz2
15 # Source0-md5:  6faafbf9a01a9d31f0ed9c1c60b9062a
16 URL:            http://enlightenment.org/Libraries/Emotion/
17 BuildRequires:  autoconf
18 BuildRequires:  automake
19 BuildRequires:  edje
20 BuildRequires:  edje-devel
21 BuildRequires:  gstreamer-plugins-devel
22 BuildRequires:  libtool
23 BuildRequires:  pkgconfig
24 BuildRequires:  xine-lib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Emotion is a Media Library.
29
30 %description -l pl
31 Emotion to biblioteka multimedialna.
32
33 %package devel
34 Summary:        Emotion header files
35 Summary(pl):    Pliki nag³ówkowe Emotion
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}-%{release}
38 Requires:       xine-lib-devel
39
40 %description devel
41 Header files for Emotion.
42
43 %description devel -l pl
44 Pliki nag³ówkowe Emotion.
45
46 %package static
47 Summary:        Static Emotion library
48 Summary(pl):    Statyczna biblioteka Emotion
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 Static Emotion library.
54
55 %description static -l pl
56 Statyczna biblioteka Emotion.
57
58 %prep
59 %setup -q -n %{name}
60
61 %build
62 %{__libtoolize}
63 %{__aclocal} -I m4
64 %{__autoconf}
65 %{__autoheader}
66 %{__automake}
67 %configure \
68         %{!?with_static_libs:--disable-static}
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 rm -f $RPM_BUILD_ROOT%{_libdir}/xine/plugins/*/*.{la,a} \
78         $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %post   -p /sbin/ldconfig
84 %postun -p /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc AUTHORS COPYING COPYING-PLAIN README TODO
89 %attr(755,root,root) %{_bindir}/emotion_*
90 %attr(755,root,root) %{_libdir}/libemotion.so.*.*.*
91 %dir %{_libdir}/%{name}
92 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_gstreamer.so
93 %attr(755,root,root) %{_libdir}/%{name}/emotion_decoder_xine.so
94 %attr(755,root,root) %{_libdir}/xine/plugins/*/xineplug_vo_out_emotion.so
95 %{_datadir}/%{name}
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/emotion-config
100 %attr(755,root,root) %{_libdir}/libemotion.so
101 %{_libdir}/libemotion.la
102 %{_libdir}/%{name}/emotion_decoder_gstreamer.la
103 %{_libdir}/%{name}/emotion_decoder_xine.la
104 %{_includedir}/Emotion*
105 %{_pkgconfigdir}/emotion.pc
106
107 %if %{with static_libs}
108 %files static
109 %defattr(644,root,root,755)
110 %{_libdir}/libemotion.a
111 %endif
This page took 0.07363 seconds and 4 git commands to generate.