~ubuntu-branches/ubuntu/jaunty/gnome-common/jaunty

« back to all changes in this revision

Viewing changes to gnome-common.spec

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach
  • Date: 2004-11-14 01:01:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041114010118-cm3q525sf2y56kdh
Tags: 2.8.0-3
debian/patches/01_autogen_copy_files.patch: use --force only
if $REQUIRED_AUTOMAKE_VERSION != 1.4 (closes: #281063).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Note this is NOT a relocatable thing :)
2
 
%define name            gnome-common
3
 
%define ver             1.2.4
4
 
%define RELEASE         0_cvs_0
5
 
%define rel             %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
6
 
%define prefix          /usr
7
 
%define sysconfdir      /etc
8
 
 
9
 
Name:           %name
10
 
Summary:        gnome-common contains usefull things common to building gnome packages
11
 
Version:        %ver
12
 
Distribution:   GNOME
13
 
Vendor:         CVS
14
 
Release:        %rel
15
 
Copyright:      GPL
16
 
Group:          Development/Tools
17
 
Source:         %{name}-%{ver}.tar.gz
18
 
URL:            http://gnome.org
19
 
BuildRoot:      /var/tmp/%{name}-%{ver}-root
20
 
Docdir:         %{prefix}/doc
 
1
Name: gnome-common
 
2
Summary: gnome-common contains usefull things common to building gnome packages
 
3
Version: 2.8.0
 
4
Release: 0
 
5
License: GPL
 
6
Group: Development/Tools
 
7
Source: %{name}-%{version}.tar.gz
 
8
URL: http://developer.gnome.org/
 
9
BuildArch: noarch
 
10
BuildRoot: %{_tmppath}/%{name}-%{version}-root
21
11
 
22
12
%description
23
 
gnome-common is for developing various GNOME modules that have to do similar things
 
13
Contains files required to bootstrap various Gnome modules when building
 
14
from CVS.
24
15
 
25
16
%changelog
 
17
* Thu May 13 2004 James Henstridge <james@daa.com.au>
 
18
- update and simplify
26
19
* Mon Mar 26 2000 Robin * Slomkowski <rslomkow@rslomkow.org>
27
20
- created this thing, and replaced the generic specfile
28
21
 
30
23
%setup
31
24
 
32
25
%build
33
 
%ifarch alpha
34
 
  MYARCH_FLAGS="--host=alpha-redhat-linux"
35
 
%endif
36
 
 
37
 
LC_ALL=""
38
 
LINGUAS=""
39
 
LANG=""
40
 
export LC_ALL LINGUAS LANG
41
 
 
42
 
CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS \
43
 
        --prefix=%{prefix} \
44
 
        --enable-platform-gnome-2 \
45
 
        --sysconfdir=%{sysconfdir}
46
 
 
47
 
if [ "$SMP" != "" ]; then
48
 
  (make "MAKE=make -k -j $SMP"; exit 0)
49
 
  make
50
 
else
51
 
  make
52
 
fi
 
26
 
 
27
%configure
 
28
make
53
29
 
54
30
%install
55
 
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
56
 
 
57
 
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
58
 
 
59
 
for FILE in "$RPM_BUILD_ROOT/bin/*"; do
60
 
        file "$FILE" | grep -q not\ stripped && strip $FILE
61
 
done
62
 
 
63
 
%clean
64
 
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
65
 
 
66
 
%post
67
 
if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
68
 
  echo "%{prefix}/lib" >> /etc/ld.so.conf
69
 
fi
70
 
  
71
 
/sbin/ldconfig
72
 
  
73
 
%postun -p /sbin/ldconfig
 
31
 
 
32
%makeinstall
74
33
 
75
34
%files
76
35
 
77
 
%defattr(0555, bin, bin)
78
 
%{prefix}/bin/*
79
 
 
80
 
%defattr (0444, bin, bin)
81
 
%{prefix}/share/aclocal/gnome-macros/*
82
 
%{prefix}/share/aclocal/gnome2-macros/*
 
36
%defattr(-, root, root)
 
37
%{_bindir}/*
 
38
%{_datadir}/aclocal/*
 
39
%{_datadir}/gnome-common