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