rpms/osgal/FC-5 osgal.spec,1.5,1.6
Christopher Stone (xulchris)
fedora-extras-commits at redhat.com
Mon Jan 29 23:00:00 UTC 2007
Author: xulchris
Update of /cvs/extras/rpms/osgal/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1478/FC-5
Modified Files:
osgal.spec
Log Message:
build with RPM_OPT_FLAGS
Index: osgal.spec
===================================================================
RCS file: /cvs/extras/rpms/osgal/FC-5/osgal.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- osgal.spec 15 Oct 2006 04:15:09 -0000 1.5
+++ osgal.spec 29 Jan 2007 22:59:30 -0000 1.6
@@ -1,14 +1,16 @@
Name: osgal
Version: 20060903
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Adapts OpenSceneGraph to use OpenAL++
+
Group: System Environment/Libraries
License: LGPL
URL: http://www.vrlab.umu.se/research/osgAL
Source0: http://download.gna.org/underware/sources/%{name}-cvs-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-cvs-%{version}-%{release}-root-%(%{__id_u} -n)
+
BuildRequires: OpenSceneGraph-devel openalpp-devel freealut-devel libvorbis-devel
-BuildRequires: libGL-devel autoconf automake libtool
+BuildRequires: libGL-devel libtool
%description
osgAL is a toolkit for handling spatial (3D) sound in the OpenSceneGraph
@@ -24,30 +26,41 @@
This package contains headers and libraries required to build applications
that use osgAL.
+
%prep
%setup -q -n %{name}-cvs-%{version}
autoreconf --force --install
# Fix rpmlint errors
-%{__chmod} -x AUTHORS COPYING NEWS README
+chmod -x AUTHORS COPYING NEWS README
+
%build
%configure --disable-static
-%{__make} %{?_smp_mflags}
+CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
+
%install
-%{__rm} -rf %{buildroot}
-%{__make} install DESTDIR=%{buildroot}
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# remove libtool archive
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+
%check
-%{__make} %{?_smp_mflags} check
+make check
+
%clean
-%{__rm} -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
+
%post -p /sbin/ldconfig
+
%postun -p /sbin/ldconfig
+
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
@@ -59,9 +72,17 @@
%{_includedir}/osgAL
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
-%exclude %{_libdir}/*.la
+
%changelog
+* Mon Jan 29 2007 Christopher Stone <chris.stone at gmail.com> 20060903-2
+- Whitespace cleanups
+- Remove unncessary BuildRequires
+- Remove system command macros
+- Use $RPM_BUILD_ROOT instead of %%{buildroot}
+- Build with $RPM_OPT_FLAGS
+- Remove libtool archive instead of %%excluding it
+
* Sat Oct 14 2006 Christopher Stone <chris.stone at gmail.com> 20060903-1
- Upstream sync
More information about the fedora-extras-commits
mailing list