Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 16b59ad0813d2602e3e3a994a8c3ce80 > files > 2

gnustep-base-1.6.0-2mdk.src.rpm

%define gs_root         %{_prefix}/GNUstep/System
%define gs_install_dir  %{_prefix}/GNUstep/System
%define name         	gnustep-base
%define version      	1.6.0

%define major 1

%define libname %mklibname %name %major
%define libnamedev %mklibname %name %major -d

Name: 		%{name}
Version: 	%{version}
Prefix: 	%{gs_install_dir}
Release: 	2mdk
Source: 	%{name}-%{version}.tar.bz2
License: 	LGPL
Group: 		Development/Other
Summary: 	GNUstep Base package
URL:		http://www.gnustep.org/
BuildRequires:	gnustep-make libffcall0-devel
BuildRequires:	gcc-objc
Requires:	gnustep-make >= 1.5.1, gcc-objc
Requires:	%libname
BuildRoot: 	%{_tmppath}/%{name}-%{version}

%description
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well.  It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.

%package -n %libname
Summary: GNUstep Base library package
Group: Development/Other
Requires: %name
Provides: libgnustep-base libgnustep-base.so.1

%description -n %libname
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well.  It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.

%package -n %libnamedev
Summary: GNUstep Base library package
Group: Development/Other
Requires: %libname = %version
Provides: libgnustep-base-devel

%description -n %libnamedev
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well.  It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.


%prep

%setup -q -n %{name}-%{version}

%build
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{gs_root}/Makefiles/GNUstep.sh 
fi
# CFLAGS="$RPM_OPT_FLAGS" 
./configure --prefix=%{gs_root}
make

%install
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{gs_root}/Makefiles/GNUstep.sh 
fi

make INSTALL_ROOT_DIR=$RPM_BUILD_ROOT \
  GNUSTEP_INSTALLATION_DIR=$RPM_BUILD_ROOT%{gs_install_dir} \
  filelist=yes install

%clean
rm -rf $RPM_BUILD_ROOT

%post 
if [ $1 = 1 ]; then
#  if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
#     . %{gs_root}/Makefiles/GNUstep.sh 
#  fi
grep -q '^gdomap' /etc/services                                            \
   || (echo "gdomap 538/tcp # GNUstep distributed objects" >> /etc/services  \
       && echo "gdomap 538/udp # GNUstep distributed objects" >> /etc/services)
fi
echo "/usr/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu" >> /etc/ld.so.conf

%postun 
if [ $1 = 0 ]; then
#  if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
#     . %{gs_root}/Makefiles/GNUstep.sh 
#  fi
mv -f /etc/services /etc/services.orig
grep -v "^gdomap 538" /etc/services.orig > /etc/services
rm -f /etc/services.orig
fi
grep -v "/usr/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu" /etc/ld.so.conf > /etc/ld.so.conf.sauv
cp -f /etc/ld.so.conf.sauv /etc/ld.so.conf

%files
%defattr (-,root,root)
%doc ANNOUNCE BUGS COPYING COPYING.LIB ChangeLog INSTALL
%doc NEWS README
/usr/GNUstep/System/Headers
/usr/GNUstep/System/Libraries/Resources
/usr/GNUstep/System/Library
/usr/GNUstep/System/Makefiles
/usr/GNUstep/System/Tools

%files -n %libname
%defattr (-, root, root)
%_prefix/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu/*.so.*

%files -n %libnamedev
%defattr (-, root, root)
%_prefix/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu/*.so

%changelog
* Fri Aug 08 2003 Marcel Pol <mpol@gmx.net> 1.6.0-2mdk
- rebuild
- setup -q

* Wed Jun 04 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.6.0-1mdk
- 1.6.0

* Thu May 15 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.5.1-4mdk
- explicit provides

* Wed May 07 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.5.1-3mdk
- split packages to resolve dependencies

* Wed Apr 30 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.5.1-2mdk
- buildprereq

* Wed Dec 18 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.5.1-1mdk
- 1.5.1

* Sat Nov 16 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.5.0-1mdk
- 1.5.0
- bzip2 sources

* Fri Aug 09 2002 Antoine Ginies <aginies@mandrakesoft.com> 1.4.0-1mdk
- first Mandrakesoft release
- based on Adam Fedor <fedor@gnu.org> spec