LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnustep-make.spec of Package gnustep-make (Project home:MihailJP)

# spec file for package gnustep-make
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/

%define         gs_config        /etc/GNUstep/GNUstep.conf
%define         gs_layout        fhs-other
%define         gs_mandir        /share/man
%define         gs_infodir       /share/info
%define         gs_makefiles     %{_datadir}/GNUstep/Makefiles

Name:           gnustep-make
Summary:        GNUstep Makefile package
Version:        2.6.6
Release:        0
License:        LGPL-2.1+; GPL-3.0+
Group:          System/GUI/Other
Url:            http://www.gnustep.org/
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-objc
%if 0%{?rhel_version} 
BuildRequires:  gzip

This package contains the basic scripts, makefiles and directory
layout needed to run and compile any GNUstep software. This package
was configured for the FHS file system layout, customised for SUSE.

%setup -q
%ifarch x86_64 ppc64 ppc64le ppc64p7 aarch64 
# Change library paths if building for 64-bit architecture.
sed -e 's|/lib/|/%{_lib}/|' -e 's|/lib$|/%{_lib}|' \
        FilesystemLayouts/fhs-system > FilesystemLayouts/%{gs_layout}
cp FilesystemLayouts/fhs-system FilesystemLayouts/%{gs_layout}

# CFLAGS is the same as the openSUSE 10.2 version of RPM_OPT_FLAGS,
# except that '-D_FORTIFY_SOURCE=2' has been omitted because it
# caused the Objective C compiler to generate non-working code.
# Note that this setting will apply to all subsequent GNUstep
# builds, even if not requested explicitly.

# CPPFLAGS is set to suppress 'defined but not used' warnings
# because, in gcc 4.1, Objective C produces huge quantities of
# spurious warnings of this type. This setting has to be
# re-specified explicitly for each individual build, otherwise
# it is over-ridden by a subsequent -Wall.

# '--with-tar=tar' ensures we get the real tar rather than gnutar.
# If star is installed, it sets up a duff gnutar.

CFLAGS=$(echo ${RPM_OPT_FLAGS} | sed 's/ -D_FORTIFY_SOURCE=2//') \
CPPFLAGS="-Wno-unused" \
./configure --with-layout=%{gs_layout} \
%if 0%{?suse_version} >= 1120
  --enable-native-objc-exceptions \
make %{?_smp_mflags}


rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%defattr (-, root, root)
%dir %{_sysconfdir}/GNUstep
%dir %{_datadir}/GNUstep
%config(noreplace) %{gs_config}