Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
osmosdr
osmosdr.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File osmosdr.spec of Package osmosdr
# # spec file for package osmosdr # # Copyright (c) 2012-2016 Wojciech Kazubski, wk@ire.pw.edu.pl # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?is_opensuse} || 0%{?fedora} %define build_docs 1 %else %define build_docs 0 %endif Name: osmosdr Version: 0.1.20130113 Release: 19.1 Summary: Support programs for OsmoSDR License: GPL-2.0 %if 0%{?suse_version} Group: Productivity/Hamradio/Other %endif %if 0%{?fedora} Group: Applications/Engineering %endif Source: libosmosdr-%{version}.tar.gz URL: http://sdr.osmocom.org/trac/wiki/rtl-sdr BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: cmake BuildRequires: udev %if 0%{?suse_version} == 1110 BuildRequires: libusb-1_0-devel %else BuildRequires: pkgconfig(libusb-1.0) %endif %if 0%{?suse_version} >= 1100 BuildRequires: fdupes %endif %if 0%{?fedora} >= 24 BuildRequires: ghostscript-core %endif %if %{build_docs} BuildRequires: doxygen texlive-latex graphviz %if 0%{?fedora} > 17 || 0%{?suse_version} > 1220 BuildRequires: texlive texlive-sectsty texlive-tocloft texlive-xtab texlive-multirow BuildRequires: texlive-helvetic texlive-times BuildRequires: texlive-latex-bin-bin texlive-texconfig texlive-metafont-bin BuildRequires: texlive-natbib texlive-float texlive-colortbl texlive-psnfss texlive-fancyhdr BuildRequires: texlive-makeindex-bin texlive-dvips BuildRequires: texlive-wasysym texlive-wasy BuildRequires: texlive-adjustbox BuildRequires: texlive-tabu texlive-caption %endif %endif %description Programs that controls OsmoSDR, the E4000 based software defined radio receiver. %if 0%{?suse_version} %define libname libosmosdr0 %else %define libname libosmosdr %endif %package -n %{libname} Summary: SDR driver for OsmoSDR Group: Hardware/Other %description -n %{libname} Library to run OsmoSDR, the E4000 based software defined radio receiver. %package devel Summary: Development files for osmo-sdr Group: Development/Libraries/Other Requires: %{name} = %{version}-%{release} %if 0%{?suse_version} Requires: libosmosdr0 = %{version}-%{release} %else Requires: libosmosdr = %{version}-%{release} %endif AutoReq: on %description devel Library headers for osmo-sdr driver. %package devel-doc Summary: Documentation for osmo-sdr Group: Development/Libraries/Other Requires: %{name}-devel = %{version}-%{release} AutoReq: on %if 0%{?suse_version} >= 1200 BuildArch: noarch %endif %description devel-doc Documentation for osmo-sdr driver. %prep %setup -q -n libosmosdr # remove buildtime from documentation sed -i 's|^HTML_TIMESTAMP = YES|HTML_TIMESTAMP = NO|' Doxyfile.in %build mkdir build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ %ifarch x86_64 -DLIB_SUFFIX=64 \ %endif -DINSTALL_UDEV_RULES=ON make %{?_smp_mflags} cd .. #create documentation %if %{build_docs} cp Doxyfile.in Doxyfile sed -i "s\@VERSION@\%{version}\1" Doxyfile doxygen cd doc/latex make pdf %endif %install cd build make DESTDIR=%{buildroot} install rm %{buildroot}%{_libdir}/libosmosdr.a %ifarch x86_64 mv %{buildroot}/usr/lib/pkgconfig %{buildroot}%{_libdir} %endif cd .. #move/reanme udev rules %if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19 mkdir -p %{buildroot}%{_udevrulesdir} mv %{buildroot}%{_sysconfdir}/udev/rules.d/osmosdr.rules %{buildroot}%{_udevrulesdir}/10-osmosdr.rules %else mv %{buildroot}%{_sysconfdir}/udev/rules.d/osmosdr.rules %{buildroot}%{_sysconfdir}/udev/rules.d/10-osmosdr.rules %endif #install documentation %if %{build_docs} mkdir -p %{buildroot}%{_docdir}/%{name}/pdf cp -r doc/html %{buildroot}%{_docdir}/%{name} cp -r doc/latex/*.pdf %{buildroot}%{_docdir}/%{name}/pdf %if 0%{?suse_version} >= 1100 %fdupes %{buildroot}%{_docdir}/%{name} %endif %endif %clean rm -rf %{buildroot} %if 0%{?suse_version} >= 1200 %post -n %{libname} /sbin/ldconfig %udev_rules_update %postun -n %{libname} /sbin/ldconfig %udev_rules_update %else %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %endif %files %defattr(-,root,root) %doc AUTHORS COPYING README %{_bindir}/osmo_sdr %if %{build_docs} %exclude %{_docdir}/%{name}/html %exclude %{_docdir}/%{name}/pdf %endif %files -n %{libname} %defattr(-,root,root) %{_libdir}/libosmosdr.so.* %if 0%{?suse_version} >= 1310 || 0%{?fedora} >= 19 %{_udevrulesdir}/10-osmosdr.rules %else %config(noreplace) %{_sysconfdir}/udev/rules.d/10-osmosdr.rules %endif %files devel %defattr(-,root,root) %{_libdir}/libosmosdr.so %{_includedir}/*.h %{_libdir}/pkgconfig/libosmosdr.pc %if %{build_docs} %files devel-doc %defattr(-,root,root) %{_docdir}/%{name}/html %{_docdir}/%{name}/pdf %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor