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