]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - git/git.nm
git: Shrink package
[people/pmueller/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
6498abdf 8release = 3
e2c1801f 9
802ea3af
MT
10groups = Development/Tools
11url = http://git-scm.com/
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*
a5248e72 99 end
802ea3af 100end
e2c1801f 101
802ea3af
MT
102packages
103 package %{name}
104 requires
105 less
106 openssh-clients
802ea3af
MT
107 /usr/bin/vi
108 end
1f9bc2f0 109
5019890f
MT
110 recommends
111 %{name}-email
6498abdf 112 rsync
9099585c
SS
113 end
114 end
115
116 package %{name}-email
117 summary = Git tools for sending emails.
118 description = %{summary}
119
120 requires
121 git=%{thisver}
122 perl-Git=%{thisver}
5019890f
MT
123 perl(Authen::SASL)
124 perl(Net::SMTP::SSL)
9099585c
SS
125 end
126
127 files
6498abdf 128 /usr/lib/git-core/git-send-email
9099585c
SS
129 %{mandir}/man1/git-send-email*
130 end
131 end
132
133 package perl-Git
134 arch = noarch
135
136 summary = Perl interface to Git.
137 description = %{summary}
138
139 requires
140 git=%{thisver}
141 end
142
143 files
144 %{mandir}/man3/Git*
145 %{perl_archlib}
146 %{perl_vendorlib}/*.pm
147 %{perl_vendorlib}/Git/*.pm
6498abdf 148 %{datadir}/perl5/
9099585c
SS
149 end
150 end
151
1f9bc2f0
MT
152 package %{name}-debuginfo
153 template DEBUGINFO
802ea3af
MT
154 end
155end