]> git.pld-linux.org Git - packages/git-core.git/blame - git-core.spec
- install libgit.a library; rel 4
[packages/git-core.git] / git-core.spec
CommitLineData
f2c1983d
AG
1# ToDo:
2# - git-gui subpackage (depends on tk)
891d0b05
JB
3#
4# Conditional build:
5%bcond_without tests # don't perform make test
6#
89a476f8 7%include /usr/lib/rpm/macros.perl
51c3b977 8Summary: The stupid content tracker
3f8032f4 9Summary(pl.UTF-8): Prymitywne narzędzie do śledzenia treści
51c3b977 10Name: git-core
91396e2e 11Version: 1.5.2.2
1f25da6d 12Release: 4
51c3b977 13License: GPL v2
14Group: Development/Tools
bf83806a 15Source0: http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
91396e2e 16# Source0-md5: 846940654b703ec5c8de4ee388cb4d08
be2ccf99
AG
17Source1: %{name}-gitweb.conf
18Source2: %{name}-gitweb-httpd.conf
508ade43 19URL: http://git.or.cz/
7fdeb28c 20BuildRequires: asciidoc
11856720
AM
21BuildRequires: autoconf
22BuildRequires: automake
51c3b977 23BuildRequires: curl-devel
115484e9 24BuildRequires: expat-devel
51c3b977 25BuildRequires: openssl-devel
27b79a12 26BuildRequires: perl-Error
51c3b977 27BuildRequires: perl-base
28BuildRequires: python
89a476f8 29BuildRequires: rpm-perlprov >= 4.1-13
be2ccf99 30BuildRequires: rpmbuild(macros) >= 1.264
7fdeb28c 31BuildRequires: xmlto
51c3b977 32BuildRequires: zlib-devel
3f245fc5 33Requires: coreutils
11856720
AM
34Requires: curl
35Requires: diffutils
3f245fc5
AM
36Requires: findutils
37Requires: grep
11856720 38Requires: openssh-clients
f266cd28 39Requires: perl-Error
401f46f5 40Requires: rcs
3f245fc5 41Requires: sed
51c3b977 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
be2ccf99
AG
44%define webapp gitweb
45%define webappdir %{_sysconfdir}/webapps/%{webapp}
46%define appdir %{_datadir}/%{webapp}
47%define cgibindir %{_prefix}/lib/cgi-bin
48
51c3b977 49%description
50"git" can mean anything, depending on your mood.
51
52 - random three-letter combination that is pronounceable, and not
c751087d 53 actually used by any common UNIX command. The fact that it is a
51c3b977 54 mispronunciation of "get" may or may not be relevant.
55 - stupid. contemptible and despicable. simple. Take your pick from the
56 dictionary of slang.
57 - "global information tracker": you're in a good mood, and it actually
58 works for you. Angels sing, and a light suddenly fills the room.
59 - "goddamn idiotic truckload of sh*t": when it breaks
60
c751087d 61This is a stupid (but extremely fast) directory content manager. It
51c3b977 62doesn't do a whole lot, but what it 'does' do is track directory
63contents efficiently.
64
ea061c99
JR
65%description -l pl.UTF-8
66"git" może oznaczać cokolwiek, w zależności od nastroju.
67
be2ccf99
AG
68- losową kombinację trzech liter, która jest wymawialna i
69 właściwie nie używana przez żadne popularne polecenie uniksowe.
70 Fakt, że jest to błędna pisownia słowa "get" może mieć lub nie
71 mieć znaczenia.
ea061c99
JR
72- głupi, pogardliwy, prosty. Można wybrać ze słownika slangu.
73- "global information tracker" (narzędzie do globalnego śledzenia
74 informacji) - jeśli jesteśmy w dobrym nastroju i git akurat działa.
75 Anioły śpiewają, a światło niespodziewanie wypełnia pokój.
76- "goddamn idiotic truckload of sh*t" (przeklęty idiotyczny ładunek
77 g*) - kiedy się zepsuje.
78
79Jest to prymitywny (ale bardzo szybki) zarządca treści słownikowej.
80Nie robi wiele, ale to, co "robi", to wydajne śledzenie zawartości
c751087d
JB
81katalogu.
82
e3cefa79 83%package devel
66a7f095 84Summary: Header files for git-core
3f8032f4 85Summary(pl.UTF-8): Pliki nagłówkowe dla git-core
66a7f095 86Group: Development/Libraries
e3cefa79 87
88%description devel
66a7f095 89Header files for git-core.
90
ea061c99
JR
91%description devel -l pl.UTF-8
92Pliki nagłówkowe dla git-core.
e3cefa79 93
91396e2e
AG
94%package gitk
95Summary: Tcl/Tk interface to the Git version control system
96Summary(pl.UTF-8): Napisany w Tcl/Tk interfejs do systemu kontroli wersji Git
97Group: Development/Tools
98Requires: %{name} = %{version}-%{release}
99Requires: tk
100
101%description gitk
102Displays changes in a repository or a selected set of commits. This
103includes visualizing the commit graph, showing information related to
104each commit, and the files in the trees of each revision.
105
106Historically, gitk was the first repository browser. It's written in
04fdf912 107Tcl/Tk and started off in a separate repository but was later merged
91396e2e
AG
108into the main git repository.
109
110%description gitk -l pl.UTF-8
be2ccf99
AG
111Wyświetla zmiany w repozytorium lub wybranym zbiorze commitów.
112Oznacza to wizualizację grafu commitów, wyświetlanie informacji
113związanych z każdym z commitów oraz listę plików dla każdej
114rewizji.
91396e2e 115
04fdf912 116Z punktu widzenia historii, gitk był pierwszą przeglądarką
be2ccf99
AG
117repozytorium git. Napisany jest w Tcl/Tk i początkowo był rozwijany
118w osobnym repozytorium, ale z czasem został włączony do głównego
2712fe7b 119repozytorium gita.
91396e2e 120
be2ccf99
AG
121%package gitweb
122Summary: Web frontend to git
123Summary(pl.UTF-8): Webowy frontend do git
124Group: Development/Tools
125Requires: %{name} = %{version}-%{release}
126Requires: webapps
127
128%description gitweb
129This package provides a web interface for browsing git repositories.
130
131%description gitweb -l pl.UTF-8
2712fe7b 132Pakiet ten dostarcza interfejs WWW do przeglądania repozytoriów gita.
be2ccf99 133
f2c1983d
AG
134%package -n bash-completion-git
135Summary: bash-completion for git
2712fe7b 136Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gita
f2c1983d
AG
137Group: Applications/Shell
138Requires: bash-completion
139
140%description -n bash-completion-git
141This package provides bash-completion for git.
142
143%description -n bash-completion-git -l pl.UTF-8
2712fe7b 144Pakiet ten dostarcza bashowego uzupełniania nazw dla gita.
f2c1983d 145
3dc01deb 146%package -n perl-Git
5d7220ad 147Summary: Perl interface to the Git version control system
3f8032f4 148Summary(pl.UTF-8): Perlowy interfejs do systemu kontroli wersji Git
5d7220ad
AM
149Group: Development/Languages/Perl
150Requires: %{name} = %{version}-%{release}
27b79a12 151Obsoletes: perl-git-core
5d7220ad 152
3dc01deb 153%description -n perl-Git
5d7220ad
AM
154This module provides Perl scripts easy way to interface the Git
155version control system. The modules have an easy and well-tested way
156to call arbitrary Git commands; in the future, the interface will also
157provide specialized methods for doing easily operations which are not
158totally trivial to do over the generic command interface.
159
ea061c99
JR
160%description -n perl-Git -l pl.UTF-8
161Ten moduł umożliwia skryptom Perla współpracę z systemem kontroli
be2ccf99
AG
162wersji Git. W łatwy i dobrze przetestowany sposób pozwala
163wywoływać dowolne polecenia Gita; w przyszłości interfejs
164udostępni także specjalne metody do łatwego wykonywania operacji
165nietrywialnych do wykonania przy użyciu ogólnego interfejsu
166poleceń.
7eef96e1 167
f2c1983d
AG
168%package -n vim-syntax-gitcommit
169Summary: Vim syntax: gitcommit
2712fe7b 170Summary(pl.UTF-8): Składnia dla Vima: gitcommit
f2c1983d
AG
171Group: Applications/Editors/Vim
172# for _vimdatadir existence
173Requires: vim >= 4:6.3.058-3
174
175%description -n vim-syntax-gitcommit
176This plugin provides syntax highlighting for git's commit messages.
177
178%description -n vim-syntax-gitcommit -l pl.UTF-8
2712fe7b 179Ta wtyczka dostarcza podświetlanie składni dla treści commitów gita.
f2c1983d 180
51c3b977 181%prep
bf83806a 182%setup -q -n git-%{version}
a1036d06 183
184%build
11856720
AM
185%{__aclocal}
186%{__autoconf}
187%configure \
188 --with-openssl
51c3b977 189
b69112f7 190%{__make} \
be2ccf99
AG
191 INSTALLDIRS=vendor \
192 GITWEB_CONFIG="%{webappdir}/gitweb.conf" \
193 GITWEB_PROJECTROOT="/var/lib/git" \
194 GITWEB_CSS="/gitweb/gitweb.css" \
195 GITWEB_LOGO="/gitweb/git-logo.png" \
196 GITWEB_FAVICON="/gitweb/git-favicon.png"
27b79a12 197
7fdeb28c 198%{__make} -C Documentation
199
6c0d6e05
AM
200%{?with_tests:%{__make} test}
201
51c3b977 202%install
203rm -rf $RPM_BUILD_ROOT
be2ccf99
AG
204install -d $RPM_BUILD_ROOT{%{_includedir}/%{name}/xdiff,%{_sharedstatedir}/git}
205install -d $RPM_BUILD_ROOT{%{appdir},%{cgibindir},%{webappdir}}
f2c1983d
AG
206install -d $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
207install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
c751087d 208
51c3b977 209%{__make} install \
d778c02c 210 INSTALLDIRS=vendor \
51c3b977 211 DESTDIR=$RPM_BUILD_ROOT
212
7fdeb28c 213%{__make} -C Documentation install \
7fdeb28c 214 DESTDIR=$RPM_BUILD_ROOT
215
1f25da6d 216# header files and lib
e3cefa79 217install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
218install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
1f25da6d 219install libgit.a $RPM_BUILD_ROOT%{_libdir}
e3cefa79 220
f2c1983d
AG
221# bash completion
222install contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
223
224# vim syntax
225install contrib/vim/syntax/gitcommit.vim $RPM_BUILD_ROOT%{_datadir}/vim/vimfiles/syntax
226
be2ccf99
AG
227# gitweb
228install gitweb/*.css gitweb/*.png $RPM_BUILD_ROOT%{appdir}
229install gitweb/gitweb.cgi $RPM_BUILD_ROOT%{cgibindir}
230install %{SOURCE1} $RPM_BUILD_ROOT%{webappdir}/gitweb.conf
231install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/apache.conf
232install %{SOURCE2} $RPM_BUILD_ROOT%{webappdir}/httpd.conf
233
234# remove unneeded files
27b79a12
ER
235rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
236rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
237
51c3b977 238%clean
239rm -rf $RPM_BUILD_ROOT
240
be2ccf99
AG
241%triggerin gitweb -- apache1 < 1.3.37-3, apache1-base
242%webapp_register apache %{webapp}
243
244%triggerun gitweb -- apache1 < 1.3.37-3, apache1-base
245%webapp_unregister apache %{webapp}
246
247%triggerin gitweb -- apache < 2.2.0, apache-base
248%webapp_register httpd %{webapp}
249
250%triggerun gitweb -- apache < 2.2.0, apache-base
251%webapp_unregister httpd %{webapp}
252
51c3b977 253%files
254%defattr(644,root,root,755)
f2c1983d 255%doc README Documentation/{[!g]*,g[!i]*,git,git[!k]*}.html Documentation/howto Documentation/technical contrib
0afd37aa
JB
256%attr(755,root,root) %{_bindir}/git
257%attr(755,root,root) %{_bindir}/git-*
258%{_mandir}/man1/git-*.1*
259%{_mandir}/man5/gitattributes.5*
260%{_mandir}/man5/gitignore.5*
261%{_mandir}/man7/git.7*
6c4f9a5b
AM
262%{_datadir}/%{name}
263%{_datadir}/git-gui
be2ccf99 264%{_sharedstatedir}/git
e3cefa79 265
266%files devel
3ff86e9e 267%defattr(644,root,root,755)
e3cefa79 268%{_includedir}/*
1f25da6d 269%{_libdir}/*.a
5d7220ad 270
91396e2e
AG
271%files gitk
272%defattr(644,root,root,755)
273%doc Documentation/gitk.html
274%attr(755,root,root) %{_bindir}/gitk
275%{_mandir}/man1/gitk.1*
276
be2ccf99
AG
277%files gitweb
278%defattr(644,root,root,755)
279%doc gitweb/{README,INSTALL}
280%dir %{webappdir}
281%config(noreplace) %verify(not md5 mtime size) %attr(640,root,http) %{webappdir}/gitweb.conf
282%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/apache.conf
283%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{webappdir}/httpd.conf
284%attr(755,root,root) %{cgibindir}/gitweb.cgi
285%{appdir}
286
f2c1983d
AG
287%files -n bash-completion-git
288%defattr(644,root,root,755)
289%{_sysconfdir}/bash_completion.d/*
290
3dc01deb 291%files -n perl-Git
5d7220ad 292%defattr(644,root,root,755)
3dc01deb 293%{perl_vendorlib}/Git.pm
0afd37aa 294%{_mandir}/man3/Git.3pm*
f2c1983d
AG
295
296%files -n vim-syntax-gitcommit
297%defattr(644,root,root,755)
298%doc contrib/vim/README
299%{_datadir}/vim/vimfiles/syntax/*
This page took 0.074775 seconds and 4 git commands to generate.