add packaging accepted/tizen/20130503.223820 accepted/tizen/20130520.103301 submit/tizen/20130503.184118 submit/tizen/20130503.190157 submit/tizen/20130509.173144 submit/tizen/20130517.020621
authorAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 20:12:15 +0000 (13:12 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 20:12:15 +0000 (13:12 -0700)
packaging/boost-jam.spec [new file with mode: 0644]
packaging/test.tar.gz [new file with mode: 0644]

diff --git a/packaging/boost-jam.spec b/packaging/boost-jam.spec
new file mode 100644 (file)
index 0000000..d3da633
--- /dev/null
@@ -0,0 +1,47 @@
+Name:           boost-jam
+Version:        201104
+Release:        0
+Summary:        An Enhanced Make Replacement
+License:        BSD-3-Clause
+Group:          Development/Tools/Building
+Source:         %{name}-%{version}.tar.xz
+# From http://boost.cvs.sourceforge.net/boost/boost/tools/jam/test/:
+Source2:        test.tar.gz 
+Url:            http://www.boost.org/
+BuildRequires:  xz
+
+%description
+Boost Jam is a build tool based on FTJam, which in turn is based on
+Perforce Jam. It contains significant improvements made to facilitate
+its use in the Boost Build System, but should be backward compatible
+with Perforce Jam.
+
+%prep
+%setup -q
+find . -type f|xargs chmod -R u+w
+
+%build
+export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
+export CFLAGS="$RPM_OPT_FLAGS"
+LOCATE_TARGET=bin ./build.sh gcc --symbols
+# Trivial test: -- Documented used of bjam -v: Print the version of jam and exit:
+bin/bjam -v
+ln  -s bin bin.linux
+cd ..
+tar xvf %{SOURCE2}
+ln -s %{name}-%{version} src
+cd test
+sh test.sh || if [ $? -gt 5 ]; then sh test.sh;fi
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+install -m 755 bin/bjam %{buildroot}%{_bindir}/bjam-%{version}
+ln -sf bjam-%{version} %{buildroot}%{_bindir}/bjam
+ln -sf bjam-%{version} %{buildroot}%{_bindir}/jam
+
+%files
+%defattr(-,root,root)
+%attr(755,root,root) %{_bindir}/*
+
+%changelog
diff --git a/packaging/test.tar.gz b/packaging/test.tar.gz
new file mode 100644 (file)
index 0000000..bba07cf
Binary files /dev/null and b/packaging/test.tar.gz differ