]> git.ipfire.org Git - ipfire-3.x.git/blame - git/git.nm
json-c: Update to version 0.17-20230812
[ipfire-3.x.git] / git / git.nm
CommitLineData
e2c1801f 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
e2c1801f
MT
4###############################################################################
5
802ea3af 6name = git
3710c2a5 7version = 2.38.1
6f8e4492 8release = 5
e2c1801f 9
802ea3af 10groups = Development/Tools
e14a82a1 11url = https://git-scm.com/
802ea3af
MT
12license = GPLv2
13summary = Fast Version Control System.
e2c1801f 14
802ea3af 15description
f50cc92e
SS
16 Git is a fast, scalable, distributed revision control system with an
17 unusually rich command set that provides both high-level operations
e2c1801f 18 and full access to internals.
802ea3af
MT
19end
20
2c696983 21source_dl = https://www.kernel.org/pub/software/scm/git/
802ea3af
MT
22
23build
24 requires
f50cc92e 25 asciidoc
802ea3af
MT
26 expat-devel
27 gettext
0979d287
MT
28 gnupg2
29 groff
802ea3af
MT
30 libcurl-devel
31 openssl-devel
0979d287 32 pcre2-devel
1f9bc2f0 33 perl-ExtUtils-MakeMaker
802ea3af 34 perl-devel
3710c2a5 35 python3-devel
f50cc92e 36 xmlto
0979d287 37 zlib-devel
802ea3af 38 end
e2c1801f 39
802ea3af 40 prepare_cmds
0979d287
MT
41 cat <<EOF > config.mak
42 CFLAGS = %{CFLAGS}
43 LDFLAGS = %{LDFLAGS}
44 NEEDS_CRYPTO_WITH_SSL = 1
45 USE_LIBPCRE2 = 1
46 ETC_GITCONFIG = %{sysconfdir}/gitconfig
47 DESTDIR = %{BUILDROOT}
48 INSTALL = install -p
0979d287
MT
49 GNU_ROFF = 1
50 NO_CROSS_DIRECTORY_HARDLINKS = 1
3710c2a5 51 PYTHON_PATH = %{python3}
0979d287
MT
52 prefix = %{prefix}
53 gitexecdir = lib/git-core
54 htmldir = %{datadir}/doc
6498abdf 55 NO_GITWEB=1
0979d287 56 EOF
a5248e72
MT
57
58 # Remove shebang from bash-completion script.
59 sed -i '/^#!bash/,+1 d' contrib/completion/git-completion.bash
802ea3af 60 end
e2c1801f 61
802ea3af
MT
62 build
63 make %{PARALLELISMFLAGS}
64 end
e2c1801f 65
802ea3af 66 make_install_targets += INSTALLDIRS=vendor
a5248e72
MT
67
68 install_cmds
f50cc92e
SS
69 # Install man pages.
70 make install-doc DESTDIR=%{BUILDROOT}
71
a5248e72
MT
72 # Install bash completion file.
73 mkdir -pv %{BUILDROOT}%{sysconfdir}/bash_completion.d
74 install -v -m 644 contrib/completion/git-completion.bash \
75 %{BUILDROOT}%{sysconfdir}/bash_completion.d/git
9099585c 76
6498abdf
SS
77 # Remove git-daemon related files
78 rm -rvf %{BUILDROOT}/usr/lib/git-core/git-daemon
79 rm -rvf %{BUILDROOT}%{mandir}/man1/git-daemon*
80
81 # Remove SVN related files
82 rm -rvf %{BUILDROOT}/usr/lib/git-core/git-svn
83 rm -rvf %{BUILDROOT}%{mandir}/man1/git-svn*
84 rm -rvf %{BUILDROOT}%{perl_vendorlib}/Git/SVN*.pm
85 rm -rvf %{BUILDROOT}%{perl_vendorlib}/Git/SVN/
86 rm -rvf %{BUILDROOT}%{datadir}/perl5/Git/SVN/
87 rm -rvf %{BUILDROOT}%{datadir}/perl5/Git/SVN*.pm
88
89 # Remove CVS related files
90 rm -rvf %{BUILDROOT}%{bindir}/git-cvsserver
91 rm -rvf %{BUILDROOT}/usr/lib/git-core/*cvs*
92 rm -rvf %{BUILDROOT}%{mandir}/man1/*cvs*
93 rm -rvf %{BUILDROOT}%{mandir}/man7/*cvs*
94
95 # Remove Perforce depots related files.
96 rm -rvf %{BUILDROOT}/usr/lib/git-core/*p4*
97 rm -rvf %{BUILDROOT}/usr/lib/git-core/mergetools/p4*
98 rm -rvf %{BUILDROOT}%{mandir}/man1/*p4*
a7c62c01
SS
99
100 # Fix file permissions of the hook examples.
101 find %{BUILDROOT}%{datadir}/git-core/ -type f -iname "*.sample" \
102 -exec chmod 644 {} \;
a5248e72 103 end
802ea3af 104end
e2c1801f 105
802ea3af
MT
106packages
107 package %{name}
108 requires
109 less
110 openssh-clients
802ea3af
MT
111 /usr/bin/vi
112 end
1f9bc2f0 113
5019890f
MT
114 recommends
115 %{name}-email
6498abdf 116 rsync
9099585c
SS
117 end
118 end
119
120 package %{name}-email
121 summary = Git tools for sending emails.
122 description = %{summary}
123
124 requires
125 git=%{thisver}
126 perl-Git=%{thisver}
5019890f
MT
127 perl(Authen::SASL)
128 perl(Net::SMTP::SSL)
9099585c
SS
129 end
130
131 files
6498abdf 132 /usr/lib/git-core/git-send-email
9099585c
SS
133 %{mandir}/man1/git-send-email*
134 end
135 end
136
137 package perl-Git
138 arch = noarch
139
140 summary = Perl interface to Git.
141 description = %{summary}
142
143 requires
144 git=%{thisver}
145 end
146
147 files
148 %{mandir}/man3/Git*
149 %{perl_archlib}
150 %{perl_vendorlib}/*.pm
151 %{perl_vendorlib}/Git/*.pm
6498abdf 152 %{datadir}/perl5/
9099585c
SS
153 end
154 end
155
1f9bc2f0
MT
156 package %{name}-debuginfo
157 template DEBUGINFO
802ea3af
MT
158 end
159end