blob: 12a8f1e37700b20c783b8ee0b6e68f28dcd6b0f6 (
plain)
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
76
77
78
79
80
81
82
83
84
85
86
87
|
#
# spec file for package libosmo-dsp
#
# Copyright (c) 2017 Walter Fey DL8FCL
#
# This file is under MIT license
%define libname libosmodsp0
Name: libosmo-dsp
Version: @VERSION@
Release: 0
Summary: SDR DSP primitives
License: GPL-2.0-only
Group: Productivity/Hamradio/Other
URL: https://osmocom.org/projects/libosmo-dsp
Source: %{name}-%{version}.tar.xz
Patch0: HTML_TIMESTAMP.diff
BuildRequires: automake >= 1.6
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: libtool >= 2
BuildRequires: pkgconfig
BuildRequires: texlive-latex
BuildRequires: pkgconfig(fftw3f) >= 3.2
%description
A library with SDR DSP primitives
%package -n %{libname}
Summary: SDR DSP primitives
Group: System/Libraries
%description -n %{libname}
A library with SDR DSP primitives
%package devel
Summary: SDR DSP primitives
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
A library with SDR DSP primitives headers
%package doc
Summary: SDR DSP primitives - Documentation
Group: Documentation/HTML
Requires: %{libname} = %{version}
BuildArch: noarch
%description doc
A library with SDR DSP primitives headers - Documentation
%prep
%setup -q
%patch0 -p1
%build
echo "%version" >.tarball-version
autoreconf --force --install
%configure --disable-static --includedir="%{_includedir}/%{name}"
make %{?_smp_mflags}
%install
%make_install
rm -f "%{buildroot}/%{_libdir}"/*.la
%fdupes -s %{buildroot}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/libosmodsp.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libosmodsp.so
%{_includedir}/%name/
%{_libdir}/pkgconfig/libosmodsp.pc
%files doc
%defattr(-,root,root)
%doc %{_datadir}/doc/libosmodsp
%exclude %{_datadir}/doc/libosmodsp/html/*.log
%changelog
|