Changeset 1175:13a3c66dd596 in mediastreamer2


Ignore:
Timestamp:
Oct 18, 2010 10:31:09 PM (3 years ago)
Author:
Simon Morlat <simon.morlat@…>
Branch:
default
Message:

improve specfile

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r856 r1175  
    1717# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841> 
    1818        TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz 
     19 
     20rpm-novideo: 
     21        $(MAKE) dist 
     22# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841> 
     23        TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec --without video $(PACKAGE)-$(VERSION).tar.gz  
     24 
    1925 
    2026# `make package' 
  • mediastreamer2.spec.in

    r905 r1175  
    11# -*- rpm-spec -*- 
    22#  
    3 # mediastreamer2 -- A mediastreaming library for telephony applications 
     3# mediastreamer2 -- A media streaming library for telephony applications 
    44#  
    55 
     
    4747%define mediastreamer2_cflags %mediastreamer2_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing 
    4848 
     49 
     50%define opt_with() %{expand:%%global with_%{1} %%{?_with_%{1}:1}%%{?!_with_%{1}:0}} 
     51%define opt_without() %{expand:%%global with_%{1} %%{!?_without_%{1}:1}%%{?_without_%{1}:0}} 
     52 
     53%opt_with video       - build with video features 
     54 
     55%define have_video %{?_with_video:1}%{!?_with_video:0} 
     56 
    4957%prep 
    5058%setup -q 
    5159 
    5260%build 
    53 %configure \ 
    54 --enable-gtk-doc=no \ 
    55 --enable-shared --enable-static 
     61options="--enable-shared --enable-static" 
     62%if !%{have_video} 
     63options="$options --disable-video" 
     64%endif 
     65 
     66%configure $options 
     67         
    5668make -j$RPM_BUILD_NCPUS CFLAGS="%mediastreamer2_cflags" CXXFLAGS="%mediastreamer2_cflags" 
    5769 
     
    6577%files 
    6678%defattr(-,root,root,-) 
    67 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO 
     79%doc AUTHORS COPYING ChangeLog INSTALL NEWS README 
    6880%{_libdir}/*.so.* 
     81/usr/share/images/nowebcamCIF.jpg 
     82%{_libexecdir} 
    6983 
    7084%files devel 
    7185%defattr(-,root,root,-) 
    72 %doc docs/html 
    7386%{_libdir}/*.la 
    7487%{_libdir}/*.a 
     
    7689%{_libdir}/pkgconfig/*.pc 
    7790%{_includedir} 
     91%{_docdir} 
    7892 
    7993%changelog 
Note: See TracChangeset for help on using the changeset viewer.