author | jerrytan |
Fri, 28 Nov 2008 04:45:24 +0000 | |
changeset 14672 | 1035072856f8 |
parent 14571 | a943a025a41e |
child 14831 | 74ae5fa5b7e1 |
permissions | -rw-r--r-- |
11275 | 1 |
# |
2 |
# spec file for package totem-pl-parser |
|
3 |
# |
|
11405 | 4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
11275 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
# Owner: yippi |
|
9 |
# |
|
10 |
%include l10n.inc |
|
11 |
Name: totem-pl-parser |
|
14571 | 12 |
License: LGPL v2 |
11275 | 13 |
Group: System/GUI/GNOME |
13745 | 14 |
Version: 2.24.0 |
11275 | 15 |
Release: 1 |
16 |
Distribution: Java Desktop System |
|
17 |
Vendor: Sun Microsystems, Inc. |
|
18 |
Summary: Totem Multimedia Player |
|
13768 | 19 |
Source: http://ftp.gnome.org/pub/GNOME/sources/totem-pl-parser/2.24/%{name}-%{version}.tar.bz2 |
13344 | 20 |
|
14672 | 21 |
#owner:jerrytan date:2008-11-27 type:bug bugzilla:562425 bugster:6772165 |
22 |
Patch1: totem-pl-parser-01-ignore-cdda.diff |
|
23 |
||
12031 | 24 |
%if %build_l10n |
25 |
Source1: l10n-configure.sh |
|
26 |
%endif |
|
11275 | 27 |
URL: http://www.gnome.org |
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
29 |
Docdir: %{_defaultdocdir}/%{name} |
|
30 |
Autoreqprov: on |
|
31 |
||
32 |
%define libgnomeui_version 2.6.0 |
|
33 |
%define gstreamer_version 0.8.1 |
|
34 |
%define gstreamer_plugins_version 0.8.1 |
|
35 |
%define gnome_desktop_version 2.6.1 |
|
36 |
||
37 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
38 |
Requires: gstreamer >= %{gstreamer_version} |
|
39 |
Requires: gstreamer-plugins >= %{gstreamer_plugins_version} |
|
40 |
Requires: gnome-desktop >= %{gnome_desktop_version} |
|
41 |
Requires: iso-codes |
|
42 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
43 |
BuildRequires: gstreamer-devel >= %{gstreamer_version} |
|
44 |
BuildRequires: gstreamer-plugins-devel >= %{gstreamer_plugins_version} |
|
45 |
BuildRequires: gnome-desktop-devel >= %{gnome_desktop_version} |
|
46 |
||
47 |
%description |
|
11760
34f8909f824b
Add better description for totem-pl-parser, not just
yippi
parents:
11709
diff
changeset
|
48 |
A simple GObject-based library to parse and save a variety of |
34f8909f824b
Add better description for totem-pl-parser, not just
yippi
parents:
11709
diff
changeset
|
49 |
playlist formats. |
11275 | 50 |
|
51 |
%prep |
|
52 |
%setup -q |
|
14672 | 53 |
%patch1 -p1 |
11275 | 54 |
|
55 |
%build |
|
56 |
%ifos linux |
|
57 |
if [ -x /usr/bin/getconf ]; then |
|
58 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
59 |
fi |
|
60 |
%else |
|
61 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
62 |
%endif |
|
63 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
64 |
CPUS=1 |
|
65 |
fi |
|
66 |
||
67 |
if test "x$x_includes" = "x"; then |
|
68 |
x_includes="/usr/X11/include" |
|
69 |
fi |
|
70 |
||
71 |
if test "x$x_libraries" = "x"; then |
|
72 |
x_libraries="/usr/X11/lib" |
|
73 |
fi |
|
74 |
||
75 |
libtoolize --force |
|
76 |
intltoolize --force --copy --automake |
|
12031 | 77 |
|
78 |
%if %build_l10n |
|
79 |
bash -x %SOURCE1 --enable-copyright |
|
80 |
%endif |
|
81 |
||
11275 | 82 |
aclocal $ACLOCAL_FLAGS |
83 |
autoheader |
|
84 |
automake -a -c -f |
|
85 |
autoconf |
|
86 |
||
87 |
export MOZILLA_PLUGINDIR="%{_libdir}/firefox/plugins" |
|
88 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
89 |
./configure \ |
|
90 |
--prefix=%{_prefix} \ |
|
91 |
--sysconfdir=%{_sysconfdir} \ |
|
92 |
--libdir=%{_libdir} \ |
|
93 |
--bindir=%{_bindir} \ |
|
94 |
--libexecdir=%{_libexecdir} \ |
|
95 |
--mandir=%{_mandir} \ |
|
96 |
--localstatedir=/var/lib |
|
97 |
make -j $CPUS |
|
98 |
||
99 |
%install |
|
100 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
101 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
102 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
103 |
||
104 |
%clean |
|
105 |
rm -rf $RPM_BUILD_ROOT |
|
106 |
||
107 |
%post |
|
108 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
109 |
SCHEMAS="totem.schemas totem-video-thumbnail.schemas" |
|
110 |
for S in $SCHEMAS; do |
|
111 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
112 |
done |
|
113 |
||
114 |
%files |
|
115 |
%defattr (-, root, root) |
|
116 |
%{_bindir}/* |
|
117 |
%{_sysconfdir}/gconf/schemas |
|
118 |
%{_libdir}/* |
|
119 |
%{_libexecdir}/* |
|
120 |
%{_datadir}/applications |
|
121 |
%{_datadir}/gnome/help/totem/* |
|
122 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
123 |
%{_datadir}/omf/totem/* |
|
124 |
%{_datadir}/pixmaps/* |
|
125 |
%{_datadir}/totem/* |
|
126 |
%{_mandir}/man1/totem* |
|
127 |
%{_includedir}/totem/* |
|
128 |
||
129 |
%changelog |
|
13745 | 130 |
* Wed Sep 24 2008 - [email protected] |
131 |
- Bump to 2.24.0. |
|
13344 | 132 |
* Mon Sep 01 2008 - [email protected] |
133 |
- Bump to 2.23.91. |
|
134 |
- Remove patch 01-stat-header, fixed upstream, bugzilla:543119. |
|
135 |
- Remove patch 02-save-playlist-crash, fixed upstream, bugzilla:542178. |
|
12812 | 136 |
* Mon Jun 14 2008 - [email protected] |
137 |
- Bump to 2.23.3. |
|
12762 | 138 |
* Sun Jul 06 2008 - [email protected] |
139 |
- Add patch 01-stat-header to include sys/stat.h to get module to build. |
|
12651 | 140 |
* Thu Jun 12 2008 - [email protected] |
141 |
- Bump to 2.23.2. |
|
12289 | 142 |
* Tue May 13 2008 - [email protected] |
143 |
- Bump to 2.22.3. |
|
12066 | 144 |
* Wed Apr 09 2008 - [email protected] |
145 |
- Bump to 2.22.2. |
|
11831 | 146 |
* Mon Mar 10 2008 - [email protected] |
147 |
- Bump to 2.22.1. |
|
11709 | 148 |
* Mon Feb 25 2008 - [email protected] |
149 |
- Bump to 2.21.92. Remove upstream patch, 01-memmem. |
|
11507 | 150 |
* Wed Jan 23 2008 - [email protected] |
151 |
- Reintroduce patch 01-memmem as it is not actually upstream. |
|
11504 | 152 |
* Tue Jan 22 2008 - [email protected] |
153 |
- Bump to 2.21.91. Remove upstream patch, 01-memmem. |
|
11429 | 154 |
* Wed Jan 09 2008 - [email protected] |
155 |
- Add patch 01-memmem to fix build errors. |
|
11405 | 156 |
* Mon Jan 07 2008 - [email protected] |
157 |
- Bump to 2.21.90. |
|
11275 | 158 |
* Mon Dec 03 2007 - [email protected] |
159 |
- Initial Sun release |