diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | gnustep-make-macros.gnustep | 53 | ||||
-rw-r--r-- | gnustep-make.spec | 115 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 170 insertions, 0 deletions
@@ -0,0 +1 @@ +/gnustep-make-2.9.2.tar.gz diff --git a/gnustep-make-macros.gnustep b/gnustep-make-macros.gnustep new file mode 100644 index 0000000..6cd3649 --- /dev/null +++ b/gnustep-make-macros.gnustep @@ -0,0 +1,53 @@ +%gnustep_libdir %{_libdir}/GNUstep + +%gnustep_appdir %{gnustep_libdir}/Applications +%gnustep_appsupdir %{gnustep_libdir}/ApplicationSupport +%gnustep_bundledir %{gnustep_libdir}/Bundles +%gnustep_cpickdir %{gnustep_libdir}/ColorPickers +%gnustep_srvdir %{gnustep_libdir}/Services + +%gnustep_makefiles %{gnustep_libdir}/Makefiles +%gnustep_additional %{gnustep_libdir}/Makefiles/Additional +%gnustep_libraries %{gnustep_libdir}/Libraries + +%gnustep_docdir %{gnustep_libdir}/Documentation +%gnustep_devdocdic %{gnustep_docdir}/Development +%gnustep_userdocdir %{gnustep_docdir}/User +%gnustep_dtddir %{gnustep_libdir}/DTDs +%gnustep_fontdir %{gnustep_libdir}/Fonts +%gnustep_imagedir %{gnustep_libdir}/Images +%gnustep_kbdir %{gnustep_libdir}/KeyBindings +%gnustep_psdir %{gnustep_libdir}/PostScript +%gnustep_sounddir %{gnustep_libdir}/Sounds + +%gnustep_configure\ +CC=${CC:-gobjc} \ +%configure --with-installation-domain=SYSTEM + +%gnustep_make(n)\ +CC=${CC:-gobjc} \ +make %{?_smp_mflags} \\\ +%if "X%{-n:Y}" == "X" \ + GNUSTEP_MAKEFILES=%{gnustep_makefiles} \\\ +%endif\ + messages=yes + +%gnustep_makedoc\ +make -C Documentation %{?_smp_mflags} messages=yes \\\ + GNUSTEP_MAKEFILES=%{gnustep_makefiles} + +%gnustep_install(n)\ +make install messages=yes \\\ + DESTDIR=%{buildroot} \\\ +%if "X%{-n:Y}" == "X" \ + GNUSTEP_MAKEFILES=%{gnustep_makefiles} \\\ +%endif \ + GNUSTEP_INSTALLATION_DOMAIN=SYSTEM + +%gnustep_install_without_gnustep_makefiles() %gnustep_install -n + +%gnustep_installdoc\ +make -C Documentation install messages=yes \\\ + DESTDIR=%{buildroot} \\\ + GNUSTEP_INSTALLATION_DOMAIN=SYSTEM \\\ + GNUSTEP_MAKEFILES=%{gnustep_makefiles} diff --git a/gnustep-make.spec b/gnustep-make.spec new file mode 100644 index 0000000..9528871 --- /dev/null +++ b/gnustep-make.spec @@ -0,0 +1,115 @@ +%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.9.2 +Release: 1 +Summary: GNUstep makefile package +License: GPL-3.0-or-later +URL: https://www.gnustep.org/ +Source0: https://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.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: GPL-3.0-or-later +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 -p1 + +sed -i "s|/@libdir@|/%{_lib}|g" FilesystemLayouts/fhs-system +sed -i "s|/@libdir@|/%{_lib}|g" FilesystemLayouts/fhs + +# /usr/share/GNUstep/Makefiles/config-noarch.make and +# /usr/share/GNUstep/Makefiles/ix86/linux-gnu/gnu-gnu-gnu/config.make +# are spoiling a pure /usr/share install +sed -i "s|=/share/GNUstep/Makefiles|=/%{_lib}/GNUstep/Makefiles|" \ + FilesystemLayouts/fhs-system + +# Fix files location except GNUSTEP_LOCAL_* +sed -i "67,77!s|=/local|=|" FilesystemLayouts/fhs-system + +%build +%configure --with-layout=fhs-system --enable-flattened +%make_build + +%install +%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM +%make_install -C Documentation GNUSTEP_INSTALLATION_DOMAIN=SYSTEM GNUSTEP_MAKEFILES=%{buildroot}%{_libdir}/GNUstep/Makefiles +%make_install -C Documentation GNUSTEP_INSTALLATION_DOMAIN=SYSTEM GNUSTEP_MAKEFILES=%{buildroot}%{_libdir}/GNUstep/Makefiles + +# create remaining GNUstep directories +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 rpm macros +install -d %{buildroot}%{macrosdir} +install -p -m 644 %{S:1} %{buildroot}%{macrosdir}/macros.gnustep + +%files +%config(noreplace) %{_sysconfdir}/GNUstep/GNUstep.conf +%{_bindir}/gnustep-config +%{_bindir}/gnustep-tests +%{_bindir}/openapp +%{_bindir}/debugapp +%{_bindir}/opentool +%{_libdir}/GNUstep/Makefiles/* +%{_mandir}/man*/* +%{_infodir}/gnustep*.info* +%{macrosdir}/macros.gnustep + +%files -n gnustep-filesystem +%doc ANNOUNCE FAQ NEWS README +%license COPYING +%dir %{_sysconfdir}/GNUstep +%dir %{_libdir}/GNUstep +%dir %{_libdir}/GNUstep/Makefiles +%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 +* Sat Sep 07 2024 Funda Wang <fundawang@yeah.net> - 2.9.2-1 +- update to 2.9.2 + +* 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 @@ -0,0 +1 @@ +456a8d51528f575b49a2c280cb5fe8ef gnustep-make-2.9.2.tar.gz |