Name: sidetunes Version: 0.4.1 Release: 1%{?dist} Summary: Sync a music library into the iPhone Music app License: MIT URL: https://github.com/lacamar/%{name} Source0: %{name}-%{version}.tar.gz BuildRequires: cargo BuildRequires: gcc BuildRequires: anda-srpm-macros BuildRequires: cargo-rpm-macros BuildRequires: fontconfig-devel BuildRequires: desktop-file-utils BuildRequires: librsvg2-tools BuildRequires: systemd-rpm-macros BuildRequires: ffmpeg-free Requires: usbmuxd Requires: ffmpeg-free Requires: libimobiledevice-utils Requires: glib2 Requires: hicolor-icon-theme Obsoletes: rustunes < 0.3.0 Provides: rustunes = %{version}-%{release} Obsoletes: music-sync < 0.7.0 %description Desktop app, user service and command line tool that sync a local music library into the stock Music app on an iPhone over USB or Wi-Fi. %prep %autosetup %build %cargo_prep_online %cargo_build mkdir -p render for size in 16 32 48 64 128 256 512; do rsvg-convert -w "${size}" -h "${size}" packaging/%{name}.svg -o "render/%{name}-${size}.png" done %install install -Dm755 target/rpm/%{name} %{buildroot}%{_bindir}/%{name} install -d %{buildroot}%{bash_completions_dir} target/rpm/%{name} completions bash > %{buildroot}%{bash_completions_dir}/%{name} desktop-file-install --dir=%{buildroot}%{_datadir}/applications packaging/%{name}.desktop install -Dm644 packaging/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg for size in 16 32 48 64 128 256 512; do install -Dm644 "render/%{name}-${size}.png" \ "%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png" done install -Dm644 packaging/%{name}.service %{buildroot}%{_userunitdir}/%{name}.service install -d %{buildroot}%{_userpresetdir} echo "enable %{name}.service" > %{buildroot}%{_userpresetdir}/90-%{name}.preset %check desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %cargo_test -- -p %{name} %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun_with_restart %{name}.service %files %license LICENSE %doc README.md %{_bindir}/%{name} %{bash_completions_dir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_userunitdir}/%{name}.service %{_userpresetdir}/90-%{name}.preset %changelog * Mon Nov 16 2026 lacamar - 0.4.1-1 - Fix sync refused by downloaded podcasts * Mon Nov 16 2026 lacamar - 0.4.0-1 - Merge upstream rustunes 0.2.0 - Zsh and fish completions - Themed scrollbar, elided paths - Unicode-safe playlists and organiser - Safer sync, stats and device handling * Mon Nov 16 2026 lacamar - 0.3.0-1 - Initial package - Merge rustunes and music-sync