source: mediastreamer2/mediastreamer2.spec.in @ 1175:13a3c66dd596

Last change on this file since 1175:13a3c66dd596 was 1175:13a3c66dd596, checked in by Simon Morlat <simon.morlat@…>, 3 years ago

improve specfile

File size: 2.5 KB
Line 
1# -*- rpm-spec -*-
2#
3# mediastreamer2 -- A media streaming library for telephony applications
4#
5
6%ifarch %ix86
7%define         mediastreamer2_cpu      pentium4
8%endif
9
10Summary:        Audio/Video real-time streaming
11Name:           mediastreamer
12Version:        @MEDIASTREAMER_VERSION@
13Release:        1
14License:        LGPL
15Group:          Applications/Communications
16URL:            http://linphone.org/mediastreamer2/
17Source0:        %{name}-@MEDIASTREAMER_VERSION@.tar.gz
18BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
19%ifarch %ix86
20BuildArch:      i686
21%endif
22
23%description
24Mediastreamer2 is a GPL licensed library to make audio and video
25real-time streaming and processing. Written in pure C, it is based
26upon the oRTP library.
27
28%package        devel
29Summary:        Headers, libraries and docs for the mediastreamer2 library
30Group:          Development/Libraries
31Requires:       %{name} = %{version}-%{release}
32
33%description    devel
34Mediastreamer2 is a GPL licensed library to make audio and video
35real-time streaming and processing. Written in pure C, it is based
36upon the ortp library.
37
38This package contains header files and development libraries needed to
39develop programs using the mediastreamer2 library.
40
41%ifarch %ix86
42%define mediastreamer2_arch_cflags -malign-double -march=i686 -mcpu=%{mediastreamer2_cpu}
43%else
44# Must be non-empty
45%define mediastreamer2_arch_cflags -Wall
46%endif
47%define mediastreamer2_cflags %mediastreamer2_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fstrict-aliasing
48
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
57%prep
58%setup -q
59
60%build
61options="--enable-shared --enable-static"
62%if !%{have_video}
63options="$options --disable-video"
64%endif
65
66%configure $options
67       
68make -j$RPM_BUILD_NCPUS CFLAGS="%mediastreamer2_cflags" CXXFLAGS="%mediastreamer2_cflags"
69
70%install
71rm -rf $RPM_BUILD_ROOT
72%makeinstall
73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
78%defattr(-,root,root,-)
79%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
80%{_libdir}/*.so.*
81/usr/share/images/nowebcamCIF.jpg
82%{_libexecdir}
83
84%files devel
85%defattr(-,root,root,-)
86%{_libdir}/*.la
87%{_libdir}/*.a
88%{_libdir}/*.so
89%{_libdir}/pkgconfig/*.pc
90%{_includedir}
91%{_docdir}
92
93%changelog
94* Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
95- Add to mediastreamer2 distribution with "make rpm" target
Note: See TracBrowser for help on using the repository browser.