File gnustep-libobjc2.spec of Package gnustep-libobjc2
#
# spec file for package gnustep-libobjc2
#
# Copyright (c) 2014 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/
#
Name: gnustep-libobjc2
Version: 1.7
Release: 0
License: MIT
Summary: GNUstep Objective-C Runtime
Url: https://github.com/gnustep/gnustep-libobjc2
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: llvm-clang
BuildRequires: gnustep-make
BuildRequires: gnustep-base-devel
BuildRequires: gcc-obj-c++
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The GNUstep Objective-C runtime is designed as a drop-in replacement for the
GCC runtime. It supports both a legacy and a modern ABI, allowing code
compiled with old versions of GCC to be supported without requiring
recompilation. The modern ABI adds the following features:
- Non-fragile instance variables.
- Protocol uniquing.
- Object planes support.
- Declared property introspection.
%package -n %{name}-devel
Summary: Include Files and Libraries Mandatory for Development
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%description -n %{name}-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%prep
%setup -q
%build
mkdir build
pushd build
cmake .. \
-DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ \
-DGNUSTEP_INSTALL_TYPE=SYSTEM \
-DTESTS=FALSE
make %{?_smp_mflags}
popd
%install
%{__rm} -rf %{buildroot}
pushd build
make DESTDIR=%{buildroot} install/strip
popd
%clean
%{__rm} -rf %{buildroot}
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n %{name}-devel
%defattr(-,root,root)
%doc ANNOUNCE.* API README COPYING
%{_includedir}/objc
%{_libdir}/*.so
%changelog