summaryrefslogtreecommitdiff
path: root/gnustep-make.spec
blob: 9528871f733440bb5039b2f175211de87fc940ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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