# http://git.osmocom.org/osmo-fl2k # https://github.com/osmocom/osmo-fl2k/ %global git_commit f8cdd64b7607f43e9813d60f473905c679bb4c19 %global git_date 20230403 %global git_short_commit %(echo %{git_commit} | cut -c -8) %global git_suffix %{git_date}git%{git_short_commit} Name: osmo-fl2k URL: https://osmocom.org/projects/osmo-fl2k/wiki Version: 0.1.1^%{git_suffix} Release: 5%{?dist} License: GPLv2+ and GPLv3+ BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: libusbx-devel Requires: systemd-udev Summary: Turns FL2000-based USB 3.0 to VGA adapters into low cost DACs Source0: https://github.com/osmocom/osmo-fl2k/archive/%{git_commit}/%{name}-%{git_suffix}.tar.gz Patch0: osmo-fl2k-0.1.1-lib-version-fix.patch %description Turns FL2000-based USB 3.0 to VGA adapters into low cost DACs. %package libs Summary: Libraries for osmo-fl2k %description libs Libraries for osmo-fl2k. %package devel Summary: Development files for osmo-fl2k Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Development files for osmo-fl2k. %prep %autosetup -p1 -n %{name}-%{git_commit} %build %cmake %cmake_build %install %cmake_install # Remove static objects rm -f %{buildroot}%{_libdir}/libosmo-fl2k.a # Fix udev rule sed -i 's/MODE:="0666"/MODE:="0660", ENV{ID_SOFTWARE_RADIO}="1"/' ./osmo-fl2k.rules install -Dpm 644 ./osmo-fl2k.rules %{buildroot}%{_prefix}/lib/udev/rules.d/10-osmo-fl2k.rules %ldconfig_scriptlets %files %license COPYING %{_bindir}/fl2k_file %{_bindir}/fl2k_fm %{_bindir}/fl2k_tcp %{_bindir}/fl2k_test %{_prefix}/lib/udev/rules.d/10-osmo-fl2k.rules %files libs %doc AUTHORS README.md %license COPYING %{_libdir}/*.so.* %files devel %{_libdir}/pkgconfig/* %{_includedir}/* %{_libdir}/*.so %changelog * Thu Jul 18 2024 Fedora Release Engineering - 0.1.1^20230403gitf8cdd64b-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.1.1^20230403gitf8cdd64b-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.1.1^20230403gitf8cdd64b-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.1.1^20230403gitf8cdd64b-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Apr 3 2023 Jaroslav Škarvada - 0.1.1^20230403gitf8cdd64b-1 - New snapshot * Thu Jan 19 2023 Fedora Release Engineering - 0.1.1-0.15.20211018git197f421c - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.1.1-0.14.20211018git197f421c - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.1.1-0.13.20211018git197f421c - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Oct 18 2021 Jaroslav Škarvada - 0.1.1-0.12.20211018git197f421c - New version Resolves: rhbz#2014756 - Switched to github mirror * Thu Jul 22 2021 Fedora Release Engineering - 0.1.1-0.11.20190501gitdf33203d - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.1.1-0.10.20190501gitdf33203d - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Aug 5 2020 Jaroslav Škarvada - 0.1.1-0.9.20190501gitdf33203d - Fixed FTBFS Resolves: rhbz#1865184 * Sat Aug 01 2020 Fedora Release Engineering - 0.1.1-0.8.20190501gitdf33203d - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.1.1-0.7.20190501gitdf33203d - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Jeff Law - 0.1.1-0.6.20190501gitdf33203d - Fix inline vs static inline issue exposed by LTO * Wed Jan 29 2020 Fedora Release Engineering - 0.1.1-0.5.20190501gitdf33203d - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.1.1-0.4.20190501gitdf33203d - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue May 7 2019 Jaroslav Škarvada - 0.1.1-0.3.20190501gitdf33203d - Updated according to the review * Tue May 7 2019 Jaroslav Škarvada - 0.1.1-0.2.20190501gitdf33203d - Updated according to the review * Wed May 1 2019 Jaroslav Škarvada - 0.1.1-0.1.20190501gitdf33203d - Initial version