summaryrefslogtreecommitdiff
path: root/gnustep-make.spec
diff options
context:
space:
mode:
Diffstat (limited to 'gnustep-make.spec')
-rw-r--r--gnustep-make.spec115
1 files changed, 115 insertions, 0 deletions
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