diff options
author | Harald Welte <laforge@osmocom.org> | 2022-06-30 16:05:19 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-06-30 16:09:36 +0200 |
commit | 0b90f7b0e0ebeec49d543b3a88e56e204bd3336a (patch) | |
tree | d354f40b0c6f2f24278d2975ee0c3f5b71e31bf0 | |
parent | b9065dd6fdb8dacf1e7b507801a8a6623df79d01 (diff) |
import spec.in file for RPM based distributions
This imports the file from https://build.opensuse.org/package/show/home:mnhauke:osmocom:nightly/libosmo-dsp
so we can start auto-building the package also for RPM based
distributions in the official osmocom package feeds.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | contrib/libosmo-dsp.spec.in | 87 |
4 files changed, 94 insertions, 1 deletions
@@ -31,3 +31,4 @@ Doxyfile .*.swp doc/ +contrib/libosmocore.spec diff --git a/Makefile.am b/Makefile.am index 6b7140a..e611e06 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,7 +12,11 @@ $(top_srcdir)/.version: dist-hook: echo $(VERSION) > $(distdir)/.tarball-version -EXTRA_DIST = git-version-gen .version +EXTRA_DIST = \ + .version \ + contrib/libosmo-dsp.spec.in \ + git-version-gen \ + $(NULL) if HAVE_DOXYGEN diff --git a/configure.ac b/configure.ac index 4d98d75..76fc905 100644 --- a/configure.ac +++ b/configure.ac @@ -81,6 +81,7 @@ AC_CONFIG_HEADER(config.h) AC_OUTPUT( libosmodsp.pc + contrib/libosmo-dsp.spec include/Makefile include/osmocom/Makefile include/osmocom/dsp/Makefile diff --git a/contrib/libosmo-dsp.spec.in b/contrib/libosmo-dsp.spec.in new file mode 100644 index 0000000..12a8f1e --- /dev/null +++ b/contrib/libosmo-dsp.spec.in @@ -0,0 +1,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 |