Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > media > contrib-src > by-pkgid > 773d16f9f41ef9f207c8887ce28cc584 > files > 2

gnustep-objc-1.2.0-1mdk.src.rpm

%define gs_root         /usr/GNUstep/System
%define gs_install_dir  /usr/GNUstep/System
%define name         	gnustep-objc
%define version      	1.2.0
%define gs_configure    NO
 
Name: 		%{name}
Version: 	%{version}
Release: 	1mdk
Source: 	ftp://ftp.gnustep.org/pub/gnustep/libs/%{name}-%{version}.tar.gz
License: 	GPL
Group: 		Development/Libraries
Summary: 	Objective-C Runtime Library
URL:		http://www.gnustep.org/
BuildRoot: 	%{_tmppath}%{name}-%{version}

%description
Library containing the Objective-C runtime.

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

%build
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{gs_root}/Makefiles/GNUstep.sh 
fi
if [ "%{gs_configure}" = "YES" ]; then 
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{gs_root}
fi
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

%files
%defattr (-,root,root)
/usr/GNUstep/*

%post
echo "/usr/GNUstep/System/Libraries/ix86/linux-gnu" >> /etc/ld.so.conf
/sbin/ldconfig

%postun
grep -v "/usr/GNUstep/System/Libraries/ix86/linux-gnu" /etc/ld.so.conf > /etc/ld.so.conf.sauv
cp -f /etc/ld.so.conf.sauv /etc/ld.so.conf
/sbin/ldconfig

%changelog
* Fri Jul 9 2002 Antoine Ginies <aginies@mandrakesoft.com> 1.2.0-1mdk
- first mandrakesoft.com release
- based on Adam Fedor <fedor@gnu.org> spec