author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19904 | 5f15c2434c04 |
permissions | -rw-r--r-- |
19693 | 1 |
# |
2 |
# spec file for package shared-mime-info |
|
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 |
# |
|
1557 | 8 |
Name: shared-mime-info |
9 |
License: GPL |
|
10 |
Group: Hardware/Other |
|
19446 | 11 |
Version: 0.16 |
19609 | 12 |
Release: 2 |
19693 | 13 |
Distribution: Java Desktop System |
1557 | 14 |
Vendor: Sun Microsystems, Inc. |
15 |
Summary: Core Common Mime Type Database |
|
19895 | 16 |
#Source: http://www.freedesktop.org/Software/%{name}/%{name}-%{version}.tar.bz2 |
17 |
Source: http://freedesktop.org/~jrb/%{name}-%{version}.tar.gz |
|
19904 | 18 |
Source1: update-mime-database.1.gz |
19 |
Source2: defaults.list |
|
19733 | 20 |
Patch1: shared-mime-info-01-add-mime-types.diff |
1557 | 21 |
URL: http://www.freedesktop.org/Software/%{name} |
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
DocDir: %{_defaultdocdir}/%{name} |
|
24 |
||
19385 | 25 |
BuildRequires: glib2 |
26 |
||
1557 | 27 |
%description |
28 |
shared-mime-info contains the core database of common types and the |
|
29 |
update-mime-database command used to extend it. |
|
30 |
||
31 |
%prep |
|
32 |
%setup -q |
|
19733 | 33 |
%patch1 -p1 |
1557 | 34 |
|
4455 | 35 |
|
1557 | 36 |
%build |
3263 | 37 |
%ifos linux |
38 |
if [ -x /usr/bin/getconf ]; then |
|
39 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
40 |
fi |
|
41 |
%else |
|
3846 | 42 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 43 |
%endif |
44 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
45 |
CPUS=1 |
|
46 |
fi |
|
47 |
||
1557 | 48 |
libtoolize --force |
19243 | 49 |
aclocal $ACLOCAL_FLAGS |
1557 | 50 |
automake -a -c -f |
51 |
autoconf |
|
52 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} |
|
3263 | 53 |
make -j $CPUS |
1557 | 54 |
|
55 |
%install |
|
56 |
mkdir -p $RPM_BUILD_ROOT%{_prefix} |
|
19609 | 57 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications |
1557 | 58 |
make DESTDIR=$RPM_BUILD_ROOT install-strip |
4357 | 59 |
install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
19904 | 60 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1 |
61 |
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list |
|
19643 | 62 |
install -d $RPM_BUILD_ROOT%{_datadir}/application-registry |
1557 | 63 |
|
64 |
%clean |
|
65 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
|
66 |
||
67 |
%post |
|
68 |
update-mime-database %{_datadir}/mime |
|
69 |
||
70 |
%files |
|
71 |
%defattr(-,root,root) |
|
72 |
%{_bindir}/update-mime-database |
|
73 |
%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo |
|
3628 | 74 |
# No point in making a seperate devel pkg just for one silly pkgconfig file |
75 |
%{_libdir}/pkgconfig/*.pc |
|
1557 | 76 |
%{_datadir}/mime/* |
19609 | 77 |
%{_datadir}/applications/defaults.list |
1557 | 78 |
%{_mandir}/man1/* |
19643 | 79 |
%{_datadir}/application-registry |
1557 | 80 |
|
2113 | 81 |
%changelog |
19609 | 82 |
* Thu Jul 21 2005 - [email protected] |
83 |
- Added defaults.list file in the package. It provides the defaults application |
|
84 |
handler for all mime types. |
|
85 |
||
19643 | 86 |
* Tue Jun 21 2005 - [email protected] |
87 |
- 6285970: create /usr/share/application-registry for RealPlayer |
|
88 |
||
19446 | 89 |
* Thu Jun 16 2005 - [email protected] |
90 |
- Bump to 0.16, re-align patches |
|
91 |
||
5325 | 92 |
* Fri Apr 08 2005 - [email protected] |
93 |
- Added shared-mime-info-05-add-magic.diff to provide mime magic for |
|
94 |
staroffice and opendocuments file types. Fixes #6234855. |
|
95 |
||
5289 | 96 |
* Thu Mar 31 2005 - [email protected] |
97 |
- Add some more media types to get things working. |
|
98 |
||
4944 | 99 |
* Thu Jan 27 2005 - [email protected] |
100 |
- Added shared-mime-info-04-mime-type-mrproject.diff patch to |
|
101 |
associate the application planner for .mrproject files. |
|
102 |
Fixes bug #6217022. |
|
103 |
||
4456 | 104 |
* Fri Nov 05 2004 - [email protected] |
105 |
- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate |
|
106 |
correct mime type for staroffice applications extension in capitals. |
|
107 |
Fixes bug #5097261. |
|
108 |
||
4357 | 109 |
* Thu Oct 28 2004 - [email protected] |
110 |
- Add update-mime-database.1 man page |
|
111 |
||
3959
54479a29181a
Added shared-mime-info-02-g11n-alllinguas.diff. Updated shared-mime-info.spec.
yk150259
parents:
3858
diff
changeset
|
112 |
* Wed Sep 15 2004 - [email protected] |
54479a29181a
Added shared-mime-info-02-g11n-alllinguas.diff. Updated shared-mime-info.spec.
yk150259
parents:
3858
diff
changeset
|
113 |
- Added shared-mime-info-02-g11n-alllinguas.diff, to update support for all linguas |
54479a29181a
Added shared-mime-info-02-g11n-alllinguas.diff. Updated shared-mime-info.spec.
yk150259
parents:
3858
diff
changeset
|
114 |
|
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
115 |
* 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
|
116 |
- Updated l10n content to shared-mime-info-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
|
117 |
|
3628 | 118 |
* Thu Jul 08 2004 - [email protected] |
119 |
- ported to rpm4 |
|
120 |
||
3263 | 121 |
* Wed Jul 07 2004 - [email protected] |
122 |
- added "-j $CPUS" to make to speed up builds |
|
123 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
124 |
* 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
|
125 |
- Updated l10n content to shared-mime-info-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
|
126 |
|
2387 | 127 |
* Mon Apr 5 2004 - [email protected] |
128 |
- Bump to 0.14. |
|
129 |
||
2355 | 130 |
* Wed Mar 31 2004 - [email protected] |
131 |
- replace tar jxf with the more solaris friendly |
|
132 |
bzcat piped through tar |
|
133 |
||
2350 | 134 |
* Mon Mar 29 2004 - [email protected] |
135 |
- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content |
|
136 |
||
2191 | 137 |
* Thu Mar 11 2004 - [email protected] |
138 |
- added shared-mime-info-01-g11n-potfiles.diff |
|
139 |
||
2113 | 140 |
* Tue Mar 02 2004 - [email protected] |
141 |
- remove "-n gtkam" from changelog tag |
|
142 |
- add ACLOCAL_FLAGS to aclocal args |
|
143 |
||
1894 | 144 |
* Mon Feb 23 2004 - [email protected] |
145 |
- Update Distro |
|
146 |
||
1557 | 147 |
* Mon Feb 02 2004 - [email protected] |
148 |
- Initial version |