[packages/tup] - tup - build system - initial commit

cactus cactus at pld-linux.org
Thu Dec 6 00:51:37 CET 2012


commit 8bf2d97a632d53403c52ec06b346ee5dcabac878
Author: Bartlomiej Zimon <uzi18 at o2.pl>
Date:   Thu Dec 6 00:51:14 2012 +0100

    - tup - build system
    - initial commit

 tup-upstream.patch | 20 ++++++++++++++++++++
 tup.spec           | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)
---
diff --git a/tup.spec b/tup.spec
new file mode 100644
index 0000000..12f0461
--- /dev/null
+++ b/tup.spec
@@ -0,0 +1,46 @@
+Summary:	Tup - build system
+Name:		tup
+Version:	0.6
+Release:	1
+License:	GPL v2
+Group:		Development/Building
+Source0:	https://github.com/gittup/tup/archive/v0.6.tar.gz
+# Source0-md5:	0e4d0a6ab524731d3153e015135be097
+Patch0:		%{name}-upstream.patch
+URL:		http://gittup.org/tup/
+BuildRequires:	gcc
+BuildRequires:	libfuse-devel
+BuildRequires:	pkgconfig
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tup is a file-based build system for Linux, OSX, and Windows. It
+inputs a list of file changes and a directed acyclic graph (DAG), then
+processes the DAG to execute the appropriate commands required to
+update dependent files. Updates are performed with very little
+overhead since tup implements powerful build algorithms to avoid doing
+unnecessary work. This means you can stay focused on your project
+rather than on your build system
+
+%prep
+%setup -q -n tup-%{version}
+%patch0 -p1
+
+%build
+./build.sh
+#./bootstrap.sh
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+install build/tup $RPM_BUILD_ROOT%{_bindir}
+install tup.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/tup
+%{_mandir}/man1/tup.1*
diff --git a/tup-upstream.patch b/tup-upstream.patch
new file mode 100644
index 0000000..ac30648
--- /dev/null
+++ b/tup-upstream.patch
@@ -0,0 +1,20 @@
+commit 9cf83b62384ef37bd0faf44ce3d0052580594ed7
+Author: Mike Shal <marfey at gmail.com>
+Date:   Thu Aug 9 14:56:57 2012 -0400
+
+    inotify: Include sys/resource.h for PRIO_PROCESS define.
+    
+    This lets tup compile in Arch Linux.
+
+diff --git a/src/tup/monitor/inotify.c b/src/tup/monitor/inotify.c
+index e9031d4..f4d6fe7 100644
+--- a/src/tup/monitor/inotify.c
++++ b/src/tup/monitor/inotify.c
+@@ -45,6 +45,7 @@
+ #include <string.h>
+ #include <fcntl.h>
+ #include <sys/inotify.h>
++#include <sys/resource.h>
+ #include <sys/time.h>
+ #include <errno.h>
+ #include <sys/wait.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tup.git/commitdiff/8bf2d97a632d53403c52ec06b346ee5dcabac878



More information about the pld-cvs-commit mailing list