| 1 |
# |
| 2 |
# Copyright (C) 2014 Mario Stephan <[email protected]> |
| 3 |
# |
| 4 |
%define name knowthelist |
| 5 |
|
| 6 |
%define qmake qmake-qt4 |
| 7 |
|
| 8 |
%if 0%{?suse_version} |
| 9 |
%define qmake /usr/bin/qmake |
| 10 |
%endif |
| 11 |
%if 0%{?suse_version} >=1310 |
| 12 |
%define qmake /usr/%_lib/qt5/bin/qmake |
| 13 |
%endif |
| 14 |
%if 0%{?fedora_version} >= 20 |
| 15 |
%define qmake /usr/bin/qmake-qt5 |
| 16 |
%endif |
| 17 |
|
| 18 |
Summary: awesome party music player |
| 19 |
Name: %{name} |
| 20 |
License: LGPL-3.0+ |
| 21 |
URL: https://github.com/knowthelist/knowthelist |
| 22 |
Version: 2.3.0 |
| 23 |
Release: 1 |
| 24 |
Group: Multimedia |
| 25 |
Source: %{name}_%{version}.orig.tar.gz |
| 26 |
Packager: Mario Stephan <[email protected]> |
| 27 |
Distribution: %{distr} |
| 28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
| 29 |
|
| 30 |
%if 0%{?suse_version} && 0%{?suse_version} <1310 |
| 31 |
BuildRequires: libqt4-devel >= 4.8 qwt6-devel |
| 32 |
BuildRequires: pkgconfig(gstreamer-0.10) |
| 33 |
BuildRequires: update-desktop-files |
| 34 |
BuildRequires: libtag-devel |
| 35 |
Requires: libqt4-qtbase |
| 36 |
Requires: gstreamer-10-plugins-base |
| 37 |
Requires: gstreamer-10-plugins-ugly |
| 38 |
Requires: gstreamer-10-plugins-good |
| 39 |
Requires: gstreamer-10-plugins-bad |
| 40 |
Requires: libgstreamer-10-0 |
| 41 |
Requires: gstreamer-10 |
| 42 |
%endif |
| 43 |
%if 0%{?suse_version} >=1310 |
| 44 |
BuildRequires: taglib-devel |
| 45 |
BuildRequires: pkgconfig(gstreamer-1.0) |
| 46 |
BuildRequires: libqt5-qtbase-devel |
| 47 |
BuildRequires: libqt5-qttools |
| 48 |
BuildRequires: update-desktop-files |
| 49 |
Requires: gstreamer-plugins-bad |
| 50 |
Requires: gstreamer-plugins-base |
| 51 |
Requires: gstreamer-plugins-ugly |
| 52 |
Requires: gstreamer-plugins-good |
| 53 |
Requires: gstreamer |
| 54 |
Requires: libqt5-qtbase |
| 55 |
%endif |
| 56 |
%if 0%{?suse_version} >=1320 |
| 57 |
BuildRequires: taglib-devel |
| 58 |
BuildRequires: pkgconfig(gstreamer-1.0) |
| 59 |
BuildRequires: libqt5-qtbase-devel |
| 60 |
BuildRequires: libqt5-linguist |
| 61 |
BuildRequires: update-desktop-files |
| 62 |
Requires: gstreamer-plugins-bad |
| 63 |
Requires: gstreamer-plugins-base |
| 64 |
Requires: gstreamer-plugins-ugly |
| 65 |
Requires: gstreamer-plugins-good |
| 66 |
Requires: gstreamer |
| 67 |
Requires: libqt5-qtbase |
| 68 |
%endif |
| 69 |
%if 0%{?fedora_version} >= 20 |
| 70 |
BuildRequires: taglib-devel |
| 71 |
BuildRequires: pkgconfig(gstreamer-1.0) |
| 72 |
BuildRequires: qt5-qtbase-devel |
| 73 |
BuildRequires: qt5-qttools-devel |
| 74 |
BuildRequires: qt-devel >= 5.0 |
| 75 |
Requires: qt5-qtbase |
| 76 |
Requires: gstreamer1-plugins-base |
| 77 |
Requires: gstreamer1-plugins-ugly |
| 78 |
Requires: gstreamer1-plugins-good |
| 79 |
Requires: gstreamer1-plugins-bad-free |
| 80 |
Requires: gstreamer1 |
| 81 |
%endif |
| 82 |
|
| 83 |
BuildRequires: glib2-devel |
| 84 |
BuildRequires: gcc-c++ |
| 85 |
BuildRequires: alsa-devel |
| 86 |
|
| 87 |
Requires: taglib |
| 88 |
Requires: alsa |
| 89 |
|
| 90 |
|
| 91 |
%prep |
| 92 |
%setup |
| 93 |
%build |
| 94 |
%{qmake} -makefile %{name}.pro |
| 95 |
%{qmake} |
| 96 |
make |
| 97 |
|
| 98 |
%install |
| 99 |
%{__install} -Dm 755 -s %{name} %{buildroot}%{_bindir}/%{name} |
| 100 |
%{__install} -Dm 644 dist/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop |
| 101 |
%{__install} -Dm 644 dist/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png |
| 102 |
%if 0%{?suse_version} > 0 |
| 103 |
%suse_update_desktop_file -r %{name} AudioVideo Player |
| 104 |
%endif |
| 105 |
|
| 106 |
%clean |
| 107 |
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} |
| 108 |
|
| 109 |
|
| 110 |
%files |
| 111 |
%defattr(-,root,root,-) |
| 112 |
%{_bindir}/* |
| 113 |
%{_datadir}/applications/%{name}.desktop |
| 114 |
%{_datadir}/pixmaps/%{name}.png |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
%description |
| 119 |
Easy to use for all party guests |
| 120 |
Quick search for tracks in collection |
| 121 |
Two players with separate playlists |
| 122 |
Mixer with fader, 3 channel EQ and gain |
| 123 |
Auto fader and auto gain |
| 124 |
Trackanalyser search for song start/end and gain setting |
| 125 |
Auto DJ function with multiple filters for random play |
| 126 |
Monitor player for pre listen tracks (via 2nd sound card e.g. USB) |
| 127 |
|
| 128 |
%changelog |
| 129 |
* Sun Sep 19 2014 Mario Stephan <[email protected]> |
| 130 |
- 2.3.0 |
| 131 |
- Made all compatible with Qt5 and Gstreamer-1.0. |
| 132 |
- Add an ALL node to filter results in case of a manageable number of tracks are found |
| 133 |
- Changed ModeSelector style and moved to tree header |
| 134 |
- Included 'year' tag into quick search |
| 135 |
* Sun Sep 14 2014 Mario Stephan <[email protected]> |
| 136 |
- 2.2.4 |
| 137 |
- Fixed a bug which prevent correct monitoring of changes |
| 138 |
- Improved quick search in collection: added search in genre, multiple |
| 139 |
strings |
| 140 |
- Changed alignment of some display controls |
| 141 |
- Allow more audio file formates |
| 142 |
- Added a mutex to get more thread safety for database access |
| 143 |
* Tue Aug 26 2014 Mario Stephan <[email protected]>- 2.2.3 |
| 144 |
- Get rid of dependency to Boost |
| 145 |
- Bugfix where adding a song caused a segmentation fault |
| 146 |
- Switched to Homebrew package installer for MacOS |
| 147 |
- Set CUE button to untranslatable |
| 148 |
- Translation updates |
| 149 |
* Wed Aug 06 2014 Mario Stephan <[email protected]> |
| 150 |
- 2.2.0 |
| 151 |
- Added a new left side tab "Lists" to manage lists, dynamic and stored lists |
| 152 |
- Added a new feature to handle track ratings |
| 153 |
- Added a combo box for AutoDJ artist and genre filters to be able to select also from a list |
| 154 |
- Added a new way in how to add and remove items of AutoDj and lists |
| 155 |
- Added "Open File Location" at playlist context menu |
| 156 |
- Added a playlist info label (count,time) to player |
| 157 |
- Added French translation (thanks to Geiger David and Adrien D.) |
| 158 |
- Changed to a better way to summarise count and length of tracks for AutoDJ |
| 159 |
- Optimized for smaller screens |
| 160 |
- Fix to be more flexible for empty tags |
| 161 |
- Enhanced algorithm to fill playlist and simplified handling of current and next item |
| 162 |
- Fixed some size issues and cosmetical issues |
| 163 |
- Stabilized to avoid crashed in some cases |
| 164 |
|
| 165 |
* Thu Jul 03 2014 Mario Stephan <[email protected]> |
| 166 |
- 2.1.3 |
| 167 |
- Added new widget ModeSelector to select collection tree mode |
| 168 |
- Added a counter for played songs |
| 169 |
- New: Generate a default cover image if the tag provides none |
| 170 |
- Optimized: gain dial moves smoothly now to avoid hard skips of volume |
| 171 |
- Optimized function to decouple database requests from GUI activities |
| 172 |
- Optimized for size scaling of form |
| 173 |
* Tue Jun 10 2014 Mario Stephan <[email protected]> |
| 174 |
- 2.1.2 |
| 175 |
- Added translation for hu_HU (thanks to László Farkas) |
| 176 |
- AutoDJ panel rearrangements, new record case stack display added |
| 177 |
- AutoDJ names settings in settings dialog added |
| 178 |
* Tue Jun 03 2014 Mario Stephan <[email protected]> |
| 179 |
- 2.1.1 |
| 180 |
- Add localization, cs_CZ (thanks to Pavel Fric), de_DE |
| 181 |
* Thu May 29 2014 Mario Stephan <[email protected]> |
| 182 |
- 2.1.0 |
| 183 |
- First Release |
| 184 |
|
| 185 |
|