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