]> git.pld-linux.org Git - packages/tup.git/commitdiff
- tup - build system
authorBartlomiej Zimon <uzi18@o2.pl>
Wed, 5 Dec 2012 23:51:14 +0000 (00:51 +0100)
committerBartlomiej Zimon <uzi18@o2.pl>
Wed, 5 Dec 2012 23:51:14 +0000 (00:51 +0100)
- initial commit

tup-upstream.patch [new file with mode: 0644]
tup.spec [new file with mode: 0644]

diff --git a/tup-upstream.patch b/tup-upstream.patch
new file mode 100644 (file)
index 0000000..ac30648
--- /dev/null
@@ -0,0 +1,20 @@
+commit 9cf83b62384ef37bd0faf44ce3d0052580594ed7
+Author: Mike Shal <marfey@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>
diff --git a/tup.spec b/tup.spec
new file mode 100644 (file)
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*
This page took 1.075079 seconds and 4 git commands to generate.