-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathyate-ipp.spec
75 lines (63 loc) · 1.92 KB
/
yate-ipp.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# to add a distro release tag run rpmbuild --define 'dist value'
# to suppress auto dependencies run rpmbuild --define 'nodeps 1'
%{!?dist:%define dist %{nil}}
%{?nodeps:%define no_auto_deps 1}
Summary: G.72x codecs for Yet Another Telephony Engine based on Intel IPP
Name: yate-ipp
Version: 0.0.1
Release: 1%{dist}
License: GPL
Packager: Paul Chitescu <[email protected]>
Source: http://yate.null.ro/%{name}-%{version}-1.tar.gz
Group: Applications/Communications
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
URL: http://yate.null.ro/
BuildRequires: gcc-c++
BuildRequires: yate-devel = 3.0.0
Requires: yate = 3.0.0
%define prefix /usr
%description
Yate is a telephony engine designed to implement PBX and IVR solutions
for small to large scale projects.
This module provides G.723 and G.729 codecs for Yate using Intel(R) IPP.
%files
%defattr(-, root, root)
%dir /usr/share/doc/%{name}-%{version}
%doc /usr/share/doc/%{name}-%{version}/README
/usr/local/lib/yate/g723codec.yate
/usr/local/lib/yate/g729codec.yate
%prep
%setup -q -n %{name}
%if "%{no_auto_deps}" == "1"
%define local_find_requires %{_builddir}/%{name}/local-find-requires
%define local_find_provides %{_builddir}/%{name}/local-find-provides
#
%{__cat} <<EOF >%{local_find_requires}
#! /bin/sh
grep -v '\.yate$' | %{__find_requires} | grep -v '^perl'
exit 0
EOF
#
%{__cat} <<EOF >%{local_find_provides}
#! /bin/sh
%{__find_provides} | grep -v '\.yate$'
exit 0
EOF
#
chmod +x %{local_find_requires} %{local_find_provides}
%define _use_internal_dependency_generator 0
%define __find_requires %{local_find_requires}
%define __find_provides %{local_find_provides}
%define __perl_requires /bin/true
%endif
%build
./configure --prefix=%{prefix} --sysconfdir=/etc --mandir=%{prefix}/share/man
make strip
%install
make install DESTDIR=%{buildroot}
%clean
# make clean
rm -rf %{buildroot}
%changelog
* Wed Oct 13 2010 Paul Chitescu <[email protected]>
- Created specfile