LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnustep-make.spec of Package gnustep-make (Project X11:GNUstep)

# spec file for package gnustep-make
# Copyright (c) 2017 SUSE LINUX 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        %{_sysconfdir}/GNUstep/GNUstep.conf
%define         gs_layout        fhs-other
%define         gs_makefiles     %{_datadir}/GNUstep/Makefiles

Name:           gnustep-make
Summary:        GNUstep Makefile package
Version:        2.7.0
Release:        0
License:        LGPL-2.1+ and GPL-3.0+
Group:          System/GUI/Other
Url:            http://www.gnustep.org/
Source:         ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
Source1:        ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz.sig
Source2:        %{name}-rpmlintrc
BuildRequires:  gcc-objc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

# Disable debug package as rpm > 4.13 does not allow for empty debug file list.
%global debug_package %{nil}

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
# Set correct library path.
sed -e 's|/lib/|/%{_lib}/|' -e 's|/lib$|/%{_lib}|' \
        FilesystemLayouts/fhs-system > FilesystemLayouts/%{gs_layout}

# '--with-tar=tar' ensures we get the real tar rather than gnutar.
# If star is installed, it sets up a duff gnutar.
%configure --with-layout=%{gs_layout} \
%if 0%{?suse_version} >= 1120
  --enable-native-objc-exceptions \
make %{?_smp_mflags}

make DESTDIR=%{buildroot} \

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

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