Fixed proper versioning.
[ntfsprogs.git] / ntfsprogs.spec.in
index 818d85c..5abbc29 100644 (file)
@@ -1,6 +1,6 @@
 %define        name    @PACKAGE@
-%define        ver     @VERSION@
-%define        rel     1
+%define        ver     @VERSION_BASE@
+%define        rel     1@VERSION_EXT@
 %define        prefix  /usr
 %define bindir /usr/bin
 %define sbindir /usr/sbin
@@ -17,6 +17,9 @@ Buildroot     : %{_tmppath}/%{name}-root
 Packager       : Jan Kratochvil <project-captive@jankratochvil.net>
 License                : GPL
 Group          : System Environment/Base
+BuildRequires  : autoconf
+BuildRequires  : automake >= 1.6
+BuildRequires  : libtool
 %description
 The Linux-NTFS project (http://linux-ntfs.sf.net/) aims to bring full support
 for the NTFS filesystem to the Linux operating system. Linux-NTFS currently
@@ -47,7 +50,13 @@ with libntfs.
 
 %prep
 %setup
+chmod -R u+w .
 %patch1 -p1
+%{__aclocal}
+%{__libtoolize} --force
+%{__autoheader}
+%{__automake} --add-missing
+%{__autoconf}
 
 %build
 if [ -n "$LINGUAS" ]; then unset LINGUAS; fi