gnustep-base/gnustep-base.spec

132 lines
4.1 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: gnustep-base
Version: 1.27.0
Release: 1mamba
Summary: GNUstep Base library package
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gnustep.org/
Source: ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-%{version}.tar.gz
Patch0: gnustep-base-1.27.0-icu-68.patch
License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libavahi-devel
BuildRequires: libffi-devel
BuildRequires: libgcc
BuildRequires: libgnutls-devel
BuildRequires: libicu-devel
BuildRequires: libobjc-devel
BuildRequires: libxml2-devel
BuildRequires: libxslt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: gnustep-make
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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, bytestreams, 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.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%patch0 -p0
%build
ffi_include=$(pkg-config --cflags-only-I libffi | sed -e 's/^\-\I//')
export LDFLAGS="%{optflags} -Wl,--as-needed"
%gnustep_configure \
--disable-ffcall --with-ffi-include=$ffi_include
%gnustep_make -n
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%gnustep_install -n
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/HTMLLinker
%{_bindir}/autogsdoc
%{_bindir}/cvtenc
%{_bindir}/defaults
%{_bindir}/gdnc
%{_bindir}/gdomap
%{_bindir}/gspath
%{_bindir}/make_strings
%{_bindir}/pl
%{_bindir}/pl2link
%{_bindir}/pldes
%{_bindir}/plget
%{_bindir}/plmerge
%{_bindir}/plparse
%{_bindir}/plser
%{_bindir}/sfparse
%{_bindir}/xmlparse
%{_mandir}/man1/HTMLLinker.1*
%{_mandir}/man1/autogsdoc.1*
%{_mandir}/man1/cvtenc.1*
%{_mandir}/man1/defaults.1*
%{_mandir}/man1/gdnc.1*
%{_mandir}/man1/gspath.1*
%{_mandir}/man1/make_strings.1*
%{_mandir}/man1/pldes.1*
%{_mandir}/man1/sfparse.1*
%{_mandir}/man1/xmlparse.1*
%{_mandir}/man8/gdomap.8*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libgnustep-base.so.*
%dir %{_libdir}/GNUstep
%dir %{_libdir}/GNUstep/Libraries
%dir %{_libdir}/GNUstep/Libraries/gnustep-base
%dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions
%dir %{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{majver}
%{_libdir}/GNUstep/Libraries/gnustep-base/Versions/%{majver}/*
%dir %{_libdir}/GNUstep/DTDs
%{_libdir}/GNUstep/DTDs/*
%doc COPYING COPYING.LIB
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/libgnustep-base.so
%dir %{_includedir}/Foundation
%{_includedir}/Foundation/*
%dir %{_includedir}/GNUstepBase
%{_includedir}/GNUstepBase/*
%dir %{_libdir}/GNUstep/Makefiles/Additional
%{_libdir}/GNUstep/Makefiles/Additional/base.make
%doc ChangeLog ChangeLog.1 ChangeLog.2 NEWS README README.initialize
%changelog
* Sat Jan 02 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.27.0-1mamba
- package created using the webbuild interface