[Mobies-commit] [commit] r3928 - in UDM/trunk/rpmbuild_CentOS: . BUILD BUILDROOT RPMS SOURCES SPECS SRPMS tmp
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Thu Nov 3 16:15:19 CDT 2011
Author: ksmyth
Date: Thu Nov 3 16:15:19 2011
New Revision: 3928
Log:
rpm packaging for CentOS
Added:
UDM/trunk/rpmbuild_CentOS/
UDM/trunk/rpmbuild_CentOS/BUILD/
UDM/trunk/rpmbuild_CentOS/BUILDROOT/
UDM/trunk/rpmbuild_CentOS/RPMS/
UDM/trunk/rpmbuild_CentOS/SOURCES/
UDM/trunk/rpmbuild_CentOS/SPECS/
UDM/trunk/rpmbuild_CentOS/SPECS/udm.spec
UDM/trunk/rpmbuild_CentOS/SRPMS/
UDM/trunk/rpmbuild_CentOS/make.sh
UDM/trunk/rpmbuild_CentOS/tmp/
Added: UDM/trunk/rpmbuild_CentOS/SPECS/udm.spec
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ UDM/trunk/rpmbuild_CentOS/SPECS/udm.spec Thu Nov 3 16:15:19 2011 (r3928)
@@ -0,0 +1,49 @@
+# Don't try fancy stuff like debuginfo, which is useless on binary-only
+# packages. Don't strip binary too
+# Be sure buildpolicy set to do nothing
+%define __spec_install_post %{nil}
+%define debug_package %{nil}
+%define __os_install_post %{_dbpath}/brp-compress
+
+Summary: Udm
+Name: udm
+Version: 3.13
+Release: 1
+License: Vanderbilt EULA
+Group: Development/Tools
+SOURCE0 : %{name}-%{version}.tar.gz
+URL: http://isis.vanderbilt.edu
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+%{summary}
+
+%prep
+%setup -q
+
+%build
+# Empty section.
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}
+
+# in builddir
+cp -a * %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+/*
+
+%changelog
+* Thu Nov 3 2011 Kevin Smyth <ksmyth at isis.vanderbilt.edu> 3.13-1
+- First Build
+
+
+EOF
Added: UDM/trunk/rpmbuild_CentOS/make.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ UDM/trunk/rpmbuild_CentOS/make.sh Thu Nov 3 16:15:19 2011 (r3928)
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# http://stackoverflow.com/questions/880227/what-is-the-minimum-i-have-to-do-to-create-an-rpm-file
+
+set -e
+set -u
+
+pushd ..
+VERSION=3.13
+./configure LDFLAGS="-L$(pwd)/debian/zlib-1.2.3.3.dfsg/contrib/minizip/" CPPFLAGS="-I$(pwd)/debian/zlib-1.2.3.3.dfsg/contrib/" CXXFLAGS="-I$(pwd)/debian/zlib-1.2.3.3.dfsg/contrib/" --with-antlr=antlr --with-pccts-dir=/usr/include/antlr/ --without-xalan --without-antlr --prefix=/usr
+make DESTDIR=`pwd`/rpmbuild/udm-$VERSION install
+popd
+
+tar -zcvf udm-$VERSION.tar.gz udm-$VERSION
+cp -f udm-$VERSION.tar.gz SOURCES/
+
+rpmbuild -ba SPECS/udm.spec
More information about the Mobies-commit
mailing list