]> git.pld-linux.org Git - packages/git-core.git/blobdiff - git-core.spec
- up to 1.4.4.4
[packages/git-core.git] / git-core.spec
index 4f36ca81c74cc676c8f59931453d541f64dae648..4466e81b28f95dda8e2657490a840800c8c7d477 100644 (file)
@@ -1,20 +1,39 @@
 # TODO:
 # TODO:
-# - documentation
+# - gitweb subpackage
+# - gitk subpackage?
+%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:       1.0.4
+Version:       1.4.4.4
 Release:       1
 License:       GPL v2
 Group:         Development/Tools
 Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
 Release:       1
 License:       GPL v2
 Group:         Development/Tools
 Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
-# Source0-md5: 7ec74d33f6288d6291510ea8358500d5
+# Source0-md5: 970aceba959e7fe92f065d7509e6db51
+Patch0:                %{name}-build.patch
 URL:           http://git.or.cz/
 URL:           http://git.or.cz/
+BuildRequires: asciidoc
+BuildRequires: autoconf
+BuildRequires: automake
 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
 BuildRequires: zlib-devel
+Requires:      coreutils
+Requires:      curl
+Requires:      diffutils
+Requires:      findutils
+Requires:      grep
+Requires:      openssh-clients
+Requires:      rcs
+Requires:      sed
+Requires:      tk
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,8 +56,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 +69,85 @@ 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
 %setup -q -n git-%{version}
 %prep
 %setup -q -n git-%{version}
+%patch0 -p1
+
+%build
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --with-openssl
+
 %{__make} \
 %{__make} \
-       prefix=%{_prefix} \
-       CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}" \
-       LDFLAGS="%{rpmldflags}"
+       INSTALLDIRS=vendor
+
+%{__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 \
 
 %{__make} install \
-       prefix=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
 
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__make} -C Documentation install \
+       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.107666 seconds and 4 git commands to generate.