]> git.pld-linux.org Git - packages/git-core.git/blobdiff - git-core.spec
- 1.4.2
[packages/git-core.git] / git-core.spec
index c4a2decd5f3a6120682a9c784d6352b14d995c96..3a59851c5cdd3927554096dcbd7294deac5bc7e9 100644 (file)
@@ -1,19 +1,20 @@
-# TODO:
-# - documentation
 Summary:       The stupid content tracker
 Summary(pl):   Prymitywne narzêdzie do ¶ledzenia tre¶ci
 Name:          git-core
-Version:       1.0.7
+Version:       1.4.2
 Release:       1
 License:       GPL v2
 Group:         Development/Tools
 Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
-# Source0-md5: 4f8292542771b2303241b0bfea7101ed
+# Source0-md5: 3fc9d2ab17b1060b908236d48102e9fa
 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,6 +51,13 @@ Jest to prymitywny (ale bardzo szybki) zarz
 Nie robi wiele, ale to, co "robi", to wydajne ¶ledzenie zawarto¶ci
 katalogu.
 
+%package devel
+Summary:       header files for git-core
+Group: Development/Libraries
+
+%description devel
+header files for git-core.
+
 %prep
 %setup -q -n git-%{version}
 
@@ -60,19 +68,35 @@ katalogu.
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
+%{__make} -C Documentation
+
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
 
 %{__make} install \
        prefix=%{_prefix} \
+       CFLAGS="%{rpmcflags}" \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__make} -C Documentation install \
+       prefix=%{_prefix} \
+       mandir=%{_mandir} \
+       DESTDIR=$RPM_BUILD_ROOT
+
+install *.h $RPM_BUILD_ROOT%{_includedir}/%{name}
+install xdiff/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
+
 %clean
 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}/*
+
+%files devel
+%{_includedir}/*
This page took 0.065469 seconds and 4 git commands to generate.