@matheusbsbs / matheus-bagliano / commits / 7a585c0e6a
Fork 0

Added git-p4 package to the list of git RPMs.

Signed-off-by: Eygene Ryabinkin <rea-git@codelabs.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eygene Ryabinkin committed Mar 27, 2007 at 15:25 UTC 7a585c0e6ad872af9a7b88c7c4760a2c606be1ec
1 file changed +21 -4
git.spec.in
+21 -4
@@ -50,6 +50,13 @@ Requires: git-core = %{version}-%{release}, tla
50 %description arch
51 Git tools for importing Arch repositories.
52
53 +%package p4
54 +Summary: Git tools for importing Perforce repositories
55 +Group: Development/Tools
56 +Requires: git-core = %{version}-%{release}, python
57 +%description p4
58 +Git tools for importing Perforce repositories.
59 +
60 %package email
61 Summary: Git tools for sending email
62 Group: Development/Tools
@@ -86,22 +93,22 @@ Perl interface to Git
93
94 %build
95 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease \
89 - prefix=%{_prefix} all %{!?_without_docs: doc}
96 + WITH_P4IMPORT=YesPlease prefix=%{_prefix} all %{!?_without_docs: doc}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
94 - WITH_OWN_SUBPROCESS_PY=YesPlease \
101 + WITH_OWN_SUBPROCESS_PY=YesPlease WITH_P4IMPORT=YesPlease \
102 prefix=%{_prefix} mandir=%{_mandir} INSTALLDIRS=vendor \
103 install %{!?_without_docs: install-doc}
104 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
105 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
106 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
107
101 -(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
108 +(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "p4import|archimport|svn|cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
109 (find $RPM_BUILD_ROOT%{perl_vendorlib} -type f | sed -e s@^$RPM_BUILD_ROOT@@) >> perl-files
110 %if %{!?_without_docs:1}0
104 -(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "archimport|svn|git-cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
111 +(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "p4import|archimport|svn|git-cvs|email|gitk|git-gui|git-citool" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
112 %else
113 rm -rf $RPM_BUILD_ROOT%{_mandir}
114 %endif
@@ -133,6 +140,13 @@ rm -rf $RPM_BUILD_ROOT
140 %{!?_without_docs: %{_mandir}/man1/git-archimport.1*}
141 %{!?_without_docs: %doc Documentation/git-archimport.html }
142
143 +%files p4
144 +%defattr(-,root,root)
145 +%doc Documentation/git-p4import.txt
146 +%{_bindir}/git-p4import
147 +%{!?_without_docs: %{_mandir}/man1/git-p4import.1*}
148 +%{!?_without_docs: %doc Documentation/git-p4import.html }
149 +
150 %files email
151 %defattr(-,root,root)
152 %doc Documentation/*email*.txt
@@ -167,6 +181,9 @@ rm -rf $RPM_BUILD_ROOT
181 %{!?_without_docs: %doc Documentation/*.html }
182
183 %changelog
184 +* Tue Mar 27 2007 Eygene Ryabinkin <rea-git@codelabs.ru>
185 +- Added the git-p4 package: Perforce import stuff.
186 +
187 * Mon Feb 13 2007 Nicolas Pitre <nico@cam.org>
188 - Update core package description (Git isn't as stupid as it used to be)
189