author | Jon Tibble <meths@btinternet.com> |
Sat, 06 Oct 2012 16:11:50 +0100 | |
branch | s11express-2010-11 |
changeset 22109 | db10202d5f6d |
parent 17885 | 89c68f7e6b08 |
child 20216 | 87c403e99dad |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package shared-mime-info |
|
3 |
# |
|
17467 | 4 |
# Copyright (c) 2010 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner padraig |
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 |
# |
16429 | 11 |
|
12 |
%define OSR 4097:0.16 |
|
13 |
||
9397 | 14 |
Name: shared-mime-info |
17467 | 15 |
License: GPLv2 |
9397 | 16 |
Group: Hardware/Other |
17885 | 17 |
Version: 0.71 |
9397 | 18 |
Release: 1 |
19 |
Distribution: Java Desktop System |
|
17865 | 20 |
Vendor: freedesktop.org |
9397 | 21 |
Summary: Core Common Mime Type Database |
22 |
#Source: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.bz2 |
|
9570 | 23 |
Source: http://freedesktop.org/~hadess/%{name}-%{version}.tar.bz2 |
9400 | 24 |
Source1: defaults.list |
12031 | 25 |
%if %build_l10n |
26 |
Source2: l10n-configure.sh |
|
27 |
%endif |
|
9397 | 28 |
URL: http://www.freedesktop.org/Software/%{name} |
29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
30 |
DocDir: %{_defaultdocdir}/%{name} |
|
31 |
||
32 |
BuildRequires: glib2 |
|
33 |
||
34 |
%description |
|
35 |
shared-mime-info contains the core database of common types and the |
|
36 |
update-mime-database command used to extend it. |
|
37 |
||
38 |
%prep |
|
39 |
%setup -q |
|
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 |
|
10395 | 54 |
intltoolize --force --copy --automake |
12031 | 55 |
|
56 |
%if %build_l10n |
|
57 |
bash -x %SOURCE2 --enable-copyright |
|
58 |
%endif |
|
59 |
||
9397 | 60 |
aclocal $ACLOCAL_FLAGS |
61 |
automake -a -c -f |
|
62 |
autoconf |
|
63 |
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir} |
|
64 |
make -j $CPUS |
|
65 |
||
66 |
%install |
|
67 |
mkdir -p $RPM_BUILD_ROOT%{_prefix} |
|
68 |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications |
|
69 |
make DESTDIR=$RPM_BUILD_ROOT install-strip |
|
9400 | 70 |
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list |
9397 | 71 |
install -d $RPM_BUILD_ROOT%{_datadir}/application-registry |
72 |
||
73 |
%clean |
|
74 |
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
|
75 |
||
76 |
%post |
|
77 |
update-mime-database %{_datadir}/mime |
|
78 |
||
79 |
%files |
|
80 |
%defattr(-,root,root) |
|
81 |
%{_bindir}/update-mime-database |
|
82 |
%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo |
|
83 |
# No point in making a seperate devel pkg just for one silly pkgconfig file |
|
84 |
%{_libdir}/pkgconfig/*.pc |
|
85 |
%{_datadir}/mime/* |
|
86 |
%{_datadir}/applications/defaults.list |
|
87 |
%{_mandir}/man1/* |
|
88 |
%{_datadir}/application-registry |
|
89 |
||
90 |
%changelog |
|
17885 | 91 |
* Tue Apr 20 2010 - [email protected] |
92 |
- Bump to 0.71. |
|
17467 | 93 |
* Thu Jan 28 2010 - [email protected] |
94 |
- Bump to 0.70. |
|
16156 | 95 |
* Tue Jul 28 2009 - [email protected] |
96 |
- Bump to 0.60. |
|
13205
002be3242047
* base-specs/shared-mime-info.spec: Bump to 0.51.
jyu_mit
parents:
12658
diff
changeset
|
97 |
* Thu Aug 21 2008 - [email protected] |
002be3242047
* base-specs/shared-mime-info.spec: Bump to 0.51.
jyu_mit
parents:
12658
diff
changeset
|
98 |
- Bump to 0.51. |
12658 | 99 |
* Fri Jun 13 2008 - [email protected] |
100 |
- Bump to 0.40. |
|
10395 | 101 |
* Wed Aug 29 2007 - [email protected] |
102 |
- Add intltoolize calls to update intltool scripts. |
|
10361 | 103 |
* Wed Aug 22 2007 - [email protected] |
104 |
- Bump to 0.22. Remove both patches as they are upstream. |
|
10123
0535aad9b6bb
* base-specs/shared-mime-info.spec : Updated to split patch add-mime-types
mattman
parents:
10062
diff
changeset
|
105 |
* Tue Jun 26 2007 - [email protected] |
17467 | 106 |
- Split add-mime-types patch into two patches to facilitate pushing upstream. |
9570 | 107 |
* Thu Mar 15 2007 - [email protected] |
108 |
- Bump to 0.20. |
|
9397 | 109 |
* Fri Dec 01 2006 - [email protected] |
110 |
- Bump to 0.19. Remove upstream patch 02-java-types. |
|
111 |
* Mon Jul 03 2006 - [email protected] |
|
17467 | 112 |
- Bump to 0.18. |
9397 | 113 |
* Thu May 11 2006 - [email protected] |
114 |
- Add Java types from Joe. |
|
115 |
* Tue Apr 11 2006 - [email protected] |
|
17467 | 116 |
- Bump to 0.17. |
9397 | 117 |
* Tue Apr 11 2006 - [email protected] |
118 |
- Add shared-mime-info-02-fix-m3u.diff to keep Bart happy. |
|
119 |
* Thu Dec 09 2005 - [email protected] |
|
120 |
- Modified patch shared-mime-info-01-add-mime-types.diff to include mime type |
|
121 |
for speex file. |
|
122 |
* Thu Dec 08 2005 - [email protected] |
|
123 |
- Remove l10n tarball. Not maintained in OpenSolaris releases. |
|
124 |
* Fri Dec 02 2005 - [email protected] |
|
17467 | 125 |
- Added javaws in defaults.list as the default application for the .jnlp files. Fixes bug #6351401. |
9397 | 126 |
* Thu Jul 21 2005 - [email protected] |
17467 | 127 |
- Added defaults.list file in the package. It provides the defaults application |
9397 | 128 |
handler for all mime types. |
129 |
* Tue Jun 21 2005 - [email protected] |
|
17467 | 130 |
- 6285970: create /usr/share/application-registry for RealPlayer. |
9397 | 131 |
* Thu Jun 16 2005 - [email protected] |
17467 | 132 |
- Bump to 0.16, re-align patches. |
9397 | 133 |
* Fri Apr 08 2005 - [email protected] |
134 |
- Added shared-mime-info-05-add-magic.diff to provide mime magic for |
|
135 |
staroffice and opendocuments file types. Fixes #6234855. |
|
136 |
* Thu Mar 31 2005 - [email protected] |
|
137 |
- Add some more media types to get things working. |
|
138 |
* Thu Jan 27 2005 - [email protected] |
|
139 |
- Added shared-mime-info-04-mime-type-mrproject.diff patch to |
|
17467 | 140 |
associate the application planner for .mrproject files. |
9397 | 141 |
Fixes bug #6217022. |
142 |
* Fri Nov 05 2004 - [email protected] |
|
143 |
- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate |
|
144 |
correct mime type for staroffice applications extension in capitals. |
|
145 |
Fixes bug #5097261. |
|
146 |
* Thu Oct 28 2004 - [email protected] |
|
17467 | 147 |
- Add update-mime-database.1 man page. |
9397 | 148 |
* Wed Sep 15 2004 - [email protected] |
17467 | 149 |
- Added shared-mime-info-02-g11n-alllinguas.diff, to update support for all linguas. |
9397 | 150 |
* Thu Jul 08 2004 - [email protected] |
17467 | 151 |
- Updated l10n content to shared-mime-info-l10n-po-1.2.tar.bz2. |
9397 | 152 |
* Thu Jul 08 2004 - [email protected] |
17467 | 153 |
- ported to rpm4. |
9397 | 154 |
* Wed Jul 07 2004 - [email protected] |
17467 | 155 |
- added "-j $CPUS" to make to speed up builds. |
9397 | 156 |
* Wed May 12 2004 - [email protected] |
17467 | 157 |
- Updated l10n content to shared-mime-info-l10n-po-1.1.tar.bz2. |
9397 | 158 |
* Mon Apr 5 2004 - [email protected] |
159 |
- Bump to 0.14. |
|
160 |
* Wed Mar 31 2004 - [email protected] |
|
17467 | 161 |
- replace tar jxf with the more solaris friendly. |
162 |
bzcat piped through tar. |
|
9397 | 163 |
* Mon Mar 29 2004 - [email protected] |
164 |
- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content |
|
165 |
* Thu Mar 11 2004 - [email protected] |
|
166 |
- added shared-mime-info-01-g11n-potfiles.diff |
|
167 |
* Tue Mar 02 2004 - [email protected] |
|
17467 | 168 |
- remove "-n gtkam" from changelog tag. |
169 |
- add ACLOCAL_FLAGS to aclocal args. |
|
170 |
* Mon Feb 23 2004 - [email protected] |
|
171 |
- Update Distro. |
|
172 |
* Mon Feb 02 2004 - [email protected] |
|
173 |
- Initial version. |
|
9397 | 174 |