Re: [PATCH] git-pasky spec file
Chris Wright wrote: > Here's a simple spec file to do rpm builds. (snip) > Creates a package named git, which seems > fine since Linus' isn't likely to be packaged directly. Um. Really? I can't imagine why Linus's git wouldn't be packaged directly. He has strongly indicated that folks who want to build on top of it should not expect to see libgit any time soon, so git will be an important independent tool. But presumably you'll change the name of this package to cogito soon anyway, as soon as git-pasky itself is renamed. Kevin - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git-pasky spec file
* Petr Baudis ([EMAIL PROTECTED]) wrote: > Dear diary, on Fri, Apr 22, 2005 at 03:55:21AM CEST, I got a letter > where Chris Wright <[EMAIL PROTECTED]> told me that... > > Here's a simple spec file to do rpm builds. It's against the > > latest Makefile (which has the s/BINDIR/bindir/ change). I've used > > DESTDIR, although it's not clear it's meant to stay in the Makefile. > > For now, there's no dynamic (git.spec.in, for example) update to the > > Version, so it's set against 0.6.3 (expecting it to be forthcoming > > shortly). It installs to /usr/local/bin, and expects the tarball to be > > named git-pasky-0.6.3.tar.bz2. Creates a package named git, which seems > > fine since Linus' isn't likely to be packaged directly. Enjoy. > > Thanks, applied. I'll gladly yet you maintain this file, but... No problem... > > --- /dev/null 1969-12-31 16:00:00.0 -0800 > > +++ git-pasky-0.6.3/git.spec2005-04-21 18:42:18.0 -0700 > > @@ -0,0 +1,43 @@ > > +%install > > +rm -rf $RPM_BUILD_ROOT > > +make DESTDIR=$RPM_BUILD_ROOT/usr/local/ bindir=bin/ install > > I doubt this is actually what you want. I suppose you want > > make DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local install Yup, that makes more sense. Feel free to update if you're so inclined. thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH] git-pasky spec file
Dear diary, on Fri, Apr 22, 2005 at 03:55:21AM CEST, I got a letter where Chris Wright <[EMAIL PROTECTED]> told me that... > Here's a simple spec file to do rpm builds. It's against the > latest Makefile (which has the s/BINDIR/bindir/ change). I've used > DESTDIR, although it's not clear it's meant to stay in the Makefile. > For now, there's no dynamic (git.spec.in, for example) update to the > Version, so it's set against 0.6.3 (expecting it to be forthcoming > shortly). It installs to /usr/local/bin, and expects the tarball to be > named git-pasky-0.6.3.tar.bz2. Creates a package named git, which seems > fine since Linus' isn't likely to be packaged directly. Enjoy. Thanks, applied. I'll gladly yet you maintain this file, but... > --- /dev/null 1969-12-31 16:00:00.0 -0800 > +++ git-pasky-0.6.3/git.spec 2005-04-21 18:42:18.0 -0700 > @@ -0,0 +1,43 @@ > +%install > +rm -rf $RPM_BUILD_ROOT > +make DESTDIR=$RPM_BUILD_ROOT/usr/local/ bindir=bin/ install I doubt this is actually what you want. I suppose you want make DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local install instead. This may not matter now, but might well in future when we stuff some of the helper/library scripts to some lib/ or share/ directory, and will actually rewrite some paths somewhere based on $prefix during make install. -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH] git-pasky spec file
Here's a simple spec file to do rpm builds. It's against the latest Makefile (which has the s/BINDIR/bindir/ change). I've used DESTDIR, although it's not clear it's meant to stay in the Makefile. For now, there's no dynamic (git.spec.in, for example) update to the Version, so it's set against 0.6.3 (expecting it to be forthcoming shortly). It installs to /usr/local/bin, and expects the tarball to be named git-pasky-0.6.3.tar.bz2. Creates a package named git, which seems fine since Linus' isn't likely to be packaged directly. Enjoy. Signed-off-by: Chris Wright <[EMAIL PROTECTED]> --- /dev/null 1969-12-31 16:00:00.0 -0800 +++ git-pasky-0.6.3/git.spec2005-04-21 18:42:18.0 -0700 @@ -0,0 +1,43 @@ +Name: git +Version: 0.6.3 +Release: 1 +Vendor:Petr Baudis <[EMAIL PROTECTED]> +Summary: Git core and tools +License: GPL +Group: Development/Tools +URL: http://pasky.or.cz/~pasky/dev/git/ +Source: http://pasky.or.cz/~pasky/dev/git/%{name}-pasky-%{version}.tar.bz2 +Provides: git = %{version} +BuildRequires: zlib-devel openssl-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Prereq:sh-utils diffutils + +%description +GIT comes in two layers. The bottom layer is merely an extremely fast +and flexible filesystem-based database designed to store directory trees +with regard to their history. The top layer is a SCM-like tool which +enables human beings to work with the database in a manner to a degree +similar to other SCM tools (like CVS, BitKeeper or Monotone). + +%prep +%setup -q -n %{name}-pasky-%{version} + +%build + +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT/usr/local/ bindir=bin/ install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/usr/local/bin/* +#%{_mandir}/*/* + +%changelog +* Thu Apr 21 2005 Chris Wright <[EMAIL PROTECTED]> 0.6.3-1 +- Initial rpm build - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html