Version 0.8 with spec file.
authorrjones <rjones>
Fri, 27 Mar 2009 13:16:03 +0000 (13:16 +0000)
committerrjones <rjones>
Fri, 27 Mar 2009 13:16:03 +0000 (13:16 +0000)
.cvsignore
Makefile.am
configure.ac
rpmdepsize.spec.in [new file with mode: 0644]

index 785c92a..60fda12 100644 (file)
@@ -13,4 +13,5 @@ config.status
 configure
 rpmdepsize
 rpmdepsize_about.ml
+rpmdepsize.spec
 stamp-h1
index 27ab0c2..e55b08b 100644 (file)
@@ -21,7 +21,9 @@ ACLOCAL_AMFLAGS = -I m4
 
 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
 
index d12c5b0..8874a2b 100644 (file)
@@ -17,7 +17,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 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])
@@ -55,5 +55,5 @@ if test "x$YUM" = "xno" ; then
 fi
 
 AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_FILES([Makefile rpmdepsize_about.ml])
+AC_CONFIG_FILES([Makefile rpmdepsize_about.ml rpmdepsize.spec])
 AC_OUTPUT
diff --git a/rpmdepsize.spec.in b/rpmdepsize.spec.in
new file mode 100644 (file)
index 0000000..cdac358
--- /dev/null
@@ -0,0 +1,57 @@
+# @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.