MLFILES = rpmdepsize_about.ml rpmdepsize_errors.ml rpmdepsize.ml
-EXTRA_DIST = $(MLFILES) rpmdepsize_about.ml.in
+EXTRA_DIST = \
+ $(MLFILES) rpmdepsize_about.ml.in \
+ rpmdepsize.spec rpmdepsize.spec.in
CLEANFILES = rpmdepsize
dnl
dnl Written by Richard W.M. Jones <rjones@redhat.com>
-AC_INIT(rpmdepsize,0.7)
+AC_INIT(rpmdepsize,0.8)
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
fi
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile rpmdepsize_about.ml])
+AC_CONFIG_FILES([Makefile rpmdepsize_about.ml rpmdepsize.spec])
AC_OUTPUT
--- /dev/null
+# @configure_input@
+
+Name: @PACKAGE_NAME@
+Version: @PACKAGE_VERSION@
+Release: 1%{?dist}
+Summary: Visualize RPM dependencies
+
+Group: Development/Libraries
+License: GPLv2+
+URL: http://et.redhat.com/~rjones/rpmdepsize/
+Source0: http://et.redhat.com/~rjones/rpmdepsize/files/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: ocaml >= 3.10.0
+BuildRequires: ocaml-findlib-devel
+BuildRequires: ocaml-extlib-devel
+BuildRequires: ocaml-sexplib-devel
+BuildRequires: ocaml-lablgtk-devel >= 2.10.1
+BuildRequires: ocaml-camlp4-devel
+
+# The program embeds a python script, which has these requirements:
+Requires: python
+Requires: yum >= 3.2.21
+
+
+%description
+rpmdepsize is an interactive graphical tool for visualizing the size
+of RPM dependencies.
+
+
+%prep
+%setup -q
+
+
+%build
+%{configure}
+make
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+%{_bindir}/rpmdepsize
+
+
+%changelog
+* Fri Mar 27 2009 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
+- Initial RPM release.