packages: git-annex/git-annex.spec (NEW), git-annex/install-docs.patch (NEW...
glen
glen at pld-linux.org
Thu Feb 24 11:05:17 CET 2011
Author: glen Date: Thu Feb 24 10:05:17 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial package, using src.rpm from https://bugzilla.redhat.com/show_bug.cgi?id=662259
---- Files affected:
packages/git-annex:
git-annex.spec (NONE -> 1.1) (NEW), install-docs.patch (NONE -> 1.1) (NEW), prefix-support.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/git-annex/git-annex.spec
diff -u /dev/null packages/git-annex/git-annex.spec:1.1
--- /dev/null Thu Feb 24 11:05:17 2011
+++ packages/git-annex/git-annex.spec Thu Feb 24 11:05:12 2011
@@ -0,0 +1,84 @@
+# $Revision$, $Date$
+Summary: Manage files with git, without checking in their contents
+Name: git-annex
+Version: 0.11
+Release: 0.1
+License: GPL v3
+Group: Applications/Archiving
+# Made from git
+# git clone git://git.kitenet.net/git-annex
+# cd git-annex
+# git archive --format=tar --prefix=git-annex-0.11/ 0.11 | bzip2 --best > ../git-annex-0.11.tar.bz2
+URL: http://git-annex.branchable.com/
+Source0: %{name}-%{version}.tar.bz2
+Patch1: prefix-support.patch
+Patch0: install-docs.patch
+BuildRequires: ikiwiki
+# Build-time check for uuid
+BuildRequires: ghc-MissingH-devel
+BuildRequires: ghc-MissingH-prof
+BuildRequires: ghc-pcre-light-devel
+BuildRequires: ghc-pcre-light-prof
+BuildRequires: ghc-utf8-string-devel
+BuildRequires: ghc-utf8-string-prof
+BuildRequires: uuid
+Requires: findutils
+Requires: git-core
+Requires: rsync
+Requires: uuid
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+git-annex allows managing files with git, without checking the file
+contents into git. While that may seem paradoxical, it is useful when
+dealing with files larger than git can currently easily handle,
+whether due to limitations in memory, checksumming time, or disk
+space.
+
+Even without file content tracking, being able to manage files with
+git, move files around and delete files with versioned directory
+trees, and use branches and distributed clones, are all very handy
+reasons to use git. And annexed files can co-exist in the same git
+repository with regularly versioned files, which is convenient for
+maintaining documents, Makefiles, etc that are associated with annexed
+files but that benefit from full revision control.
+
+When a file is annexed, its content is moved into a key-value store,
+and a symlink is made that points to the content. These symlinks are
+checked into git and versioned like regular files. You can move them
+around, delete them, and so on. Pushing to another git repository will
+make git-annex there aware of the annexed file, and it can be used to
+retrieve its content from the key-value store.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__make}
+%{__make} docs
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install install-docs \
+ PREFIX=%{_prefix} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/%{name}
+%{_docdir}/%{name}/
+%{_mandir}/man1/%{name}.1*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/02/24 10:05:12 glen
+- initial package, using src.rpm from https://bugzilla.redhat.com/show_bug.cgi?id=662259
================================================================
Index: packages/git-annex/install-docs.patch
diff -u /dev/null packages/git-annex/install-docs.patch:1.1
--- /dev/null Thu Feb 24 11:05:17 2011
+++ packages/git-annex/install-docs.patch Thu Feb 24 11:05:12 2011
@@ -0,0 +1,20 @@
+diff -u -r -U5 git-annex-0.11/Makefile git-annex-0.11.install-docs/Makefile
+--- git-annex-0.11/Makefile 2010-12-04 16:29:28.000000000 -0500
++++ git-annex-0.11.install-docs/Makefile 2010-12-08 22:23:32.755992078 -0500
+@@ -11,10 +11,16 @@
+
+ install:
+ install -d $(DESTDIR)/usr/bin
+ install git-annex $(DESTDIR)/usr/bin
+
++install-docs:
++ install -d $(DESTDIR)/usr/share/man/man1/
++ install git-annex.1 $(DESTDIR)/usr/share/man/man1/git-annex.1
++ install -d $(DESTDIR)/usr/share/doc/git-annex/
++ cp -a html $(DESTDIR)/usr/share/doc/git-annex/html
++
+ # If ikiwiki is available, build static html docs suitable for being
+ # shipped in the software package.
+ ifeq ($(shell which ikiwiki),)
+ IKIWIKI=@echo "** ikiwiki not found, skipping building docs" >&2; true
+ else
================================================================
Index: packages/git-annex/prefix-support.patch
diff -u /dev/null packages/git-annex/prefix-support.patch:1.1
--- /dev/null Thu Feb 24 11:05:17 2011
+++ packages/git-annex/prefix-support.patch Thu Feb 24 11:05:12 2011
@@ -0,0 +1,36 @@
+diff -u -r -U5 git-annex-0.11.install-docs/Makefile git-annex-0.11.prefix-support/Makefile
+--- git-annex-0.11.install-docs/Makefile 2010-12-08 22:23:32.755992078 -0500
++++ git-annex-0.11.prefix-support/Makefile 2010-12-08 22:24:25.444992024 -0500
+@@ -1,5 +1,7 @@
++PREFIX=/usr/local
++
+ all: git-annex docs
+
+ ghcmake=ghc -Wall -odir build -hidir build -O2 --make
+
+ SysConfig.hs: configure.hs
+@@ -8,18 +10,18 @@
+
+ git-annex: SysConfig.hs
+ $(ghcmake) git-annex
+
+ install:
+- install -d $(DESTDIR)/usr/bin
+- install git-annex $(DESTDIR)/usr/bin
++ install -d $(DESTDIR)$(PREFIX)/bin
++ install git-annex $(DESTDIR)$(PREFIX)/bin
+
+ install-docs:
+- install -d $(DESTDIR)/usr/share/man/man1/
+- install git-annex.1 $(DESTDIR)/usr/share/man/man1/git-annex.1
+- install -d $(DESTDIR)/usr/share/doc/git-annex/
+- cp -a html $(DESTDIR)/usr/share/doc/git-annex/html
++ install -d $(DESTDIR)$(PREFIX)/share/man/man1/
++ install git-annex.1 $(DESTDIR)$(PREFIX)/share/man/man1/git-annex.1
++ install -d $(DESTDIR)$(PREFIX)/share/doc/git-annex/
++ cp -a html $(DESTDIR)$(PREFIX)/share/doc/git-annex/html
+
+ # If ikiwiki is available, build static html docs suitable for being
+ # shipped in the software package.
+ ifeq ($(shell which ikiwiki),)
+ IKIWIKI=@echo "** ikiwiki not found, skipping building docs" >&2; true
================================================================
More information about the pld-cvs-commit
mailing list