shared-mime-info.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19904 5f15c2434c04
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     1
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     2
# spec file for package shared-mime-info
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     3
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     5
# This file and all modifications and additions to the pristine
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     6
# package are under the same license as the package itself.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
     7
#
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
     8
Name:         shared-mime-info
442a4aeadc66 New spec file
mattk
parents:
diff changeset
     9
License:      GPL
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    10
Group:        Hardware/Other
19446
53be808d71e1 Bump to 0.16, re-align patches
mattk
parents: 19385
diff changeset
    11
Version:      0.16
19609
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    12
Release:      2
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19643
diff changeset
    13
Distribution: Java Desktop System
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    14
Vendor:       Sun Microsystems, Inc.
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    15
Summary:      Core Common Mime Type Database
19895
d668be277305 Update Url
mattk
parents: 19889
diff changeset
    16
#Source:       http://www.freedesktop.org/Software/%{name}/%{name}-%{version}.tar.bz2
d668be277305 Update Url
mattk
parents: 19889
diff changeset
    17
Source:       http://freedesktop.org/~jrb/%{name}-%{version}.tar.gz
19904
5f15c2434c04 remove l10n tarball
laca
parents: 19895
diff changeset
    18
Source1:      update-mime-database.1.gz
5f15c2434c04 remove l10n tarball
laca
parents: 19895
diff changeset
    19
Source2:      defaults.list
19733
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    20
Patch1:       shared-mime-info-01-add-mime-types.diff
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    21
URL:          http://www.freedesktop.org/Software/%{name}
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    22
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    23
DocDir:       %{_defaultdocdir}/%{name}
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    24
19385
fafc264f8836 2005-06-10 Glynn Foster <[email protected]>
gman
parents: 19260
diff changeset
    25
BuildRequires: glib2
fafc264f8836 2005-06-10 Glynn Foster <[email protected]>
gman
parents: 19260
diff changeset
    26
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    27
%description
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    28
shared-mime-info contains the core database of common types and the
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    29
update-mime-database command used to extend it.
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    30
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    31
%prep
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    32
%setup -q
19733
2ce91108f14e 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19719
diff changeset
    33
%patch1 -p1
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    34
4455
aea26bce3124 2004-11-05 Takao Fujiwara <[email protected]>
fujiwara
parents: 4409
diff changeset
    35
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    36
%build
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    37
%ifos linux
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    38
if [ -x /usr/bin/getconf ]; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    39
  CPUS=`getconf _NPROCESSORS_ONLN`
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    40
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    41
%else
3846
9ab79af72b15 2004-09-05 Laszlo Peter <[email protected]>
laca
parents: 3679
diff changeset
    42
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    43
%endif
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    44
if test "x$CPUS" = "x" -o $CPUS = 0; then
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    45
  CPUS=1
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    46
fi
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    47
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    48
libtoolize --force
19243
d6fd8cb4c163 2005-05-09 Brian Cameron <[email protected]>
bc99092
parents: 5370
diff changeset
    49
aclocal $ACLOCAL_FLAGS
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    50
automake -a -c -f
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    51
autoconf
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    52
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
    53
make -j $CPUS
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    54
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    55
%install
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    56
mkdir -p $RPM_BUILD_ROOT%{_prefix}
19609
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    57
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    58
make DESTDIR=$RPM_BUILD_ROOT install-strip
4357
2474a25f2946 Cinnabar Manpage Delivery... phew
mattk
parents: 4276
diff changeset
    59
install -d $RPM_BUILD_ROOT%{_mandir}/man1
19904
5f15c2434c04 remove l10n tarball
laca
parents: 19895
diff changeset
    60
install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man1
5f15c2434c04 remove l10n tarball
laca
parents: 19895
diff changeset
    61
install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/applications/defaults.list
19643
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19609
diff changeset
    62
install -d $RPM_BUILD_ROOT%{_datadir}/application-registry
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    63
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    64
%clean
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    65
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    66
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    67
%post
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    68
update-mime-database %{_datadir}/mime
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    69
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    70
%files
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    71
%defattr(-,root,root)
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    72
%{_bindir}/update-mime-database
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    73
%{_datadir}/locale/*/LC_MESSAGES/shared-mime-info.mo
3628
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
    74
# No point in making a seperate devel pkg just for one silly pkgconfig file
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
    75
%{_libdir}/pkgconfig/*.pc
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    76
%{_datadir}/mime/*
19609
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    77
%{_datadir}/applications/defaults.list
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    78
%{_mandir}/man1/*
19643
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19609
diff changeset
    79
%{_datadir}/application-registry
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
    80
2113
affee1012cd4 2004-03-02 Niall Power <[email protected]>
niall
parents: 1894
diff changeset
    81
%changelog
19609
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    82
* Thu Jul 21 2005 - [email protected]
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    83
- Added defaults.list file in the package. It provides the defaults application 
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    84
  handler for all mime types. 
6f9ce36cc83e 2005-07-22 Archana Shah <[email protected]>
archana
parents: 19446
diff changeset
    85
19643
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19609
diff changeset
    86
* Tue Jun 21 2005 - [email protected]
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19609
diff changeset
    87
- 6285970: create /usr/share/application-registry for RealPlayer
798139c9a46e 2005-08-03 Laszlo Peter <[email protected]>
laca
parents: 19609
diff changeset
    88
19446
53be808d71e1 Bump to 0.16, re-align patches
mattk
parents: 19385
diff changeset
    89
* Thu Jun 16 2005 - [email protected]
53be808d71e1 Bump to 0.16, re-align patches
mattk
parents: 19385
diff changeset
    90
- Bump to 0.16, re-align patches
53be808d71e1 Bump to 0.16, re-align patches
mattk
parents: 19385
diff changeset
    91
5325
1686fcb3f2da 2005-04-08 vinay M R <[email protected]>
vinaymr
parents: 5289
diff changeset
    92
* Fri Apr 08 2005 - [email protected]
1686fcb3f2da 2005-04-08 vinay M R <[email protected]>
vinaymr
parents: 5289
diff changeset
    93
- Added shared-mime-info-05-add-magic.diff to provide mime magic for
1686fcb3f2da 2005-04-08 vinay M R <[email protected]>
vinaymr
parents: 5289
diff changeset
    94
  staroffice and opendocuments file types. Fixes #6234855.
1686fcb3f2da 2005-04-08 vinay M R <[email protected]>
vinaymr
parents: 5289
diff changeset
    95
5289
d019f703640f 2005-03-31 Glynn Foster <[email protected]>
gman
parents: 5281
diff changeset
    96
* Thu Mar 31 2005 - [email protected]
d019f703640f 2005-03-31 Glynn Foster <[email protected]>
gman
parents: 5281
diff changeset
    97
- Add some more media types to get things working.
d019f703640f 2005-03-31 Glynn Foster <[email protected]>
gman
parents: 5281
diff changeset
    98
4944
1ba0dc8951da 2005-01-27 Dinoop Thomas <[email protected]>
vijay
parents: 4867
diff changeset
    99
* Thu Jan 27 2005 - [email protected]
1ba0dc8951da 2005-01-27 Dinoop Thomas <[email protected]>
vijay
parents: 4867
diff changeset
   100
- Added shared-mime-info-04-mime-type-mrproject.diff patch to 
1ba0dc8951da 2005-01-27 Dinoop Thomas <[email protected]>
vijay
parents: 4867
diff changeset
   101
  associate the application planner for .mrproject files. 
1ba0dc8951da 2005-01-27 Dinoop Thomas <[email protected]>
vijay
parents: 4867
diff changeset
   102
  Fixes bug #6217022.
1ba0dc8951da 2005-01-27 Dinoop Thomas <[email protected]>
vijay
parents: 4867
diff changeset
   103
 
4456
f45ebb94d324 2004-11-05 Vinay M R <[email protected]>
vinaymr
parents: 4455
diff changeset
   104
* Fri Nov 05 2004 - [email protected]
f45ebb94d324 2004-11-05 Vinay M R <[email protected]>
vinaymr
parents: 4455
diff changeset
   105
- Added shared-mime-info-03-mime-type-staroffice-capital.diff to associate  
f45ebb94d324 2004-11-05 Vinay M R <[email protected]>
vinaymr
parents: 4455
diff changeset
   106
  correct mime type for staroffice applications extension in capitals.
f45ebb94d324 2004-11-05 Vinay M R <[email protected]>
vinaymr
parents: 4455
diff changeset
   107
  Fixes bug #5097261.
f45ebb94d324 2004-11-05 Vinay M R <[email protected]>
vinaymr
parents: 4455
diff changeset
   108
4357
2474a25f2946 Cinnabar Manpage Delivery... phew
mattk
parents: 4276
diff changeset
   109
* Thu Oct 28 2004 - [email protected]
2474a25f2946 Cinnabar Manpage Delivery... phew
mattk
parents: 4276
diff changeset
   110
- Add update-mime-database.1 man page
2474a25f2946 Cinnabar Manpage Delivery... phew
mattk
parents: 4276
diff changeset
   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
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   118
* Thu Jul 08 2004 - [email protected]
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   119
- ported to rpm4
cf6118e136d2 Merged from cinnabar-suse91 branch back into HEAD
mattk
parents: 3580
diff changeset
   120
3263
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   121
* Wed Jul 07 2004 - [email protected]
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   122
- added "-j $CPUS" to make to speed up builds
3c14210c0b99 add -j to make to speed up build
dermotm
parents: 3224
diff changeset
   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
24c2eca18523 2004-04-05 Glynn Foster <[email protected]>
gman
parents: 2355
diff changeset
   127
* Mon Apr 5 2004 - [email protected]
24c2eca18523 2004-04-05 Glynn Foster <[email protected]>
gman
parents: 2355
diff changeset
   128
- Bump to 0.14.
24c2eca18523 2004-04-05 Glynn Foster <[email protected]>
gman
parents: 2355
diff changeset
   129
2355
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   130
* Wed Mar 31 2004 - [email protected]
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   131
- replace tar jxf with the more solaris friendly
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   132
  bzcat piped through tar
ccf597d7b37a 2004-03-31 Brian Cameron <[email protected]>
bc99092
parents: 2350
diff changeset
   133
2350
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   134
* Mon Mar 29 2004 - [email protected]
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   135
- Adding shared-mime-info-l10n-po-1.0.tar.bz2 l10n content
9adca2a8c84f Uprevved l10n tarballs to version 1.0
damiend
parents: 2280
diff changeset
   136
2191
258cfe83765d Updated the following files:
yk150259
parents: 2159
diff changeset
   137
* Thu Mar 11 2004 - [email protected]
258cfe83765d Updated the following files:
yk150259
parents: 2159
diff changeset
   138
- added shared-mime-info-01-g11n-potfiles.diff
258cfe83765d Updated the following files:
yk150259
parents: 2159
diff changeset
   139
2113
affee1012cd4 2004-03-02 Niall Power <[email protected]>
niall
parents: 1894
diff changeset
   140
* Tue Mar 02 2004 - [email protected]
affee1012cd4 2004-03-02 Niall Power <[email protected]>
niall
parents: 1894
diff changeset
   141
- remove "-n gtkam" from changelog tag
affee1012cd4 2004-03-02 Niall Power <[email protected]>
niall
parents: 1894
diff changeset
   142
- add ACLOCAL_FLAGS to aclocal args
affee1012cd4 2004-03-02 Niall Power <[email protected]>
niall
parents: 1894
diff changeset
   143
1894
536eb514c874 Update distro
mattk
parents: 1876
diff changeset
   144
* Mon Feb 23 2004 - [email protected]
536eb514c874 Update distro
mattk
parents: 1876
diff changeset
   145
- Update Distro
536eb514c874 Update distro
mattk
parents: 1876
diff changeset
   146
1557
442a4aeadc66 New spec file
mattk
parents:
diff changeset
   147
* Mon Feb 02 2004 - [email protected]
442a4aeadc66 New spec file
mattk
parents:
diff changeset
   148
- Initial version