blob: 8d0c6bd6dee17638715633a8479fd31860c2a3b0 [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001#
2# spec file for package libccrtp (Version 1.6.2)
3#
4# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
5#
6# All modifications and additions to the file contributed by third parties
7# remain the property of their copyright owners, unless otherwise agreed
8# upon. The license for this file, and modifications and additions to the
9# file, is the same license as for the pristine package itself (unless the
10# license for the pristine package is not an Open Source License, in which
11# case the license is the MIT License). An "Open Source License" is a
12# license that conforms to the Open Source Definition (Version 1.9)
13# published by the Open Source Initiative.
14
15# Please submit bugfixes or comments via http://bugs.opensuse.org/
16#
17
18# norootforbuild
19
20
21Name: libccrtp
22BuildRequires: commoncpp2-devel gcc-c++ openssl-devel pkgconfig cmake
23Url: http://www.gnu.org/software/ccrtp/
24License: GPL v3 or later
25Group: System/Libraries
26BuildRoot: %{_tmppath}/%{name}-%{version}-build
27AutoReqProv: on
28Summary: A Common C++ Class Framework for RTP Packets
29Version: @VERSION@
30Release: 2
31Source0: ccrtp-%{version}.tar.bz2
32Source1: rpmlintrc
33
34%description
35The ccrtp package offers a generic framework for sending and receiving
36real-time streaming data over UDP packets using sending and receiving
37packet queues.
38
39
40
41Authors:
42--------
43 David Sugar <dyfet@ostel.com>
44 Frederico Montesino Pouzols <p5087@quintero.fie.us.es>
45
46%package -n libccrtp2
47License: GPL v3 or later
48Group: System/Libraries
49Summary: A Common C++ Class Framework for RTP Packets
50Provides: ccrtp = %{version}
51Provides: %{name} = %{version}
52Obsoletes: ccrtp < %{version}
53Obsoletes: %{name} < %{version}
54
55%description -n libccrtp2
56The ccrtp package offers a generic framework for sending and receiving
57real-time streaming data over UDP packets using sending and receiving
58packet queues.
59
60
61
62Authors:
63--------
64 David Sugar <dyfet@ostel.com>
65 Frederico Montesino Pouzols <p5087@quintero.fie.us.es>
66
67%package devel
68License: GPL v3 or later
69Summary: Include-files and documentation for ccrtp
70Group: Development/Libraries/Other
71Requires: %{name} = %{version} commoncpp2-devel
72PreReq: %install_info_prereq
73
74%description devel
75This package contains files needed when developing applications using
76ccrtp
77
78
79
80Authors:
81--------
82 David Sugar <dyfet@ostel.com>
83 Frederico Montesino Pouzols <p5087@quintero.fie.us.es>
84
85%prep
86%setup -q -n ccrtp-%version
87
88%build
89mkdir build
90cd build
91
92cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
93 -DSYSCONFDIR=%{_sysconfdir} \
94 -DMANDIR=%{_mandir} \
95 -DCMAKE_VERBOSE_MAKEFILE=TRUE \
96 -DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
97 -DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
98 ..
99
100make %{?_smp_mflags}
101
102
103%install
104cd build
105make install DESTDIR=$RPM_BUILD_ROOT
106
107%clean
108rm -rf $RPM_BUILD_ROOT;
109
110%post -n libccrtp2 -p /sbin/ldconfig
111
112%postun -n libccrtp2 -p /sbin/ldconfig
113
114%files -n libccrtp2
115%defattr(-,root,root,0755)
116%_libdir/libccrtp*.so.*
117
118%files devel
119%defattr(-,root,root,0755)
120%doc AUTHORS COPYING NEWS README TODO ChangeLog
121%_libdir/libccrtp*.so
122%_libdir/pkgconfig/libccrtp.pc
123%dir %{_includedir}/ccrtp
124%{_includedir}/ccrtp/*.h
125%{_infodir}/ccrtp.info*
126
127%post devel
128%install_info --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz
129
130%postun devel
131%install_info_delete --info-dir=%{_infodir} %{_infodir}/ccrtp.info.gz
132
133%changelog