[6674] | 1 | %define XNOISE_BIN %{_libexecdir}/%{name} |
---|
| 2 | |
---|
| 3 | Name: xnoise |
---|
[7891] | 4 | Version: 0.2.19 |
---|
[6674] | 5 | Release: 1%{?_dist_release} |
---|
| 6 | Summary: Tracklist-centric Media Player |
---|
| 7 | Summary(ja): トラックリストを中心とするメディアプレーヤー |
---|
| 8 | |
---|
| 9 | Group: Applications/Multimedia |
---|
| 10 | License: GPLv2+ with exceptions |
---|
| 11 | URL: http://www.xnoise-media-player.com/ |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | |
---|
[7638] | 15 | Source0: http://xnoise.googlecode.com/files/xnoise-%{version}.tar.gz |
---|
[6674] | 16 | Source1: xnoise_ja.po |
---|
| 17 | Source10: xnoise.sh |
---|
| 18 | |
---|
| 19 | BuildRequires: pkgconfig |
---|
| 20 | BuildRequires: gettext |
---|
| 21 | BuildRequires: glib2-devel >= 2.30.0 |
---|
| 22 | BuildRequires: gtk3-devel |
---|
[7638] | 23 | BuildRequires: gstreamer1-plugins-base-devel >= 1.0.1 |
---|
[6674] | 24 | BuildRequires: intltool |
---|
| 25 | BuildRequires: libxml2-devel >= 2.6.32 |
---|
| 26 | BuildRequires: libsoup-devel >= 2.26.0 |
---|
[7671] | 27 | BuildRequires: libtaginfo-devel >= 0.1.6 |
---|
[6674] | 28 | BuildRequires: perl-XML-Parser |
---|
| 29 | BuildRequires: sqlite3-devel >= 3.6 |
---|
| 30 | BuildRequires: taglib-devel >= 1.6.0 |
---|
| 31 | BuildRequires: unique-devel |
---|
[6914] | 32 | BuildRequires: vala-devel >= 0.16.0 |
---|
[6674] | 33 | BuildRequires: desktop-file-utils gettext intltool |
---|
| 34 | Requires: hicolor-icon-theme |
---|
[7671] | 35 | Requires: libtaginfo >= 0.1.6 |
---|
[6674] | 36 | # xnoise >= 0.1.14 bundles the plug-ins |
---|
| 37 | Provides: xnoise-plugins-core = %{version}-%{release} |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | Xnoise is a Gtk+ media player with a tracklist-centric design. The |
---|
| 41 | tracklist is a list of video or music tracks that are played one by |
---|
| 42 | one without being removed (right side of window). This gives you the |
---|
| 43 | possibility to enqueue any track in any order, regardless if they are |
---|
| 44 | on the same album or not. The tracks can be reordered at any time by |
---|
| 45 | using drag and drop. |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %package devel |
---|
| 49 | Summary: Development files for %{name} |
---|
| 50 | Summary(ja): %{name} の開発ファイル |
---|
| 51 | Group: Development/Libraries |
---|
| 52 | Requires: %{name} = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | %description devel |
---|
| 55 | The %{name}-devel package contains libraries and header files for |
---|
| 56 | developing applications that use %{name}. |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %prep |
---|
| 60 | %setup -q |
---|
| 61 | %{__cp} -f %{SOURCE1} po/ja.po |
---|
[6914] | 62 | #sed -i s/hu/hu\\nja/g po/LINGUAS |
---|
[7891] | 63 | sed -i -e '16,$d' -e '13d' data/misc/xnoise.desktop* |
---|
[6674] | 64 | |
---|
| 65 | %build |
---|
[7671] | 66 | %configure --enable-soundmenu2=no |
---|
[6674] | 67 | make %{?_smp_mflags} |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %install |
---|
| 71 | rm -rf $RPM_BUILD_ROOT |
---|
| 72 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 73 | |
---|
| 74 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
| 75 | |
---|
| 76 | # remove invalid locale file |
---|
| 77 | rm -rf $RPM_BUILD_ROOT%{_share}/locale/default |
---|
| 78 | |
---|
| 79 | ## wrapper install |
---|
| 80 | %__mkdir_p $RPM_BUILD_ROOT%{_libexecdir} |
---|
| 81 | %__mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{XNOISE_BIN} |
---|
| 82 | %{__install} -m 755 %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/%{name} |
---|
| 83 | |
---|
| 84 | %find_lang %{name} |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | %check |
---|
| 88 | make check |
---|
| 89 | desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/xnoise.desktop |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %post |
---|
| 93 | /sbin/ldconfig |
---|
| 94 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 95 | update-desktop-database &> /dev/null || : |
---|
| 96 | |
---|
| 97 | %postun |
---|
| 98 | /sbin/ldconfig |
---|
| 99 | if [ $1 -eq 0 ] ; then |
---|
| 100 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
| 101 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 102 | fi |
---|
| 103 | update-desktop-database &> /dev/null || : |
---|
| 104 | |
---|
| 105 | %posttrans |
---|
| 106 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 107 | |
---|
| 108 | |
---|
| 109 | %files -f %{name}.lang |
---|
| 110 | %defattr(-,root,root,-) |
---|
| 111 | %doc AUTHORS COPYING README |
---|
| 112 | %{XNOISE_BIN} |
---|
| 113 | %{_bindir}/xnoise |
---|
[7638] | 114 | %{_bindir}/xnoise_image_extractor_service |
---|
[6674] | 115 | # libxnoise.so *needs* to be in main package |
---|
| 116 | # otherwise plugins currently don't work |
---|
[7891] | 117 | #%exclude %{_libdir}/xnoise/libxnoisetest.so |
---|
[6674] | 118 | %{_libdir}/xnoise |
---|
[7444] | 119 | %{_libdir}/libxnoise.so* |
---|
[6674] | 120 | %{_mandir}/man1/xnoise.1* |
---|
| 121 | %{_datadir}/xnoise |
---|
| 122 | %{_datadir}/applications/xnoise.desktop |
---|
[7638] | 123 | %{_datadir}//dbus-1/services/org.gtk.xnoise.ImageExtractor.service |
---|
| 124 | %{_datadir}//dbus-1/services/org.gtk.xnoise.PlayerEngine.service |
---|
[6674] | 125 | %{_datadir}/icons/hicolor/* |
---|
[7638] | 126 | %{_datadir}/icons/ubuntu-mono-*/* |
---|
[6674] | 127 | |
---|
| 128 | %files devel |
---|
| 129 | %defattr(-,root,root,-) |
---|
| 130 | %{_includedir}/xnoise |
---|
[7891] | 131 | #%{_libdir}/libxnoise*.so* |
---|
[6674] | 132 | %{_libdir}/pkgconfig/xnoise-1.0.pc |
---|
| 133 | # make package own the vala API dir: |
---|
| 134 | # xnoise plugins don't have to be written in vala |
---|
| 135 | %dir %{_datadir}/vala |
---|
| 136 | %dir %{_datadir}/vala/vapi |
---|
| 137 | %{_datadir}/vala/vapi/xnoise-1.0.* |
---|
| 138 | |
---|
[7638] | 139 | %changelog |
---|
[7891] | 140 | * Sat Oct 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.19-1 |
---|
| 141 | - new upstream release |
---|
| 142 | - updated Source1 |
---|
| 143 | |
---|
[7671] | 144 | * Sun May 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.18-1 |
---|
| 145 | - new upstream release |
---|
| 146 | - updated Source1 |
---|
| 147 | - changed BuildRequires: libtaginfo-devel >= 0.1.6 |
---|
| 148 | - changed Rquires: libtaginfo >= 0.1.6 |
---|
| 149 | - fixed desktop error |
---|
| 150 | - deleted unrecognize option: --disable-ubuntuone |
---|
| 151 | |
---|
[7638] | 152 | * Mon Apr 29 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.17-1 |
---|
| 153 | - new upstream release |
---|
| 154 | - updated Source1 |
---|
| 155 | - changed BuildRequires: gstreamer-plugins-base-devel >= 0.10.23 to |
---|
| 156 | gstreamer1-plugins-base-devel >= 1.0.1 |
---|
| 157 | - added BuildRequires: libtaginfo-devel |
---|
| 158 | - added Requires: libtaginfo |
---|
| 159 | - fixed Source10 |
---|
[6674] | 160 | |
---|
[7444] | 161 | * Fri Feb 08 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.15-1 |
---|
| 162 | - new upstream release |
---|
| 163 | - updated Source1 |
---|
| 164 | |
---|
[7312] | 165 | * Fri Jan 11 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.14-1 |
---|
| 166 | - new upstream release |
---|
| 167 | - updated Source1 |
---|
| 168 | |
---|
[7104] | 169 | * Sat Nov 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.13-1 |
---|
| 170 | - new upstream release |
---|
| 171 | - updated Source1 |
---|
| 172 | |
---|
[6914] | 173 | * Thu Oct 04 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.12-1 |
---|
| 174 | - new upstream release |
---|
| 175 | - updated Source1 |
---|
| 176 | - deleted BuildRequires: libnotify-devel >= 0.7.0 |
---|
| 177 | - changed BuildRequires: vala-devel >= 0.15.0 to 0.16.0 |
---|
| 178 | |
---|
[6841] | 179 | * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.11-1 |
---|
| 180 | - new upstream release |
---|
| 181 | - updated Source1 |
---|
| 182 | - deleted %%configure option: --disable-magnatune |
---|
| 183 | |
---|
[6801] | 184 | * Sat Sep 08 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.9-1 |
---|
| 185 | - new upstream release |
---|
| 186 | - updated Source1 |
---|
| 187 | |
---|
[6752] | 188 | * Sat Aug 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.8-1 |
---|
| 189 | - new upstream release |
---|
| 190 | - updated Source1 |
---|
| 191 | - added %%configure option: --disable-magnatune |
---|
| 192 | |
---|
[6696] | 193 | * Fri Aug 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.5-1 |
---|
| 194 | - new upstream release |
---|
| 195 | - updated Source1 |
---|
| 196 | - added %%configure option: --disable-ubuntuone |
---|
| 197 | |
---|
[6674] | 198 | * Thu Aug 02 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.2.4-1 |
---|
| 199 | - initial build for VineSeed |
---|
| 200 | |
---|
| 201 | * Wed Oct 5 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.29-1 |
---|
| 202 | - Update to 0.1.29 |
---|
| 203 | |
---|
| 204 | * Wed Sep 21 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.28-1 |
---|
| 205 | - Update to 0.1.28 |
---|
| 206 | |
---|
| 207 | * Sat Sep 10 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.27-1 |
---|
| 208 | - Update to 0.1.27 |
---|
| 209 | |
---|
| 210 | * Thu Jul 28 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.26-1 |
---|
| 211 | - Update to 0.1.26 |
---|
| 212 | - Enable tests |
---|
| 213 | |
---|
| 214 | * Mon Apr 4 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.18-1 |
---|
| 215 | - Update to 0.1.18 |
---|
| 216 | |
---|
| 217 | * Sun Mar 13 2011 Michel Salim <salimma@fedoraproject.org> - 0.1.16-1 |
---|
| 218 | - Update to 0.1.16 |
---|
| 219 | - Now bundles the plugins, obsoleting xnoise-plugins-core |
---|
| 220 | |
---|
| 221 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.12-4 |
---|
| 222 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 223 | |
---|
| 224 | * Sat Nov 6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-3 |
---|
| 225 | - Own %%{_libdir}/xnoise for plugins |
---|
| 226 | |
---|
| 227 | * Sat Nov 6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-2 |
---|
| 228 | - invoke ldconfig on (un)install |
---|
| 229 | - remove %%clean section; only targeting F-14+ |
---|
| 230 | - re-enable deletion of invalid locale dir |
---|
| 231 | |
---|
| 232 | * Sat Nov 6 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.12-1 |
---|
| 233 | - Update to 0.1.12 |
---|
| 234 | - Specify the correct location for Vala API files in *.pc |
---|
| 235 | |
---|
| 236 | * Fri Jun 25 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.6-2 |
---|
| 237 | - Make xnoise-devel co-own Vala's VAPI dir |
---|
| 238 | - Remove invalid locale file |
---|
| 239 | |
---|
| 240 | * Wed Jun 23 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.6-1 |
---|
| 241 | - Update to final 0.1.6 release |
---|
| 242 | |
---|
| 243 | * Sat Apr 3 2010 Michel Salim <salimma@fedoraproject.org> - 0.1.2-0.1.331hg |
---|
| 244 | - Initial package |
---|
| 245 | |
---|