Permalink
Browse files

Update build system so that RPMs can be easily built.

svn path=/trunk/mono-tools/; revision=18895
  • Loading branch information...
Jonathan Pryor
Jonathan Pryor committed Oct 12, 2003
1 parent 1c96964 commit 95b6672f5971d7033c77cd92108ede7c382ae6c7
Showing with 478 additions and 7 deletions.
  1. 0 AUTHORS
  2. +340 −0 COPYING
  3. 0 COPYING.LIB
  4. 0 ChangeLog
  5. +10 −0 LICENSE
  6. +21 −0 MIT.X11
  7. +0 −6 Makefile.am
  8. +17 −0 Makefile.am.in
  9. 0 NEWS
  10. +38 −0 README
  11. +7 −1 autogen.sh
  12. +1 −0 configure.in
  13. +44 −0 mono-tools.spec.in
View
No changes.
View
340 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
No changes.
View
No changes.
View
10 LICENSE
@@ -0,0 +1,10 @@
+The Mono Tools code is licensed under various different licenses.
+
+ GNU GPL: details available in the file LICENSE.GPL
+ GNU LGPL: details available in the file LICENSE.LGPL
+ MIT X11: details available in the file MIT.X11
+
+ * Type Refector:
+
+ This app is licensed under the terms of the MIT X11 license.
+
View
21 MIT.X11
@@ -0,0 +1,21 @@
+Copyright (c) 2001, 2002, 2003 Ximian, Inc and the individuals listed
+on the ChangeLog entries.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -1,6 +0,0 @@
-AUTOMAKE_OPTIONS = foreign
-
-AM_MAKEFLAGS = CSC=$(CSC) prefix=$(prefix)
-
-SUBDIRS = type-reflector debugger
-
View
@@ -0,0 +1,17 @@
+AUTOMAKE_OPTIONS = foreign
+
+AM_MAKEFLAGS = CSC=$(CSC) prefix=$(prefix)
+
+SUBDIRS = @subdirs@
+
+EXTRA_DIST = mono-tools.spec.in LICENSE MIT.X11
+
+MT_RPM_BUILD_DIR = `rpmbuild --nobuild --eval "%{_topdir}" mono-tools.spec`
+MT_HOSTTYPE = $(shell echo $$HOSTTYPE)
+
+dist-rpm: dist
+ cp $(distdir).tar.gz $(MT_RPM_BUILD_DIR)/SOURCES
+ rpmbuild -ba mono-tools.spec
+ cp $(MT_RPM_BUILD_DIR)/RPMS/$(MT_HOSTTYPE)/mono-tools*.rpm .
+ cp $(MT_RPM_BUILD_DIR)/SRPMS/mono-tools*.rpm .
+
View
0 NEWS
No changes.
View
38 README
@@ -0,0 +1,38 @@
+Mono Tools:
+----------
+
+Mono Tools is a collection of programs and utilities for use with Mono.
+
+
+Building:
+--------
+
+Building should be as simple as:
+
+ ./autogen.sh [typical configure flags, such as --prefix=PREFIX]
+ make
+ make install
+
+
+Notes:
+-----
+
+To ensure that a directory is actually configured and built, add the directory
+to the file "subdirs". This file contains the names of directories that
+should be configured and built as part of normal "make" handling.
+
+If the subdirectory has an "autogen.sh" file, it will be executed when the
+top-level "autogen.sh" file is executed.
+
+
+Building an RPM:
+---------------
+
+1. Run "autogen.sh", which creates and runs "configure", etc.
+
+ ./autogen.sh
+
+2. Make the RPM:
+
+ sudo make dist-rpm
+
View
@@ -4,6 +4,12 @@
DIE=0
+# This is a horrible hack, but allows us to keep Makefile.am and autogen.sh in
+# sync (regarding which directories we actually care about for building).
+
+subdirs=`cat subdirs`
+cat Makefile.am.in | sed "s/@subdirs@/$subdirs/" > Makefile.am
+
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@@ -96,7 +102,7 @@ conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
# Let subdirs also run autogen.sh
echo "Processing autogen.sh in subdirectories..."
-for d in ./* ; do
+for d in $subdirs ; do
if [ -d "$d" -a -x "$d/autogen.sh" ]; then
( cd $d ; ./autogen.sh "$@" )
fi
View
@@ -36,6 +36,7 @@ AC_CONFIG_SUBDIRS("debugger")
AC_OUTPUT([
Makefile
+ mono-tools.spec
])
## Output Results
View
@@ -0,0 +1,44 @@
+Summary: Tools for use with the Mono Runtime
+Name: mono-tools
+Version: @VERSION@
+Release: 1
+License: Various (X11, GPL)
+Group: Development/Tools
+Source: http://www.go-mono.com/archive/mono-tools-0.1.tar.gz
+URL: http://www.go-mono.com/
+BuildRoot: %{_tmppath}/%{name}-root
+Requires: mono, gtk-sharp
+BuildRequires: mono-devel
+Packager: Jonathan Pryor <jonpryor@vt.edu>
+
+%description
+A collection of tools and utilities for use with the Mono runtime environment.
+
+%prep
+%setup -q
+
+%build
+./configure
+make
+
+%install
+rm -rf %{buildroot}
+%makeinstall
+
+%clean
+rm -rf %{buildroot}
+
+%post
+
+%postun
+
+%files
+%defattr(-, root, root)
+%doc AUTHORS LICENSE MIT.X11 COPYING COPYING.LIB ChangeLog NEWS README
+%{_bindir}/type-reflector
+%{_bindir}/type-reflector.exe
+%{_bindir}/type-reflector.exe.config
+
+%changelog
+* Mon Oct 06 2003 Jonathan Pryor <jonpryor@vt.edu>
+- Initial RPM release.

0 comments on commit 95b6672

Please sign in to comment.