]> git.pld-linux.org Git - packages/git-core.git/blobdiff - git-core.spec
- up to 1.4.3.5
[packages/git-core.git] / git-core.spec
index e0ff2397a3fae3930b06cc89f31b3ad3064b6801..cbeda592ce47b74e61e5e4c62fc18a8705a38127 100644 (file)
@@ -1,19 +1,23 @@
-# TODO:
-# - documentation
+%include       /usr/lib/rpm/macros.perl
 Summary:       The stupid content tracker
 Summary(pl):   Prymitywne narzêdzie do ¶ledzenia tre¶ci
 Name:          git-core
 Summary:       The stupid content tracker
 Summary(pl):   Prymitywne narzêdzie do ¶ledzenia tre¶ci
 Name:          git-core
-Version:       0.99.9i
+Version:       1.4.3.5
 Release:       1
 License:       GPL v2
 Group:         Development/Tools
 Release:       1
 License:       GPL v2
 Group:         Development/Tools
-Source0:       http://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.bz2
-# Source0-md5: d10e29a4d9730324fe3ef1864ef8b354
+Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
+# Source0-md5: db7c8dad84643b9f6744a0eca22521c7
 URL:           http://git.or.cz/
 URL:           http://git.or.cz/
+BuildRequires: asciidoc
 BuildRequires: curl-devel
 BuildRequires: curl-devel
+BuildRequires: expat-devel
 BuildRequires: openssl-devel
 BuildRequires: openssl-devel
+BuildRequires: perl-Error
 BuildRequires: perl-base
 BuildRequires: python
 BuildRequires: perl-base
 BuildRequires: python
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: xmlto
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 BuildRequires: zlib-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -37,8 +41,8 @@ contents efficiently.
 "git" mo¿e oznaczaæ cokolwiek, w zale¿no¶ci od nastroju.
 
 - losow± kombinacjê trzech liter, która jest wymawialna i w³a¶ciwie
 "git" mo¿e oznaczaæ cokolwiek, w zale¿no¶ci od nastroju.
 
 - losow± kombinacjê trzech liter, która jest wymawialna i w³a¶ciwie
-  nie u¿ywana przez ¿adne popularne polecenie uniksowe. Fakt, ¿e jest
-  to b³êdna pisownia s³owa "get" mo¿e mieæ lub nie mieæ znaczenia.
+  nie u¿ywana przez ¿adne popularne polecenie uniksowe. Fakt, ¿e jest to
+  b³êdna pisownia s³owa "get" mo¿e mieæ lub nie mieæ znaczenia.
 - g³upi, pogardliwy, prosty. Mo¿na wybraæ ze s³ownika slangu.
 - "global information tracker" (narzêdzie do globalnego ¶ledzenia
   informacji) - je¶li jeste¶my w dobrym nastroju i git akurat dzia³a.
 - g³upi, pogardliwy, prosty. Mo¿na wybraæ ze s³ownika slangu.
 - "global information tracker" (narzêdzie do globalnego ¶ledzenia
   informacji) - je¶li jeste¶my w dobrym nastroju i git akurat dzia³a.
@@ -50,27 +54,93 @@ Jest to prymitywny (ale bardzo szybki) zarz
 Nie robi wiele, ale to, co "robi", to wydajne ¶ledzenie zawarto¶ci
 katalogu.
 
 Nie robi wiele, ale to, co "robi", to wydajne ¶ledzenie zawarto¶ci
 katalogu.
 
+%package devel
+Summary:       Header files for git-core
+Summary(pl):   Pliki nag³ówkowe dla git-core
+Group:         Development/Libraries
+
+%description devel
+Header files for git-core.
+
+%description devel
+Pliki nag³ówkowe dla git-core.
+
+%package -n perl-Git
+Summary:       Perl interface to the Git version control system
+Summary(pl):   Perlowy interfejs do systemu kontroli wersji Git
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     perl-git-core
+
+%description -n perl-Git
+This module provides Perl scripts easy way to interface the Git
+version control system. The modules have an easy and well-tested way
+to call arbitrary Git commands; in the future, the interface will also
+provide specialized methods for doing easily operations which are not
+totally trivial to do over the generic command interface.
+
+%description -n perl-Git -l pl
+Ten modu³ umo¿liwia skryptom Perla wspó³pracê z systemem kontroli
+wersji Git. W ³atwy i dobrze przetestowany sposób pozwala wywo³ywaæ
+dowolne polecenia Gita; w przysz³o¶ci interfejs udostêpni tak¿e
+specjalne metody do ³atwego wykonywania operacji nietrywialnych do
+wykonania przy u¿yciu ogólnego interfejsu poleceñ.
+
 %prep
 %prep
-%setup -q
+%setup -q -n git-%{version}
+
+%build
 %{__make} \
        prefix=%{_prefix} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
 %{__make} \
        prefix=%{_prefix} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
+# once again to get perl paths stright
+cd perl
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+cd ..
+
+%{__make} -C Documentation
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
 
 %{__make} install \
        prefix=%{_prefix} \
 
 %{__make} install \
        prefix=%{_prefix} \
+       CFLAGS="%{rpmcflags}" \
        DESTDIR=$RPM_BUILD_ROOT
 
        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
+
+rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Git/.packlist
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %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}/*
 %attr(755,root,root) %{_bindir}/*
+%{_mandir}/man*/*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/*
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/*
+
+%files -n perl-Git
+%defattr(644,root,root,755)
+%{perl_vendorlib}/Git.pm
+%{_mandir}/man3/*
This page took 0.028931 seconds and 4 git commands to generate.