gnustep-make/gnustep-make.spec
2022-11-16 10:14:16 +08:00

96 lines
3.5 KiB
RPMSpec

%global debug_package %{nil}
%define _legacy_common_support 1
%global _lto_cflags %nil
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] ||
d=%{_sysconfdir}/rpm; echo $d)
Name: gnustep-make
Version: 2.8.0
Release: 2
Summary: GNUstep makefile package
License: GPLv3+
URL: http://www.gnustep.org/
Source0: https://github.com/gnustep/tools-make/releases/download/make-2_8_0/gnustep-make-2.8.0.tar.gz
Source1: %{name}-macros.gnustep
BuildRequires: gcc-objc texinfo-tex tetex-latex tetex-dvips latex2html texi2html make
Requires: gnustep-filesystem%{?_isa} = %{version}-%{release}
%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.
%package -n gnustep-filesystem
Summary: The basic directory layout for GNUstep packages
License: Public Domain
%description -n gnustep-filesystem
The gnustep-filesystem package contains the basic directory layout for
GNUstep packages.
%package doc
Summary: Documentation for %{name}
License: GPLv3+
BuildArch: noarch
Requires: gnustep-filesystem = %{version}-%{release}
%description doc
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.
This package contains documentation for %{name}.
%prep
%autosetup
cp %{SOURCE1} macros.gnustep
sed -i "s|/lib/|/%{_lib}/|g" FilesystemLayouts/fhs-system
sed -i "s|/lib$|/%{_lib}|g" FilesystemLayouts/fhs-system
sed -i "s|/lib/|/%{_lib}/|g" FilesystemLayouts/fhs
sed -i "s|/lib$|/%{_lib}|g" FilesystemLayouts/fhs
sed -i "s|=/share/GNUstep/Makefiles|=/%{_lib}/GNUstep/Makefiles|" \
FilesystemLayouts/fhs-system
%build
%configure --with-layout=fhs-system --enable-flattened
%make_build V=1
%install
%make_install
make -C Documentation GNUSTEP_MAKEFILES=%{buildroot}%{_libdir}/GNUstep/Makefiles
make -C Documentation install GNUSTEP_MAKEFILES=%{buildroot}%{_libdir}/GNUstep/Makefiles DESTDIR=%{buildroot}
for i in Applications WebApplications; do
mkdir -p %{buildroot}%{_prefix}{,/local}/lib{,64}/GNUstep/$i
done
mkdir -p %{buildroot}%{_prefix}{,/local}/share/GNUstep/Documentation/Developer
install -d %{buildroot}%{macrosdir}
install -p -m 644 macros.gnustep %{buildroot}%{macrosdir}
%files
%config(noreplace) %{_sysconfdir}/GNUstep/GNUstep.conf
%{_bindir}/*
%{_libdir}/GNUstep/Makefiles
%{_mandir}/man*/*
%{_infodir}/*.info.*
%{macrosdir}/macros.gnustep
%files -n gnustep-filesystem
%doc ANNOUNCE FAQ NEWS README
%license COPYING
%dir %{_sysconfdir}/GNUstep
%dir %{_libdir}/GNUstep
%dir %{_libdir}/GNUstep/Applications
%dir %{_libdir}/GNUstep/WebApplications
%dir %{_datadir}/GNUstep
%dir %{_datadir}/GNUstep/Documentation
%dir %{_datadir}/GNUstep/Documentation/Developer
%files doc
%doc %{_datadir}/GNUstep/Documentation/*
%changelog
* Wed Nov 16 2022 wangkai <wangkai385@h-partners.com> - 2.8.0-2
- Change source url
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 2.8.0-1
- package init