]> git.pld-linux.org Git - packages/git-core.git/blobdiff - git-core.spec
- pass the same CFLAGS to install (otherwise Makefile would rebuild all)
[packages/git-core.git] / git-core.spec
index f875f29a981c70bf3a9b036357054b887ce5cbb5..fa841246862b82a0abff457a6a93734c51b28b87 100644 (file)
@@ -1,18 +1,20 @@
-# TODO: documentation
 Summary:       The stupid content tracker
 Summary(pl):   Prymitywne narzêdzie do ¶ledzenia tre¶ci
 Name:          git-core
-Version:       0.99.8
-Release:       0.1
-Epoch:         0
+Version:       1.4.1.1
+Release:       1
 License:       GPL v2
 Group:         Development/Tools
-Source0:       http://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.bz2
-# Source0-md5: 0fb209de06352923b66ef1ca50e1b3b7
+Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
+# Source0-md5: cde57291a326b958802e453b48a0e0bf
+URL:           http://git.or.cz/
+BuildRequires: asciidoc
 BuildRequires: curl-devel
+BuildRequires: expat-devel
 BuildRequires: openssl-devel
 BuildRequires: perl-base
 BuildRequires: python
+BuildRequires: xmlto
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -50,16 +52,28 @@ Nie robi wiele, ale to, co "robi", to wydajne 
 katalogu.
 
 %prep
-%setup -q
+%setup -q -n git-%{version}
+
+%build
 %{__make} \
+       prefix=%{_prefix} \
+       CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
+%{__make} -C Documentation
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
-       prefix=/usr \
+       prefix=%{_prefix} \
+       CFLAGS="%{rpmcflags}" \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} -C Documentation install \
+       prefix=%{_prefix} \
+       mandir=%{_mandir} \
        DESTDIR=$RPM_BUILD_ROOT
 
 %clean
@@ -67,7 +81,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc README Documentation/*.html Documentation/howto Documentation/technical
 %attr(755,root,root) %{_bindir}/*
+%{_mandir}/man*/*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/*
This page took 0.039533 seconds and 4 git commands to generate.