Commit a905bc77 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Aid rpm build for non 32-bit builds

- Added --libdir=%{_libdir} to configure
- Added --enable-debug to compile with debug symbols
parent fa693236
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
%define lib_name %{name} %define lib_name %{name}
%define redhat 0 %define redhat 1
%if %redhat %if %redhat
# some mdk macros that do not exist in rh # some mdk macros that do not exist in rh
%define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr %define configure2_5x CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
%define make %__make %define make %__make
%define makeinstall_std %__make DESTDIR="$RPM_BUILD_ROOT" install %define makeinstall_std %__make DESTDIR="$RPM_BUILD_ROOT" install
# adjust define for Redhat. # adjust define for Redhat.
...@@ -50,7 +50,7 @@ the %name package installed. ...@@ -50,7 +50,7 @@ the %name package installed.
%setup -q -n %{lib_name}-%{version} %setup -q -n %{lib_name}-%{version}
%build %build
%configure2_5x --enable-release %configure2_5x --enable-release --enable-debug
%make %make
%install %install
...@@ -78,6 +78,10 @@ rm -rf %buildroot ...@@ -78,6 +78,10 @@ rm -rf %buildroot
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Thu Apr 21 2011 Jean-Paul Saman <jpsaman@videolan.org>
- Correctly build rpm package on x86_64
- Enable debug symbols in build (usefull for %name-debuginfo package)
* Fri Nov 19 2010 Jean-Paul Saman <jpsaman@videolan.org> * Fri Nov 19 2010 Jean-Paul Saman <jpsaman@videolan.org>
- Relicensed under LGPLv2.1 - Relicensed under LGPLv2.1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment