source: trunk/third/gnome-core/gnome-core.spec.in @ 15821

Revision 15821, 6.1 KB checked in by ghudson, 24 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r15820, which included commits to RCS files with non-trunk default branches.
Line 
1# Note that this is NOT a relocatable package
2%define ver             @VERSION@
3%define RELEASE         1
4%define rel             %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5%define sysconfdir      /etc
6
7Summary: The core programs for the GNOME GUI desktop environment.
8Name:           gnome-core
9Version:        %ver
10Release:        %rel
11Copyright:      LGPL
12Group:          System Environment/Base
13Source: ftp://ftp.gnome.org/pub/sources/gnome-core/gnome-core-%{ver}.tar.gz
14BuildRoot:      /var/tmp/%{name}-%{version}-root
15URL:            http://www.gnome.org
16Prereq:         /sbin/install-info
17Docdir:         %{_prefix}/doc
18
19Requires:       gnome-libs >= 1.0.50
20Requires:       ORBit >= 0.5.0
21Requires:       gdk-pixbuf >= 0.7.0
22
23%description
24GNOME (GNU Network Object Model Environment) is a user-friendly
25set of applications and desktop tools to be used in conjunction with a
26window manager for the X Window System.  GNOME is similar in purpose and
27scope to CDE and KDE, but GNOME is based completely on free
28software.  The gnome-core package includes the basic programs and
29libraries that are needed to install GNOME.
30
31You should install the gnome-core package if you would like to use the
32GNOME desktop environment.  You'll also need to install the gnome-libs
33package.  If you would like to develop GNOME applications, you'll also
34need to install gnome-libs-devel.  If you want to use linuxconf with a
35GNOME front end, you'll also need to install the gnome-linuxconf package.
36
37%package devel
38Summary: GNOME core libraries, includes and more.
39Group:          Development/Libraries
40Requires:       gnome-core
41PreReq:         /sbin/install-info
42
43%description devel
44Panel libraries and header files for creating GNOME panels.
45
46%changelog
47* Sat Feb 17 2001 George Lebl <jirka@5z.com>
48- correctly set localstatedir so that all files are installed
49
50* Sat Feb 26 2000 Gregory McLean <gregm@comstar.net>
51- Updated to 1.1.4
52- Autogenerate the %files section.
53
54* Sat Oct 16 1999 Gregory McLean <gregm@comstar.net>
55- Updated to 1.0.50
56- Sorted the language specific stuff out.
57
58* Sun Oct 03 1999 Gregory McLean <gregm@comstar.net>
59- updated to 1.0.50
60- Overhauled the %files section.
61
62* Sat Nov 21 1998 Pablo Saratxaga <srtxg@chanae.alphanet.ch>
63
64- Cleaned %files section
65- added spanish and french translations for rpm
66
67* Wed Sep 23 1998 Michael Fulbright <msf@redhat.com>
68
69- Built 0.30 release
70
71* Fri Mar 13 1998 Marc Ewing <marc@redhat.com>
72
73- Integrate into gnome-core CVS source tree
74
75%prep
76%setup -q
77
78%build
79%configure --quiet --disable-gtkhtml-help --sysconfdir=/etc --localstatedir=/var/lib
80CFLAGS="$RPM_OPT_FLAGS" make
81
82%install
83[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
84
85make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var/lib install >install.log 2>&1
86#if [ -d $RPM_BUILD_ROOT%{_prefix}/bin ] ; then
87# strip `file $RPM_BUILD_ROOT%{_prefix}/bin/* | grep ELF | cut -d':' -f 1`
88#fi
89if [ -d $RPM_BUILD_ROOT/usr/man ]; then
90  find $RPM_BUILD_ROOT/usr/man -type f -exec gzip -9f {} \;
91fi
92if [ -f %{name}.files ] ; then
93  rm -f %{name}.files
94fi
95##############################################################################
96##
97
98function ProcessLang() {
99 # rpm provides a handy scriptlet to do the locale stuff lets use that.
100 if [ -f /usr/lib/rpm/find-lang.sh ] ; then
101  /usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name
102  sed "s:(644, root, root, 755):(444, bin, bin, 555):" %{name}.lang >tmp.lang && mv tmp.lang %{name}.lang
103  if [ -f %{name}.files ] ; then
104    cat %{name}.files %{name}.lang >tmp.files && mv tmp.files %{name}.files
105  fi
106 fi
107}
108#
109# Build up the list of files that need to be installed.
110# its messy but it catches everything that is installed.
111#
112function ProcessBin() {
113  # Gather up all the executable files. Stripping if requested.
114  # This will not recurse.
115  if [ -d $RPM_BUILD_ROOT%{_prefix}/bin ] ; then
116    echo "%defattr (0555, bin, bin)" >>%{name}.files
117    find $RPM_BUILD_ROOT%{_prefix}/bin -type f -print | sed "s:^$RPM_BUILD_ROOT::g" >>%{name}.files
118  fi
119}
120function ProcessLib() {
121  # Gather up any libraries.
122  # Usage: ProcessLib <dir> <type> <output file>
123  # Type is either 'runtime' or 'devel'
124  if [ -d $1 ] ; then
125    echo "%defattr (0555, bin, bin)" >>$3
126    case "$2" in
127      runtime)
128       # Grab runtime libraries
129       find $1 -name "*.so.*" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3
130       ;;
131      devel)
132       find $1 -name "*.so" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3
133       find $1 -name "*.la" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3
134       find $1 -name "*.a" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3
135       find $1 -name "*.sh" -print | sed "s:^$RPM_BUILD_ROOT::g" >>$3
136       ;;
137    esac
138   fi
139}
140
141function ProcessDir() {
142  # Build a list of files in the specified dir sticking
143  # a %defattr line as specified in front of the mess. This is intended
144  # for normal dirs. Use ProcessLib for library dirs
145  # for include dirs. Appending to <output file>.
146  # This will recurse.
147  #
148  # Usage: ProcessDir <dir> <output file> <attr>
149  #
150  if [ -d $1 ] ; then
151   if [ ! -z "$3" ] ; then
152     echo "%defattr ($3)" >>$2
153   fi
154   echo "*** Processing $1"
155   find $1 -type f -print | sed "s:^$RPM_BUILD_ROOT::g" >>$2
156  fi
157}
158
159function BuildFiles() {
160  ProcessBin
161  ProcessLang
162  for i in `find $RPM_BUILD_ROOT%{_prefix}/share -maxdepth 1 -type d -print | \
163     sed "s:^$RPM_BUILD_ROOT%{_prefix}/share::g"` ; do
164    echo $i
165    case $i in
166     /applets|/control-center|/gnome|/gnome-about|/mc|/panelrc|/pixmaps)
167
168         ProcessDir $RPM_BUILD_ROOT%{_prefix}/share$i %{name}.files "0444, bin, bin, 0555"
169         ;;
170     *)
171         ;;
172   esac
173  done
174  ProcessDir $RPM_BUILD_ROOT/etc %{name}.files "0444, bin, bin, 0555"
175  ProcessLib $RPM_BUILD_ROOT%{_prefix}/lib runtime %{name}.files
176  ProcessDir $RPM_BUILD_ROOT%{_prefix}/share/idl %{name}-devel.files "0444, bin, bin, 0555"
177  ProcessLib $RPM_BUILD_ROOT%{_prefix}/lib devel %{name}-devel.files
178  ProcessDir $RPM_BUILD_ROOT%{_prefix}/include %{name}-devel.files "0444, bin, bin, 0555"
179}
180
181BuildFiles
182 
183%clean
184[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
185
186%post -p /sbin/ldconfig
187
188%postun -p /sbin/ldconfig
189
190%files -f %{name}.files
191%doc AUTHORS COPYING ChangeLog NEWS README
192
193%files devel -f %{name}-devel.files
Note: See TracBrowser for help on using the repository browser.