Package asunder: Specfile

Name: asunder
Version: 3.0.1
Release: alt1

Summary: Audio CD ripper and encoder for Linux
License: GPL-2.0
Group: Sound
Url: http://littlesvr.ca/%name/index.php

Source: http://littlesvr.ca/%name/releases/%name-%version.tar.bz2
Patch: %name-1.5-fix-desktop-file-categories.patch
Patch1: %name-2.4-alt-lfs.patch

Requires: cdparanoia
Requires: vorbis-tools
Requires: lame
Requires: flac

BuildPreReq: libgtk+2-devel >= 2.4.0
BuildPreReq: glib2-devel >= 2.4.0
BuildPreReq: libcddb-devel >= 0.9.5
BuildRequires: intltool

%description
Asunder is a graphical Audio CD ripper and encoder for Linux. You can use
it to save tracks from an Audio CD as WAV, MP3, OGG, FLAC, OPUS and/or Wavpack.
Features:
    * Supports WAV, MP3, Ogg Vorbis, FLAC, Opus, Wavpack, Musepack, AAC, and Monkey's audio files
    * Uses CDDB to name and tag each track
    * Creates M3U playlists
    * Can encode to multiple formats in one session
    * Simultaneous rip and encode
    * Allows for each track to be by a different artist
    * Does not require a specific desktop environment

%prep
%setup
%patch
%patch1
#sed -i 's|AC_CHECK_INCLUDES_DEFAULT|AC_INCLUDES_DEFAULT|' configure.in
[ ! -d m4 ] && mkdir m4

%build
%autoreconf
%configure
%make_build

%install
%makeinstall_std

# Copy the icons to the standard location
mkdir -p %buildroot{%_liconsdir,%_iconsdir/hicolor/scalable/apps}
cp %buildroot%_pixmapsdir/%name.png %buildroot%_liconsdir/
cp %buildroot%_pixmapsdir/%name.svg %buildroot%_iconsdir/hicolor/scalable/apps/

%find_lang %name

%files -f %name.lang
%_bindir/%name
%_desktopdir/%name.desktop
%_pixmapsdir/%name.*
%_liconsdir/%name.png
%_iconsdir/hicolor/scalable/apps/%name.svg

%changelog
* Sat Jul 29 2023 Yuri N. Sedunov <aris@altlinux.org> 3.0.1-alt1
- 3.0.1

* Sun Jul 23 2023 Yuri N. Sedunov <aris@altlinux.org> 3.0-alt1
- 3.0

* Wed Oct 28 2020 Yuri N. Sedunov <aris@altlinux.org> 2.9.7-alt1
- 2.9.7

* Sat May 30 2020 Yuri N. Sedunov <aris@altlinux.org> 2.9.6-alt1
- 2.9.6

* Mon Oct 21 2019 Yuri N. Sedunov <aris@altlinux.org> 2.9.5-alt1
- 2.9.5

* Fri Aug 30 2019 Yuri N. Sedunov <aris@altlinux.org> 2.9.4-alt1
- 2.9.4

* Fri Apr 06 2018 Yuri N. Sedunov <aris@altlinux.org> 2.9.3-alt1
- 2.9.3

* Mon Nov 20 2017 Yuri N. Sedunov <aris@altlinux.org> 2.9.2-alt1
- 2.9.2

* Sat Jul 08 2017 Yuri N. Sedunov <aris@altlinux.org> 2.9.1-alt1
- 2.9.1

* Fri May 12 2017 Yuri N. Sedunov <aris@altlinux.org> 2.9-alt1
- 2.9

* Mon Feb 13 2017 Yuri N. Sedunov <aris@altlinux.org> 2.8.1-alt1
- 2.8.1

* Tue Oct 20 2015 Yuri N. Sedunov <aris@altlinux.org> 2.8-alt1
- 2.8

* Mon Mar 30 2015 Yuri N. Sedunov <aris@altlinux.org> 2.6-alt1
- 2.6

* Fri Jun 06 2014 Yuri N. Sedunov <aris@altlinux.org> 2.5-alt1
- 2.5

* Fri Jan 03 2014 Yuri N. Sedunov <aris@altlinux.org> 2.4-alt1
- 2.4

* Tue May 29 2012 Yuri N. Sedunov <aris@altlinux.org> 2.2-alt1
- 2.2

* Fri Aug 19 2011 Yuri N. Sedunov <aris@altlinux.org> 2.1-alt1
- updated to 2.1

* Mon Aug 31 2009 Alexey Rusakov <ktirf@altlinux.org> 1.6.2-alt2
- Replaced excess categories in the .desktop file, with the one that fits
  the application better.

* Sat Dec 06 2008 Alexey Rusakov <ktirf@altlinux.org> 1.6.2-alt1
- New version (1.6.2).
- Removed update_menus call, since it is no more needed.
- Added Packager tag.
- Updated the patch for .desktop file (more categories added).

* Sun Apr 27 2008 Alexey Rusakov <ktirf@altlinux.org> 1.5-alt2
- Fixes after repocop reports:
  - Mention additional categories in the .desktop file.
  - Copy the icon to the standard location.

* Sun Apr 27 2008 Alexey Rusakov <ktirf@altlinux.org> 1.5-alt1
- new version (1.5)

* Mon Feb 04 2008 Alexey Rusakov <ktirf@altlinux.org> 1.0.2-alt1
- New version (1.0.2).

* Sat Oct 13 2007 Alexey Rusakov <ktirf@altlinux.org> 0.9-alt2
- added runtime dependency on cdparanoia (ALT Bug #13112).
- added menus update in post/postun (ALT Bug #13113).

* Thu Oct 11 2007 Alexey Rusakov <ktirf@altlinux.org> 0.9-alt1
- new version (0.9)
- fixed the package group.

* Sat Sep 01 2007 Alexey Rusakov <ktirf@altlinux.org> 0.8.1-alt1
- Initial Sisyphus package