gnome-menus.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19719 d184ca39d269
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: 19586
diff changeset
     1
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     2
# spec file for package gnome-menus
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     3
#
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     5
# This file and all modifications and additions to the pristine
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     6
# package are under the same license as the package itself.
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
     7
#
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     8
Name:			gnome-menus
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
     9
License:		LGPL
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    10
Group:			System/GUI/GNOME
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    11
Version:		2.10.1
19297
1e83be96c7b5 2005-05-17 Glynn Foster <[email protected]>
gman
parents: 19290
diff changeset
    12
Release:		2
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
    13
Distribution:		Java Desktop System
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    14
Vendor:			Sun Microsystems, Inc.
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    15
Summary:		Implementation of Desktop Menu Specification for GNOME
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
    16
Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.10/%{name}-%{version}.tar.bz2
19277
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
    17
Patch1:                 gnome-menus-01-uninstalled_pc.diff
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    18
URL:			http://www.gnome.org
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    19
BuildRoot:		%{_tmppath}/%{name}-%{version}-build
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    20
Docdir:			%{_defaultdocdir}/%{name}
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    21
Autoreqprov:		on
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
    22
Prereq:                 /sbin/ldconfig
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19586
diff changeset
    23
Prereq:                 GConf
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    24
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    25
%define gnome_vfs_version 2.8.2
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    26
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    27
BuildRequires: gnome-vfs >= %{gnome_common_version}
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    28
BuildRequires: intltool
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    29
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    30
%description
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    31
This package implements the freedesktop.org desktop menu specification for the GNOME
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    32
desktop. Also contained in this package, are the menu layout configuration files, .directory
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    33
and assorted menu utility programs.
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    34
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    35
%package devel
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    36
Summary:      Implementation of Desktop Menu Specification for GNOME
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    37
Group:        System/Libraries/GNOME
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    38
Autoreqprov:  on
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    39
Requires:     %name = %version
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    40
Requires:     gnome-vfs-devel >= %{gnome_vfs_version}
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    41
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    42
%description devel
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    43
This package implements the freedesktop.org desktop menu specification for the GNOME
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    44
desktop. Also contained in this package, are the menu layout configuration files, .directory
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    45
and assorted menu utility programs.
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    46
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    47
%prep
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    48
%setup -q
19277
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
    49
%patch1 -p1 
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    50
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    51
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    52
%build
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    53
%ifos linux
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    54
if [ -x /usr/bin/getconf ]; then
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    55
  CPUS=`getconf _NPROCESSORS_ONLN`
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    56
fi
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    57
%else
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    58
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    59
%endif
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    60
if test "x$CPUS" = "x" -o $CPUS = 0; then
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    61
  CPUS=1
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    62
fi
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    63
19277
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
    64
aclocal $ACLOCAL_FLAGS
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
    65
automake -a -c -f
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
    66
autoconf
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    67
./configure --prefix=%{_prefix}			\
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    68
	    --sysconfdir=%{_sysconfdir}		\
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    69
            --mandir=%{_mandir}
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    70
make -j $CPUS
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    71
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    72
%install
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    73
make DESTDIR=$RPM_BUILD_ROOT install
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    74
rm $RPM_BUILD_ROOT%{_libdir}/*.a
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    75
rm $RPM_BUILD_ROOT%{_libdir}/*.la
19365
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    76
# FIXME: Giga-hack part 1 of 2 follows...
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    77
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES
19719
d184ca39d269 2005-08-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
    78
# Only on SuSE Linux !!
19586
adcf67acb4be Fix items on Launch menu for Solaris
mattk
parents: 19365
diff changeset
    79
%ifos linux
19365
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    80
mv $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu \
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    81
   $RPM_BUILD_ROOT%{_sysconfdir}/xdg/menus/applications.menu.new
19586
adcf67acb4be Fix items on Launch menu for Solaris
mattk
parents: 19365
diff changeset
    82
%endif
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    83
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    84
%post
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    85
/sbin/ldconfig
19365
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    86
# FIXME: Giga-hack part 2 of 2 follows...
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    87
# file /etc/xdg/menus/applications.menu conflicts with desktop-data-SLES
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    88
MENU=/etc/xdg/menus/applications.menu
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    89
cp $MENU $MENU.SuSE
cf6ebcb9c095 2005-06-04 Laszlo Peter <[email protected]>
laca
parents: 19297
diff changeset
    90
cp $MENU.new $MENU
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    91
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    92
%postun
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
    93
/sbin/ldconfig
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    94
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    95
%clean
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    96
rm -rf $RPM_BUILD_ROOT
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    97
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    98
%files
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
    99
%defattr(-,root,root)
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   100
%{_bindir}/*
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   101
%{_libdir}/libgnome-menu.so.*
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
   102
%{_datadir}/desktop-directories/*
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   103
%config %{_sysconfdir}/xdg/menus/*
19290
b5c87232380a 2005-05-16 Glynn Foster <[email protected]>
gman
parents: 19277
diff changeset
   104
%{_datadir}/locale/*/LC_MESSAGES/*.mo
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   105
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   106
%files devel
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   107
%defattr(-, root, root)
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   108
%{_libdir}/pkgconfig/*
19297
1e83be96c7b5 2005-05-17 Glynn Foster <[email protected]>
gman
parents: 19290
diff changeset
   109
%{_libdir}/libgnome-menu.so
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   110
%{_includedir}/gnome-menus/*
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   111
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   112
%changelog
19277
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
   113
* Fri May 13 2005 - [email protected]
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
   114
- Add unisntalled-pc files since they are needed on Solaris to build.
c31ef6b86016 2005-05-13 Brian Cameron <[email protected]>
bc99092
parents: 19239
diff changeset
   115
19239
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   116
* Tue May 10 2005 - [email protected] 
c3ba50c7c478 2005-05-10 Glynn Foster <[email protected]>
gman
parents:
diff changeset
   117
- Initial spec file for gnome-menus