Make perl interface a separate package
Install it as a vendor package. Remove .packlist, perllocal.pod, Git.bs. Require perl(Error) for building so that our Error.pm is not installed. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Pavel Roskin committed
Jun 30, 2006 at 01:09 UTC
b9795608c4d82ba119d78980b479d78bdfe753b6
1 file changed
+19
-2
git.spec.in
+19
-2
@@ -9,7 +9,7 @@ URL: http://kernel.org/pub/software/scm/git/
9
Source: http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.gz
10
BuildRequires: zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel %{!?_without_docs:, xmlto, asciidoc > 6.0.3}
11
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
-Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk
12
+Requires: git-core, git-svn, git-cvs, git-arch, git-email, gitk, perl-Git
13
14
%description
15
This is a stupid (but extremely fast) directory content manager. It
@@ -70,6 +70,16 @@ Requires: git-core = %{version}-%{release}, tk >= 8.4
70
%description -n gitk
71
Git revision tree visualiser ('gitk')
72
73
+%package -n perl-Git
74
+Summary: Perl interface to Git
75
+Group: Development/Libraries
76
+Requires: git-core = %{version}-%{release}
77
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
78
+BuildRequires: perl(Error)
79
+
80
+%description -n perl-Git
81
+Perl interface to Git
82
+
83
%prep
84
%setup -q
85
@@ -80,10 +90,14 @@ make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
90
%install
91
rm -rf $RPM_BUILD_ROOT
92
make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT WITH_OWN_SUBPROCESS_PY=YesPlease \
83
- prefix=%{_prefix} mandir=%{_mandir} \
93
+ prefix=%{_prefix} mandir=%{_mandir} INSTALLDIRS=vendor \
94
install %{!?_without_docs: install-doc}
95
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
96
+find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
97
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
98
99
(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
100
+(find $RPM_BUILD_ROOT%{perl_vendorarch} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
101
%if %{!?_without_docs:1}0
102
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
103
%else
@@ -131,6 +145,9 @@ rm -rf $RPM_BUILD_ROOT
145
%{!?_without_docs: %{_mandir}/man1/*gitk*.1*}
146
%{!?_without_docs: %doc Documentation/*gitk*.html }
147
148
+%files -n perl-Git -f perl-files
149
+%defattr(-,root,root)
150
+
151
%files core -f bin-man-doc-files
152
%defattr(-,root,root)
153
%{_datadir}/git-core/