r47736 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47735‎ | r47736 | r47737 >
Date:01:19, 24 February 2009
Author:river
Status:deferred
Tags:
Comment:
TSgit: new package
Modified paths:
  • /trunk/tools/ts-specs/TSgit.spec (added) (history)
  • /trunk/tools/ts-specs/patches/git-01-ginstall.diff (added) (history)

Diff [purge]

Index: trunk/tools/ts-specs/patches/git-01-ginstall.diff
@@ -0,0 +1,11 @@
 2+--- Makefile.old Tue Feb 24 01:03:26 2009
 3+@@ -668,7 +668,7 @@
 4+ NO_C99_FORMAT = YesPlease
 5+ NO_STRTOUMAX = YesPlease
 6+ endif
 7+- INSTALL = ginstall
 8++ INSTALL = /opt/gnu/bin/install
 9+ TAR = gtar
 10+ BASIC_CFLAGS += -D__EXTENSIONS__
 11+ endif
Index: trunk/tools/ts-specs/TSgit.spec
@@ -0,0 +1,73 @@
 2+#
 3+# spec file for package TSgit
 4+#
 5+# includes module(s): git
 6+#
 7+%include Solaris.inc
 8+
 9+Name: TSgit
 10+Summary: git revision control system
 11+Version: 1.6.1.3
 12+Source: http://kernel.org/pub/software/scm/git/git-%{version}.tar.bz2
 13+Patch1: git-01-ginstall.diff
 14+SUNW_BaseDir: %{_basedir}
 15+BuildRoot: %{_tmppath}/%{name}-%{version}-build
 16+%include default-depend.inc
 17+Requires: SUNWlibms
 18+BuildRequires: TScoreutils
 19+
 20+%prep
 21+%setup -q -n git-%version
 22+%patch1 -p0
 23+
 24+%build
 25+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
 26+if test "x$CPUS" = "x" -o $CPUS = 0; then
 27+ CPUS=1
 28+fi
 29+
 30+export CC="cc"
 31+export CXX="CC"
 32+export CFLAGS="%optflags"
 33+export LDFLAGS='-R/opt/ts/lib'
 34+
 35+./configure --prefix=%{_prefix} \
 36+ --libexecdir=%{_libexecdir} \
 37+ --mandir=%{_mandir} \
 38+ --datadir=%{_datadir} \
 39+ --infodir=%{_datadir}/info \
 40+ --with-openssl=/usr/sfw \
 41+ --with-expat=/usr/sfw \
 42+ --with-tcltk=no \
 43+ --with-curl=/opt/ts
 44+
 45+gmake -j$CPUS
 46+
 47+%install
 48+gmake install DESTDIR=$RPM_BUILD_ROOT
 49+rm -f $RPM_BUILD_ROOT%{_libdir}/i86pc-solaris-64int/perllocal.pod
 50+rmdir $RPM_BUILD_ROOT%{_libdir}/i86pc-solaris-64int
 51+rm -rf $RPM_BUILD_ROOT%{_libdir}/site_perl/5.8.4/i86pc-solaris-64int
 52+
 53+%clean
 54+rm -rf $RPM_BUILD_ROOT
 55+
 56+%files
 57+%defattr (-, root, bin)
 58+%dir %attr (0755, root, bin) %{_bindir}
 59+%{_bindir}/*
 60+%dir %attr (0755, root, bin) %{_libdir}
 61+%dir %attr (0755, root, bin) %{_libdir}/git-core
 62+%{_libdir}/git-core/*
 63+%dir %attr (0755, root, bin) %{_libdir}/site_perl
 64+%{_libdir}/site_perl/*
 65+%dir %attr(0755, root, sys) %{_datadir}
 66+%dir %attr(0755, root, sys) %{_datadir}/git-core
 67+%{_datadir}/git-core/*
 68+%dir %attr(0755, root, bin) %{_mandir}
 69+%dir %attr(0755, root, bin) %{_mandir}/man3
 70+%{_mandir}/man3/*
 71+
 72+%changelog
 73+* Mon Feb 23 2009 - river@loreley.flyingparchment.org.uk
 74+- initial spec

Status & tagging log