9397
|
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 |
#
|
|
8 |
# Owner: alo
|
|
9 |
#
|
|
10 |
Name: shared-mime-info
|
|
11 |
License: GPL
|
|
12 |
Group: Hardware/Other
|
9570
|
13 |
Version: 0.20
|
9397
|
14 |
Release: 1
|
|
15 |
Distribution: Java Desktop System
|
|
16 |
Vendor: Sun Microsystems, Inc.
|
|
17 |
Summary: Core Common Mime Type Database
|
|
18 |
#Source: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.bz2
|
9570
|
19 |
Source: http://freedesktop.org/~hadess/%{name}-%{version}.tar.bz2
|
9400
|
20 |
Source1: defaults.list
|
9397
|
21 |
# date:2005-06-16 owner:mattman type:bug bugster:6217022,6241631,6234855
|
|
22 |
Patch1: shared-mime-info-01-add-mime-types.diff
|
|
23 |
URL: http://www.freedesktop.org/Software/%{name}
|
|
24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
25 |
DocDir: %{_defaultdocdir}/%{name}
|
|
26 |
|
|
27 |
BuildRequires: glib2
|
|
28 |
|
|
29 |
%description
|
|
30 |
shared-mime-info contains the core database of common types and the
|
|
31 |
update-mime-database command used to extend it.
|
|
32 |
|
|
33 |
%prep
|
|
34 |
%setup -q
|
|
35 |
%patch1 -p1
|
|
36 |
|
|
37 |
%build
|
|
38 |
%ifos linux
|
|
39 |
if [ -x /usr/bin/getconf ]; then
|
|
40 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
41 |
fi
|
|
42 |
%else
|
|
43 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
44 |
%endif
|
|
45 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
46 |
CPUS=1
|
|
47 |
fi
|
|
48 |
|
|
49 |
libtoolize --force
|
|
50 |
aclocal $ACLOCAL_FLAGS
|
|
51 |
automake -a -c -f
|
|
52 |
autoconf
|
|
53 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
|
|
54 |
make -j $CPUS
|
|
55 |
|
|
56 |
%install
|
|
57 |
mkdir -p $RPM_BUILD_ROOT%{_prefix}
|
|
58 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
|
|
59 |
make DESTDIR=$RPM_BUILD_ROOT install-strip
|
9400
|
60 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list
|
9397
|
61 |
install -d $RPM_BUILD_ROOT%{_datadir}/application-registry
|
|
62 |
|
|
63 |
%clean
|
|
64 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
|
|
65 |
|
|
66 |
%post
|
|
67 |
update-mime-database %{_datadir}/mime
|
|
68 |
|
|
69 |
%files
|
|
70 |
%defattr(-,root,root)
|
|
71 |
%{_bindir}/update-mime-database
|
|
72 |
%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo
|
|
73 |
# No point in making a seperate devel pkg just for one silly pkgconfig file
|
|
74 |
%{_libdir}/pkgconfig/*.pc
|
|
75 |
%{_datadir}/mime/*
|
|
76 |
%{_datadir}/applications/defaults.list
|
|
77 |
%{_mandir}/man1/*
|
|
78 |
%{_datadir}/application-registry
|
|
79 |
|
|
80 |
%changelog
|
9570
|
81 |
* Thu Mar 15 2007 - [email protected]
|
|
82 |
- Bump to 0.20.
|
|
83 |
|
9397
|
84 |
* Fri Dec 01 2006 - [email protected]
|
|
85 |
- Bump to 0.19. Remove upstream patch 02-java-types.
|
|
86 |
|
|
87 |
* Mon Jul 03 2006 - [email protected]
|
|
88 |
- Bump to 0.18
|
|
89 |
|
|
90 |
* Thu May 11 2006 - [email protected]
|
|
91 |
- Add Java types from Joe.
|
|
92 |
|
|
93 |
* Tue Apr 11 2006 - [email protected]
|
|
94 |
- Bump to 0.17
|
|
95 |
|
|
96 |
* Tue Apr 11 2006 - [email protected]
|
|
97 |
- Add shared-mime-info-02-fix-m3u.diff to keep Bart happy.
|
|
98 |
|
|
99 |
* Thu Dec 09 2005 - [email protected]
|
|
100 |
- Modified patch shared-mime-info-01-add-mime-types.diff to include mime type
|
|
101 |
for speex file.
|
|
102 |
|
|
103 |
* Thu Dec 08 2005 - [email protected]
|
|
104 |
- Remove l10n tarball. Not maintained in OpenSolaris releases.
|
|
105 |
|
|
106 |
* Fri Dec 02 2005 - [email protected]
|
|
107 |
- Added javaws in defaults.list as the default application for the .jnlp files. Fixes bug #6351401
|
|
108 |
|
|
109 |
* Thu Jul 21 2005 - [email protected]
|
|
110 |
- Added defaults.list file in the package. It provides the defaults application
|
|
111 |
handler for all mime types.
|
|
112 |
|
|
113 |
* Tue Jun 21 2005 - [email protected]
|
|
114 |
- 6285970: create /usr/share/application-registry for RealPlayer
|
|
115 |
|
|
116 |
* Thu Jun 16 2005 - [email protected]
|
|
117 |
- Bump to 0.16, re-align patches
|
|
118 |
|
|
119 |
* Fri Apr 08 2005 - [email protected]
|
|
120 |
- Added shared-mime-info-05-add-magic.diff to provide mime magic for
|
|
121 |
staroffice and opendocuments file types. Fixes #6234855.
|
|
122 |
|
|
123 |
* Thu Mar 31 2005 - [email protected]
|
|
124 |
- Add some more media types to get things working.
|
|
125 |
|
|
126 |
* Thu Jan 27 2005 - [email protected]
|
|
127 |
- Added shared-mime-info-04-mime-type-mrproject.diff patch to
|
|
128 |
associate the application planner for .mrproject files.
|
|
129 |
Fixes bug #6217022.
|
|
130 |
|
|
131 |
* Fri Nov 05 2004 - [email protected]
|
|
132 |
- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate
|
|
133 |
correct mime type for staroffice applications extension in capitals.
|
|
134 |
Fixes bug #5097261.
|
|
135 |
|
|
136 |
* Thu Oct 28 2004 - [email protected]
|
|
137 |
- Add update-mime-database.1 man page
|
|
138 |
|
|
139 |
* Wed Sep 15 2004 - [email protected]
|
|
140 |
- Added shared-mime-info-02-g11n-alllinguas.diff, to update support for all linguas
|
|
141 |
|
|
142 |
* Thu Jul 08 2004 - [email protected]
|
|
143 |
- Updated l10n content to shared-mime-info-l10n-po-1.2.tar.bz2
|
|
144 |
|
|
145 |
* Thu Jul 08 2004 - [email protected]
|
|
146 |
- ported to rpm4
|
|
147 |
|
|
148 |
* Wed Jul 07 2004 - [email protected]
|
|
149 |
- added "-j $CPUS" to make to speed up builds
|
|
150 |
|
|
151 |
* Wed May 12 2004 - [email protected]
|
|
152 |
- Updated l10n content to shared-mime-info-l10n-po-1.1.tar.bz2
|
|
153 |
|
|
154 |
* Mon Apr 5 2004 - [email protected]
|
|
155 |
- Bump to 0.14.
|
|
156 |
|
|
157 |
* Wed Mar 31 2004 - [email protected]
|
|
158 |
- replace tar jxf with the more solaris friendly
|
|
159 |
bzcat piped through tar
|
|
160 |
|
|
161 |
* Mon Mar 29 2004 - [email protected]
|
|
162 |
- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content
|
|
163 |
|
|
164 |
* Thu Mar 11 2004 - [email protected]
|
|
165 |
- added shared-mime-info-01-g11n-potfiles.diff
|
|
166 |
|
|
167 |
* Tue Mar 02 2004 - [email protected]
|
|
168 |
- remove "-n gtkam" from changelog tag
|
|
169 |
- add ACLOCAL_FLAGS to aclocal args
|
|
170 |
|
|
171 |
* Mon Feb 23 2004 - [email protected]
|
|
172 |
- Update Distro
|
|
173 |
|
|
174 |
* Mon Feb 02 2004 - [email protected]
|
|
175 |
- Initial version
|