Add .gitignore file for git.
[virt-p2v.git] / virt-p2v.spec.in
index dab5f58..15d7300 100644 (file)
@@ -1,7 +1,8 @@
+%define debug_package %{nil}
+
 Name:           @PACKAGE_NAME@
 Version:        @PACKAGE_VERSION@
-# Please keep the release as '1' for compatibility
-# with the Makefile.
+# Please keep the release as '1' for compatibility with the Makefile.
 Release:        1
 Summary:        Virt-p2v
 
@@ -10,12 +11,9 @@ License:        GPLv2+
 URL:            http://et.redhat.com/~rjones/virt-p2v
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-#ExclusiveArch:  noarch
+BuildArch:      noarch
 
-Source0:        virt-p2v
-Source1:        virt-p2v-update-wrapper
-Source2:        iso-attach
-Source3:        inittab
+Source0:        %{name}-%{version}.tar.gz
 
 Requires:       ocaml >= 3.10.0
 Requires:       ocaml-runtime
@@ -40,17 +38,23 @@ P2V, V2V and V2P virtual machine migration.
 
 
 %prep
+%setup -q
 
 
 %build
+%configure
+make -C po
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 mkdir -p $RPM_BUILD_ROOT%{_bindir}
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
-install -m 0755 %{SOURCE0} %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}
-install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/event.d
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
+install -m 0755 virt-p2v virt-p2v-update-wrapper iso-attach \
+  $RPM_BUILD_ROOT%{_bindir}
+make -C po install PODIR=$RPM_BUILD_ROOT%{_datadir}/locale
 
 
 %clean
@@ -60,9 +64,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %{_bindir}/*
-%{_sysconfdir}/*
+%{_datadir}/locale/*
 
 
 %changelog
-* Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - 1.2.3-1
+* Fri Feb 22 2008 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
 - Initial RPM release.