]> git.pld-linux.org Git - packages/OpenAL.git/commitdiff
- remove OpenGL stuff (unused)
authorsaq <saq@pld-linux.org>
Sun, 18 Nov 2001 16:36:37 +0000 (16:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- remove duplicated {C,LD}FLAGS
- fix DESTDIR
- spread the libs between %%{name} and -devel
- drop the license (it's LGPL)

Changed files:
    OpenAL.spec -> 1.5

OpenAL.spec

index b1916b953f44d70fdf1856fe7df77e741276e095..df4dd953eee79f1782ec8544bcca6d7a4f1c21d1 100644 (file)
@@ -25,7 +25,6 @@ BuildRequires:        libvorbis-devel
 BuildRequires: smpeg-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        _noautoreqdep   libGL.so.1 libGLU.so.1
 %define                _prefix         /usr/X11R6
 %define                _mandir         %{_prefix}/man
 
@@ -86,14 +85,6 @@ cp -f AL/*.h include/AL/
 
 %build
 ./autogen.sh
-CFLAGS="%{rpmcflags} -I%{_includedir} \
-       -fexpensive-optimizations       -funroll-all-loops \
-       -funroll-loops                  -fomit-frame-pointer \
-       -finline-functions              -ffast-math "
-export CFLAGS
-
-LDFLAGS="-L%{_libdir}" ; export LDFLAGS
-
 ./configure \
        --enable-prefix=%{_prefix} \
        --enable-optimization \
@@ -103,18 +94,13 @@ LDFLAGS="-L%{_libdir}" ; export LDFLAGS
        --enable-smpeg \
        --enable-capture \
        --with-gcc=%{__cc}
-
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT/%{_prefix}
-
-gzip -9nf TODO NOTES ChangeLog CREDITS COPYING
-
-cd $RPM_BUILD_ROOT/%{_libdir}
-ln -sf libopenal.so.0.0.6 libopenal.so.0
-ln -sf libopenal.so.0.0.6 libopenal.so
+%{__make} install DESTDIR=$RPM_BUILD_ROOT%{_prefix}/
+ln -sf libopenal.so.0.0.6 $RPM_BUILD_ROOT%{_libdir}/libopenal.so
+gzip -9nf TODO NOTES ChangeLog CREDITS
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -125,11 +111,12 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc *.gz
-%{_libdir}/*so*
+%{_libdir}/*.so.*
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/AL/*
+%{_includedir}/AL
+%{_libdir}/*.so
 
 %files static
 %defattr(644,root,root,755)
This page took 0.125491 seconds and 4 git commands to generate.