Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 7c42ffa3c642ffe38fd64188a9654427 > files > 2

gnustep-base-1.20.1-2.fc14.src.rpm

%global	gsb_vers 1.20
%global gslibdir %{_libdir}/GNUstep/Libraries

Name:		gnustep-base
Version:	%{gsb_vers}.1
Release:	2%{?dist}
License:	LGPLv2+ and GPLv2+ and GPLv3+
Group:		Development/Libraries
Summary:	GNUstep Base library package
URL:		http://www.gnustep.org/
Source:		ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz

BuildRoot:	%{_tmppath}/-%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	gcc-objc
BuildRequires:	libffi-devel
BuildRequires:	gnutls-devel
BuildRequires:	libxml2-devel libxslt-devel
BuildRequires:	pkgconfig
# To avoid issues with x86_64 architectures
BuildRequires:	gnustep-make >= 2.4.0
BuildRequires:	avahi-compat-libdns_sd-devel
BuildRequires:	gmp-devel
BuildRequires:	texi2html texinfo-tex

Requires:	gnustep-make
Conflicts:	libFoundation

%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.

#Library combo is %{libcombo}.

%package devel
Summary:	Header of the GNUstep Base library packes
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires(post):	/sbin/install-info
Requires(preun): /sbin/install-info

%description devel
This package contains the header files of the gnustep-base package.

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch
Requires:	%{name} = %{version}-%{release}

%description doc
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.


This package contains the documentation for %{name}

%prep
%setup -q

iconv -f iso-8859-1 -t utf-8 ChangeLog.2 -o ChangeLog.2.utf8
mv ChangeLog.2.utf8 ChangeLog.2

%build
ffi_include=$(pkg-config --cflags-only-I libffi | sed -e 's/^\-\I//')
%configure --disable-ffcall --with-ffi-include=$ffi_include \
	   --with-installation-domain=SYSTEM

make %{?_smp_mflags}

%install
rm -rf ${RPM_BUILD_ROOT}

# mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/GNUstep/DTDs/

make install DESTDIR=${RPM_BUILD_ROOT} GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

# Rename pl to pllist to fix naming conflict
mv ${RPM_BUILD_ROOT}%{_bindir}/pl ${RPM_BUILD_ROOT}%{_bindir}/pllist

rm ${RPM_BUILD_ROOT}%{gslibdir}/%{name}/Versions/%{gsb_vers}/Resources/NSTimeZones/.a*
rm -f Examples/.cvsignore
rm -f Examples/.gdbinit

# We need a modified GNUstep.conf, because the DTDs are install not
# on there real destination

sed -e "s|GNUSTEP_SYSTEM_LIBRARY=|GNUSTEP_SYSTEM_LIBRARY=$RPM_BUILD_ROOT|" \
    -e "s|GNUSTEP_SYSTEM_HEADERS=|GNUSTEP_SYSTEM_HEADERS=$RPM_BUILD_ROOT|" \
    %{_sysconfdir}/GNUstep/GNUstep.conf >GNUstep.conf

export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
export GNUSTEP_CONFIG_FILE=$(pwd)/GNUstep.conf

make -C Documentation

make -C Documentation install DESTDIR=${RPM_BUILD_ROOT} \
     GNUSTEP_INSTALLATION_DOMAIN=SYSTEM 

%clean
rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%post doc
/sbin/install-info %{_infodir}/coding-standards %{_infodir}/dir || :
/sbin/install-info %{_infodir}/manual %{_infodir}/dir || :

%postun -p /sbin/ldconfig

%preun doc
if [ $1 = 0 ]; then
   /sbin/install-info --delete %{_infodir}/coding-standards %{_infodir}/dir || :
   /sbin/install-info --delete %{_infodir}/manual %{_infodir}/dir || :
fi

%files
%defattr(-,root,root,-)
%{_bindir}/HTMLLinker
%{_bindir}/autogsdoc
%{_bindir}/cvtenc
%{_bindir}/defaults
%{_bindir}/gdnc
#%attr(1755,root,root) %{_bindir}/gdomap
%{_bindir}/gdomap
%{_bindir}/gspath
%{_bindir}/make_strings
%{_bindir}/pl2link
%{_bindir}/pldes
%{_bindir}/plget
%{_bindir}/pllist
%{_bindir}/plmerge
%{_bindir}/plparse
%{_bindir}/plser
%{_bindir}/sfparse
%{_bindir}/xmlparse
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_libdir}/GNUstep/DTDs/
%{gslibdir}
%{_libdir}/libgnustep-base.so.*

%doc ANNOUNCE ChangeLog* COPYING* NEWS README

%files devel
%defattr(-,root,root,-)
%{_includedir}/Foundation/
%{_includedir}/GNUstepBase/
%{_includedir}/gnustep/
%{_includedir}/ObjectiveC2/
%{_libdir}/libgnustep-base.so
%{_libdir}/GNUstep/Makefiles/Additional/base.make
%doc Examples

%files doc
%defattr (-,root,root,-)
%{_infodir}/*
%{_datadir}/GNUstep/Documentation/*

%changelog
* Tue Jul  6 2010 Jochen Schmitt <Jochen herr-schmitt de> 1.20.1-2
- Parallels build for gnustep

* Mon Jun 21 2010 Jochen Schmitt <Jochen herr-schmitt de> 1.20.1-1
- New upstream release

* Thu May 13 2010 Jochen Schmitt <Jochen herr-schmitt de> 1.20.0-1
- New upatream release which fix CVE-2010-1457 and CVE-2010-1620 (#591602)

* Mon Nov 30 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-8
- Remove strace command

* Thu Nov 26 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-7
- Using temp. modified GNUstep.conf to access to DTDs (#539092)

* Thu Nov  5 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-6
- Add a conflict agains libFoundation

* Wed Sep 16 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-5
- Renove suid-bit on gdomap
- Create separate doc subpackage
- Fix license tag

* Mon Sep 14 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-4
- Rebuild agains gnustep-make 2.2.0

* Thu Mar 26 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-3
- Set GNUSTEP_INSTALLATION_DOMAIN=SYSTEM for make install

* Wed Mar 25 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-2
- Specify installation-domain=SYSTEM
- fix UTF-8 issue in ChangeLog.2

* Wed Mar  4 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.18.0-1
- Fallback to last stable release

* Wed Mar  4 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.19.0-2
- Switch to libffi

* Tue Feb 17 2009 Jochen Schmitt <Jochen herr-schmitt de> 1.19.0-1
- New upstream release

* Sun Dec  7 2008 Jochen Schmitt <Jochen herr-schmitt de> 1.16.5-1
- Initional release