1 | Name: nautilus-media |
---|
2 | Version: 0.2.1 |
---|
3 | Release: 1 |
---|
4 | Summary: A Nautilus media package with views and thumbnailers. |
---|
5 | |
---|
6 | Group: Libraries/Multimedia |
---|
7 | License: LGPL |
---|
8 | URL: http://www.gnome.org/ |
---|
9 | Packager: Thomas Vander Stichele <thomas at apestaart dot org> |
---|
10 | Source: %{name}-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-root |
---|
12 | |
---|
13 | # spec file trickery, please don't look |
---|
14 | %{expand:%%define buildforrh7 %(A=$(awk '{print $5}' /etc/redhat-release); if [ "$A" = 7.2 -o "$A" = 7.3 ]; then echo 1; else echo 0; fi)} |
---|
15 | %{expand:%%define buildforrh8 %(A=$(awk '{print $5}' /etc/redhat-release); if [ "$A" = 8.0 -o "$A" = 8.1 ]; then echo 1; else echo 0; fi)} |
---|
16 | |
---|
17 | Requires: gstreamer >= 0.5.2 |
---|
18 | Requires: gstreamer-plugins >= 0.5.2 |
---|
19 | Requires: gstreamer-audio-effects >= 0.5.2 |
---|
20 | Requires: gstreamer-audio-formats >= 0.5.2 |
---|
21 | Requires: gstreamer-vorbis |
---|
22 | Requires: gstreamer-GConf |
---|
23 | Requires: gstreamer-plugins |
---|
24 | Requires: GConf2 |
---|
25 | |
---|
26 | BuildRequires: gstreamer-devel >= 0.5.2 |
---|
27 | BuildRequires: gstreamer-plugins-devel >= 0.5.2 |
---|
28 | |
---|
29 | %if %buildforrh8 |
---|
30 | %{echo: Building for Red Hat 8.x} |
---|
31 | BuildRequires: nautilus |
---|
32 | %endif |
---|
33 | |
---|
34 | %if %buildforrh7 |
---|
35 | %{echo: Building for Red Hat 7.x} |
---|
36 | BuildRequires: nautilus2-devel |
---|
37 | %endif |
---|
38 | BuildRequires: eel2-devel |
---|
39 | |
---|
40 | %description |
---|
41 | This package contains a Nautilus view for audio using GStreamer. |
---|
42 | |
---|
43 | #%package -n nautilus-test-view |
---|
44 | #Summary: Nautilus test view, only for educational purposes. |
---|
45 | #Group: Libraries/Multimedia |
---|
46 | # |
---|
47 | #%description -n nautilus-test-view |
---|
48 | #This package contains a Nautilus test view which doesn't do anything useful |
---|
49 | #and is only meant for educational use. |
---|
50 | |
---|
51 | %prep |
---|
52 | %setup -n %{name}-%{version} |
---|
53 | %build |
---|
54 | CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ |
---|
55 | CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ |
---|
56 | FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ |
---|
57 | ## not doing the libtoolize thing because we don't really need it |
---|
58 | ## note that we have configure.in because of intltoolize needing it |
---|
59 | ## and thus libtoolize gets triggered |
---|
60 | ## %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \ |
---|
61 | ./configure \ |
---|
62 | --prefix=%{_prefix} \ |
---|
63 | --exec-prefix=%{_exec_prefix} \ |
---|
64 | --bindir=%{_bindir} \ |
---|
65 | --sbindir=%{_sbindir} \ |
---|
66 | --sysconfdir=%{_sysconfdir} \ |
---|
67 | --datadir=%{_datadir} \ |
---|
68 | --includedir=%{_includedir} \ |
---|
69 | --libdir=%{_libdir} \ |
---|
70 | --libexecdir=%{_libexecdir} \ |
---|
71 | --localstatedir=%{_localstatedir} \ |
---|
72 | --sharedstatedir=%{_sharedstatedir} \ |
---|
73 | --mandir=%{_mandir} \ |
---|
74 | --infodir=%{_infodir} |
---|
75 | |
---|
76 | %install |
---|
77 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
78 | |
---|
79 | %makeinstall |
---|
80 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
81 | |
---|
82 | # clean up unpackaged files |
---|
83 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
84 | rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/*.la |
---|
85 | rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/*.a |
---|
86 | |
---|
87 | %clean |
---|
88 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
89 | |
---|
90 | %post |
---|
91 | export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
---|
92 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gst-thumbnail.schemas > /dev/null |
---|
93 | |
---|
94 | %files |
---|
95 | %defattr(-, root, root) |
---|
96 | %doc AUTHORS COPYING README ChangeLog |
---|
97 | %{_bindir}/gst-thumbnail |
---|
98 | %{_libdir}/bonobo/servers/* |
---|
99 | %{_libdir}/bonobo/libnautilus-audio-properties-view.so |
---|
100 | %{_libexecdir}/nautilus-audio-view |
---|
101 | %{_datadir}/pixmaps/%{name} |
---|
102 | %{_datadir}/nautilus/glade/audio-properties-view.glade |
---|
103 | %{_datadir}/gnome-2.0/ui/nautilus-audio-view-ui.xml |
---|
104 | %{_datadir}/locale/*/LC_MESSAGES/nautilus-media.mo |
---|
105 | %{_sysconfdir}/gconf/schemas/gst-thumbnail.schemas |
---|
106 | #%{_libdir}/libgstmedia-info.a |
---|
107 | #%{_libdir}/libgstmedia-info.so.0.0.0 |
---|
108 | |
---|
109 | #%files -n nautilus-test-view |
---|
110 | #%defattr(-, root, root) |
---|
111 | #%{_libexecdir}/nautilus-test-view |
---|
112 | #%{_datadir}/gnome-2.0/ui/nautilus-test-view-ui.xml |
---|
113 | |
---|
114 | %changelog |
---|
115 | * Wed Jan 22 2003 Thomas Vander Stichele <thomas at apestaart dot org> |
---|
116 | - conditionalize test view package |
---|
117 | - add gconf stuff for thumbnailers |
---|
118 | |
---|
119 | * Fri Oct 25 2002 Thomas Vander Stichele <thomas@apestaart.org> |
---|
120 | - initial spec file |
---|