author | dcarbery |
Mon, 23 Oct 2006 12:46:17 +0000 | |
branch | gnome-2-14 |
changeset 19195 | 352a4716f1f3 |
parent 5518 | 235b0b4aa324 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package magicdev |
|
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
5 |
# This file and all modifications and additions to the pristine |
|
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
244 | 8 |
Name: magicdev |
9 |
License: GPL |
|
10 |
Group: Applications/System |
|
5518 | 11 |
Version: 1.1.7 |
12 |
Release: 1 |
|
13 |
Distribution: Java Desktop System |
|
575 | 14 |
Vendor: Sun Microsystems, Inc. |
244 | 15 |
Summary: A GNOME daemon for automatically mounting/playing CDs. |
16 |
Source: magicdev-%{version}.tar.bz2 |
|
5518 | 17 |
Patch1: magicdev-01-autorun-and-subfs.diff |
4539 | 18 |
Patch2: magicdev-02-disable-CDR-DVD.diff |
19 |
Patch3: magicdev-03-window-icon.diff |
|
20 |
Patch4: magicdev-04-settings-menu-reorder.diff |
|
5518 | 21 |
Patch5: magicdev-05-no-mount.diff |
244 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
AutoReqProv: on |
|
24 |
||
25 |
%define gnome_mime_data_version 2.2.0 |
|
26 |
%define libgnomeui_version 2.2.0.1 |
|
27 |
%define libglade_version 2.0.1 |
|
28 |
||
29 |
Requires: gnome-mime-data >= %{gnome_mime_data_version} |
|
30 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
31 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
32 |
||
33 |
%description |
|
34 |
Magicdev is a daemon that runs within the GNOME environment and |
|
35 |
detects when a CD is removed or inserted. Magicdev handles running |
|
36 |
autorun programs on the CD, updating the File Manager, and playing |
|
37 |
audio CDs. |
|
38 |
||
39 |
%prep |
|
40 |
%setup -q |
|
41 |
%patch1 -p1 |
|
319 | 42 |
%patch2 -p1 |
676 | 43 |
%patch3 -p1 |
2132
b4ced0ef78ef
2004-03-03 Balamurali Viswanathan <[email protected]>
bviswa
parents:
1876
diff
changeset
|
44 |
%patch4 -p1 |
4185
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
45 |
%patch5 -p1 |
244 | 46 |
|
4455 | 47 |
|
244 | 48 |
%build |
3263 | 49 |
%ifos linux |
50 |
if [ -x /usr/bin/getconf ]; then |
|
51 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
52 |
fi |
|
53 |
%else |
|
3846 | 54 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 55 |
%endif |
56 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
57 |
CPUS=1 |
|
58 |
fi |
|
59 |
||
244 | 60 |
%configure |
676 | 61 |
libtoolize --force |
5518 | 62 |
aclocal |
676 | 63 |
automake -a -c -f |
64 |
autoconf |
|
65 |
||
244 | 66 |
CFLAGS="$RPM_OPT_FLAGS" \ |
67 |
./configure --prefix=%{_prefix} \ |
|
68 |
--sysconfdir=%{_sysconfdir} |
|
3263 | 69 |
make -j $CPUS |
244 | 70 |
|
71 |
%install |
|
72 |
rm -rf $RPM_BUILD_ROOT |
|
73 |
||
74 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
75 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
76 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
77 |
||
78 |
||
79 |
%clean |
|
80 |
rm -rf $RPM_BUILD_ROOT |
|
81 |
||
82 |
%post |
|
83 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
84 |
SCHEMAS="magicdev.schemas" |
|
85 |
for S in $SCHEMAS; do |
|
86 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null |
|
87 |
done |
|
88 |
||
89 |
%files |
|
90 |
%defattr(-,root,root) |
|
91 |
%{_bindir}/* |
|
92 |
%{_datadir}/control-center-2.0/capplets |
|
93 |
%{_datadir}/magicdev |
|
3628 | 94 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
244 | 95 |
%{_sysconfdir}/gconf/schemas/*.schemas |
96 |
||
97 |
%changelog |
|
5518 | 98 |
* Wed Jun 15 2005 - [email protected] |
99 |
- Bumped to 1.1.7 |
|
100 |
- Remove/Re-Apply/Merge patches |
|
101 |
||
5102 | 102 |
* Tue Feb 15 2005 - [email protected] |
103 |
- Added magicdev-10-autorun.diff for Cinnabar to fix 6227215. |
|
104 |
Approved by Niall. |
|
105 |
||
4920 | 106 |
* Tue Jan 24 2005 - [email protected] |
107 |
- Added magicdev-09-handle-subfs.diff for Cinnabar to fix 6199800. |
|
108 |
Patch produced by Alo and tested by me. |
|
109 |
||
4906 | 110 |
* Fri Jan 21 2005 - [email protected] |
4892 | 111 |
- Added magicdev-08-no-mount.diff to fix bug #6219527 |
112 |
||
4539 | 113 |
* Fri Nov 05 2004 - [email protected] |
114 |
- Added magicdev-07-g11n-autorun.diff to fix autorun. |
|
115 |
||
4185
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
116 |
* Thu Oct 07 2004 - [email protected] |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
117 |
- Added magicdev-06-g11n_alllinguas.diff to add ko locale |
590dfb2c6dff
Updating spec-files to include All Linguas patches
cm152228
parents:
4133
diff
changeset
|
118 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
119 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
120 |
- Updated l10n content to magicdev-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
121 |
|
3263 | 122 |
* Wed Jul 07 2004 - [email protected] |
123 |
- added "-j $CPUS" to make to speed up builds |
|
124 |
||
3021 | 125 |
* Mon Jun 07 2004 - [email protected] |
126 |
- Updated patch magicdev-05-help.diff with |
|
127 |
the correct xml filename. |
|
128 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
129 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
130 |
- Updated l10n content to magicdev-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
131 |
|
2355 | 132 |
* Wed Mar 31 2004 - [email protected] |
133 |
- replace tar jxf with the more solaris friendly |
|
134 |
bzcat piped through tar |
|
135 |
||
2350 | 136 |
* Mon Mar 29 2004 - [email protected] |
137 |
- Updated l10n content to magicdev-l10n-po-1.0.tar.bz2 |
|
138 |
||
2133 | 139 |
* Wed Mar 03 2004 <[email protected]> |
2132
b4ced0ef78ef
2004-03-03 Balamurali Viswanathan <[email protected]>
bviswa
parents:
1876
diff
changeset
|
140 |
- Added a help button to the cd device options capplet |
b4ced0ef78ef
2004-03-03 Balamurali Viswanathan <[email protected]>
bviswa
parents:
1876
diff
changeset
|
141 |
|
1625 | 142 |
* Wed Feb 11 2004 Matt Keenan <[email protected]> |
143 |
- Bump to 1.1.5, re-apply patches 3 & 4. Add l10n 0.7 |
|
144 |
||
676 | 145 |
* Mon Jul 21 2003 Glynn Foster <[email protected]> |
146 |
- Add patch for settings menu reordering |
|
147 |
||
321 | 148 |
* Fri Jun 27 2003 Glynn Foster <[email protected]> |
149 |
- Add patch for a nice little window icon |
|
150 |
||
244 | 151 |
* Fri May 30 2003 Niall Power <[email protected]> |
152 |
- Initial Sun release. |