Commit 4c074d45 authored by Simon Morlat's avatar Simon Morlat

improve specfile

parent af119e5c
......@@ -17,6 +17,12 @@ rpm:
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841>
TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz
rpm-novideo:
$(MAKE) dist
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841>
TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec --without video $(PACKAGE)-$(VERSION).tar.gz
# `make package'
if WITH_EPM
......
# -*- rpm-spec -*-
#
# mediastreamer2 -- A mediastreaming library for telephony applications
# mediastreamer2 -- A media streaming library for telephony applications
#
%ifarch %ix86
......@@ -46,13 +46,25 @@ develop programs using the mediastreamer2 library.
%endif
%define mediastreamer2_cflags %mediastreamer2_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing
%define opt_with() %{expand:%%global with_%{1} %%{?_with_%{1}:1}%%{?!_with_%{1}:0}}
%define opt_without() %{expand:%%global with_%{1} %%{!?_without_%{1}:1}%%{?_without_%{1}:0}}
%opt_with video - build with video features
%define have_video %{?_with_video:1}%{!?_with_video:0}
%prep
%setup -q
%build
%configure \
--enable-gtk-doc=no \
--enable-shared --enable-static
options="--enable-shared --enable-static"
%if !%{have_video}
options="$options --disable-video"
%endif
%configure $options
make -j$RPM_BUILD_NCPUS CFLAGS="%mediastreamer2_cflags" CXXFLAGS="%mediastreamer2_cflags"
%install
......@@ -64,17 +76,19 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_libdir}/*.so.*
/usr/share/images/nowebcamCIF.jpg
%{_libexecdir}
%files devel
%defattr(-,root,root,-)
%doc docs/html
%{_libdir}/*.la
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}
%{_docdir}
%changelog
* Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
......
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