]> git.pld-linux.org Git - packages/git-core.git/commitdiff
- Perl Package Naming
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Nov 2006 17:39:31 +0000 (17:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- cleanup files
- BR: perl-Error to avoid copy of Error.pm being installed
- fix perl paths
- rel 2

Changed files:
    git-core.spec -> 1.36

git-core.spec

index 474f3327d1c0ae959e1f0f4cecc235aafeb67506..c104a18d9fb848cfbe336bbfe0d8bf99ff2ddbf1 100644 (file)
@@ -3,7 +3,7 @@ Summary:        The stupid content tracker
 Summary(pl):   Prymitywne narzêdzie do ¶ledzenia tre¶ci
 Name:          git-core
 Version:       1.4.3.4
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Development/Tools
 Source0:       http://www.kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
@@ -13,6 +13,7 @@ BuildRequires:        asciidoc
 BuildRequires: curl-devel
 BuildRequires: expat-devel
 BuildRequires: openssl-devel
+BuildRequires: perl-Error
 BuildRequires: perl-base
 BuildRequires: python
 BuildRequires: rpm-perlprov >= 4.1-13
@@ -64,12 +65,13 @@ Header files for git-core.
 %description devel
 Pliki nag³ówkowe dla git-core.
 
-%package -n perl-git-core
+%package -n perl-Git-Core
 Summary:       Perl interface to the Git version control system
 Group:         Development/Languages/Perl
 Requires:      %{name} = %{version}-%{release}
+Obsoletes:     perl-git-core
 
-%description -n perl-git-core
+%description -n perl-Git-Core
 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
@@ -80,17 +82,19 @@ totally trivial to do over the generic command interface.
 %setup -q -n git-%{version}
 
 %build
-cd perl
-%{__perl} Makefile.PL \
-       INSTALLDIRS=vendor
-cd ..
-
 %{__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
@@ -110,6 +114,9 @@ install -d $RPM_BUILD_ROOT%{_includedir}/%{name}/xdiff
 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
 
@@ -125,7 +132,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_includedir}/*
 
-%files -n perl-git-core
+%files -n perl-Git-Core
 %defattr(644,root,root,755)
 %{perl_vendorlib}/*.pm
 %{_mandir}/man3/*
This page took 0.032094 seconds and 4 git commands to generate.