File gnustep-make.spec of Package gnustep-make

Name:           gnustep-make
Version:        2.9.3
Release:        0
License:        GPL-3.0-or-later AND LGPL-2.1-or-later
Summary:        GNUstep Makefile package
Url:            https://github.com/gnustep/tools-make
Source:         https://github.com/gnustep/tools-make/releases/download/make-2_9_3/%{name}-%{version}.tar.gz
Source1:        %{name}.rpmlintrc

BuildRequires:  clang
BuildRequires:  lld
BuildRequires:  libobjc2-devel

%description
The makefile package is a simple, powerful and extensible way to write
makefiles for a GNUstep-based project.  It allows the user to write a
project without having to deal with the complex issues associated with
configuration, building, installation, and packaging.  It also allows
the user to easily create cross-compiled binaries.

%prep
%autosetup -v

%build
./configure \
    --enable-native-objc-exceptions \
    --enable-objc-arc \
    --with-runtime-abi=gnustep-2.2 \
    --with-library-combo=ng-gnu-gnu \
    --with-layout=fhs-system \
    --with-libdir=%{_lib} \
    CC="clang" CXX="clang++" CPP="clang -E" LDFLAGS="-fuse-ld=lld"

%install
make DESTDIR=%{buildroot} \
  GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \
  install

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

%files
%defattr(-,root,root,-)
%license COPYING
%doc ANNOUNCE ChangeLog FAQ NEWS README RELEASENOTES
%dir %{_sysconfdir}/GNUstep
%dir %{_datadir}/GNUstep
%{_bindir}/debugapp
%{_bindir}/gnustep-config
%{_bindir}/gnustep-tests
%{_bindir}/openapp
%{_bindir}/opentool
%{_mandir}/man1/debugapp.1%{?ext_man}
%{_mandir}/man1/gnustep-config.1%{?ext_man}
%{_mandir}/man1/gnustep-tests.1%{?ext_man}
%{_mandir}/man1/openapp.1%{?ext_man}
%{_mandir}/man1/opentool.1%{?ext_man}
%{_mandir}/man7/GNUstep.7%{?ext_man}
%{_mandir}/man7/library-combo.7%{?ext_man}
%{_datadir}/GNUstep/Makefiles
%config(noreplace) %{_sysconfdir}/GNUstep/GNUstep.conf

%changelog 
openSUSE Build Service is sponsored by