[521] | 1 | %define pversion 1.1.1 |
---|
| 2 | %define sversion 0.4.0 |
---|
| 3 | %define wsprefs WSoundPrefs-%{pversion} |
---|
| 4 | %define wmsound WSoundServer-%{sversion} |
---|
| 5 | |
---|
| 6 | Summary: Sound tools for WindowMaker |
---|
| 7 | Summary(ja): Window Maker 用のサウンド・ツール |
---|
| 8 | Name: WMSoundSet |
---|
| 9 | Version: %{pversion} |
---|
| 10 | License: GPL2 & OPL |
---|
| 11 | Release: 2%{?_dist_release} |
---|
| 12 | Group: User Interface/Desktops |
---|
| 13 | Source0: %{wsprefs}.tar.bz2 |
---|
| 14 | Source1: %{wmsound}.tar.bz2 |
---|
| 15 | Source2: wmsdefault.tar.gz |
---|
| 16 | Source3: VineSounds.tar.gz |
---|
| 17 | Source5: WSoundPrefs-%{pversion}.ja.po |
---|
| 18 | |
---|
| 19 | Patch0: patch-af |
---|
| 20 | Patch1: WSoundServer-0.4.0-WM-0.92.patch |
---|
| 21 | Patch2: WSoundServer-0.4.0-config.x86_64.patch |
---|
| 22 | |
---|
| 23 | Patch10: WSoundPrefs-%{pversion}-nls.vine.patch |
---|
| 24 | Patch11: WSoundPrefs-1.1.1-wsound.patch |
---|
| 25 | Patch12: WSoundPrefs-1.1.1-fix.patch |
---|
| 26 | Patch13: WSoundPrefs-1.1.1-WM-0.92.patch |
---|
| 27 | |
---|
| 28 | BuildRequires: xorg-x11-devel imake |
---|
| 29 | BuildRequires: WindowMaker-devel >= 0.92.0 |
---|
| 30 | BuildRequires: audiofile-devel |
---|
| 31 | Requires: WindowMaker >= 0.92.0 |
---|
| 32 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 33 | |
---|
| 34 | %description |
---|
| 35 | Sound tools for WindowMaker: |
---|
| 36 | WSoundPrefs-%{pversion} |
---|
| 37 | WSoundServer-%{sversion} |
---|
| 38 | wmsdefault (default sound set) |
---|
| 39 | |
---|
| 40 | %description -l ja |
---|
| 41 | Window Maker で 効果音の設定等を可能にするツール集です. |
---|
| 42 | 以下を収録しています. |
---|
| 43 | WSoundPrefs-%{pversion} |
---|
| 44 | WSoundServer-%{sversion} |
---|
| 45 | wmsdefault (wmsoundデフォルトの音源) |
---|
| 46 | WindowMaker-0.92 以上に対応しています. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q -a 1 -a 3 -c -n WMSoundSet |
---|
| 51 | cd %{wmsound} |
---|
| 52 | %patch0 -p0 -b .patch-af |
---|
| 53 | %patch1 -p0 -b .WM-0.92~ |
---|
| 54 | %patch2 -p0 -b .x86_64~ |
---|
| 55 | cd .. |
---|
| 56 | |
---|
| 57 | cd %{wsprefs} |
---|
| 58 | %patch10 -p1 -b .nls.vine |
---|
| 59 | %patch11 -p0 -b .wsound |
---|
| 60 | %patch12 -p1 -b .fix |
---|
| 61 | %patch13 -p1 -b .WM-0.92 |
---|
| 62 | cp %SOURCE5 po/ja.po |
---|
| 63 | cd .. |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | %build |
---|
| 67 | # make WSoundServer |
---|
| 68 | pushd %{wmsound} |
---|
| 69 | %configure --x-libraries=%{_libdir} --x-includes=%{_includedir}/X11 |
---|
| 70 | make |
---|
| 71 | popd |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | # make WSoundPrefs |
---|
| 75 | pushd %{wsprefs} |
---|
| 76 | cp ../%{wmsound}/wslib/{get-wsound-flags,wsound.h} src/ |
---|
| 77 | |
---|
| 78 | IMAKEINCLUDE="-I%{_datadir}/X11/config" xmkmf -a |
---|
| 79 | |
---|
| 80 | touch src/WSoundPrefs.man |
---|
| 81 | PATH=$PATH:. make\ |
---|
| 82 | PREFIX=%{_libdir}\ |
---|
| 83 | EXTRA_DEFINES="-DI18N -DHAVE_LIBINTL_H"\ |
---|
| 84 | EXTRA_INCLUDES=-I../../%{wmsound}/wslib\ |
---|
| 85 | EXTRA_LIBRARIES=-L../../%{wmsound}/wslib/.libs/ |
---|
| 86 | |
---|
| 87 | make -C po |
---|
| 88 | popd |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %install |
---|
| 92 | %define SYSDEFDIR $RPM_BUILD_ROOT/etc/X11/WindowMaker |
---|
| 93 | |
---|
| 94 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 95 | |
---|
| 96 | # Install WSoundPrefs |
---|
| 97 | cd %{wsprefs} |
---|
| 98 | make install PREFIX=$RPM_BUILD_ROOT%{_prefix}/lib/GNUstep |
---|
| 99 | mkdir -p $RPM_BUILD_ROOT%{_localedir}/ja/LC_MESSAGES/ |
---|
| 100 | make nlsdir=$RPM_BUILD_ROOT%{_localedir} -C po install |
---|
| 101 | cd .. |
---|
| 102 | |
---|
| 103 | # Install wmsound |
---|
| 104 | cd %{wmsound} |
---|
| 105 | %makeinstall |
---|
| 106 | cd .. |
---|
| 107 | |
---|
| 108 | # Install default sounds |
---|
| 109 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/WindowMaker |
---|
| 110 | tar xzvf %{SOURCE2} -C $RPM_BUILD_ROOT%{_datadir}/WindowMaker |
---|
| 111 | |
---|
| 112 | # install configurations |
---|
| 113 | mkdir -p %{SYSDEFDIR} |
---|
| 114 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/WindowMaker/{Sounds,SoundSets} |
---|
| 115 | ( |
---|
| 116 | cd VineSounds |
---|
| 117 | for i in Sounds SoundSets ; do |
---|
| 118 | cp $i/* $RPM_BUILD_ROOT%{_datadir}/WindowMaker/$i/ |
---|
| 119 | done |
---|
| 120 | cd Defaults |
---|
| 121 | cp * %{SYSDEFDIR} |
---|
| 122 | ) |
---|
| 123 | |
---|
| 124 | # prepare documents with preserving time stamps |
---|
| 125 | mkdir -p doc/WSoundPrefs |
---|
| 126 | cp -p %{wsprefs}/{AUTHORS,ChangeLog,COPYING*,INSTALL} doc/WSoundPrefs |
---|
| 127 | mkdir -p doc/WSoundServer |
---|
| 128 | cp -p %{wmsound}/{AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README} doc/WSoundServer |
---|
| 129 | |
---|
| 130 | # remove files |
---|
| 131 | rm -f $RPM_BUILD_ROOT%{_libdir}/libwsound.la |
---|
| 132 | |
---|
| 133 | %clean |
---|
| 134 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 135 | |
---|
| 136 | |
---|
| 137 | %files |
---|
| 138 | %defattr(-,root,root) |
---|
| 139 | %doc doc/* |
---|
| 140 | %{_sysconfdir}/X11/WindowMaker/* |
---|
| 141 | %{_prefix}/lib/GNUstep/Applications/WSoundPrefs.app/ |
---|
| 142 | %{_includedir}/wsound.h |
---|
| 143 | %{_libdir}/libwsound.a |
---|
| 144 | %{_libdir}/libwsound.so* |
---|
| 145 | #%{_libdir}/libwsound.la |
---|
| 146 | %{_localedir}/ja/LC_MESSAGES/WSoundPrefs.mo |
---|
| 147 | %{_datadir}/WindowMaker/Sounds/ |
---|
| 148 | %{_datadir}/WindowMaker/SoundSets/ |
---|
| 149 | %{_bindir}/get-wsound-flags |
---|
| 150 | %{_bindir}/wsoundserver |
---|
| 151 | %{_bindir}/wsoundplay |
---|
| 152 | %{_bindir}/getsoundset |
---|
| 153 | %{_bindir}/setsoundset |
---|
| 154 | %{_mandir}/man1/get-wsound-flags.1x* |
---|
| 155 | %{_mandir}/man1/getsoundset.1x* |
---|
| 156 | %{_mandir}/man1/setsoundset.1x* |
---|
| 157 | %{_mandir}/man1/wsoundplay.1x* |
---|
| 158 | %{_mandir}/man1/wsoundserver.1x* |
---|
| 159 | |
---|
| 160 | |
---|
| 161 | %changelog |
---|
| 162 | * Mon Feb 22 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.1-2 |
---|
| 163 | - added BR: audiofile-devel |
---|
| 164 | - rebuilt with new environment |
---|
| 165 | |
---|
| 166 | * Tue Jun 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.1-1vl5 |
---|
| 167 | - applied new versioning policy and utf-8 |
---|
| 168 | - added BuildRequires: xorg-x11-devel imake |
---|
| 169 | - set IMAKEINCLUDE to xmkmf |
---|
| 170 | |
---|
| 171 | * Wed Aug 02 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-0vl9 |
---|
| 172 | - changed Group to User Interface/Desktops |
---|
| 173 | |
---|
| 174 | * Tue Mar 07 2006 Shu KONNO <owa@bg.wakwak.com> 1.1.1-0vl8 |
---|
| 175 | - added WSoundServer-0.4.0-config.x86_64.patch |
---|
| 176 | - rebuilt for x86_64 architecture support |
---|
| 177 | |
---|
| 178 | * Sat Feb 25 2006 Shu KONNO <owa@bg.wakwak.com> 1.1.1-0vl7 |
---|
| 179 | - rebuilt for VineSeed |
---|
| 180 | |
---|
| 181 | * Sun Nov 13 2005 Shu KONNO <owa@bg.wakwak.com> 1.1.1-0vl6 |
---|
| 182 | - added WSoundServer-0.4.0.WM-0.92.patch |
---|
| 183 | - added WSoundPrefs-1.1.1.WM-0.92.patch |
---|
| 184 | - added %{_mandir}/man1/get-wsound-flags.1x* |
---|
| 185 | - changed encoding to utf-8 of WSoundPrefs-1.1.1.ja.po |
---|
| 186 | - changed app path with '/usr/X11R6/lib/GNUstep/Applications/WSoundPrefs.app' |
---|
| 187 | - rebuilt for WindowMaker-0.92.0 |
---|
| 188 | |
---|
| 189 | * Fri Dec 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.1-0vl5 |
---|
| 190 | - rebuilt for VineSeed |
---|
| 191 | |
---|
| 192 | * Fri Dec 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.1-0vl4.2 |
---|
| 193 | - added Patch3 for better compatibility with WindowMaker-0.80.2 |
---|
| 194 | |
---|
| 195 | * Fri Dec 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.1-0vl4.1 |
---|
| 196 | - rebuilt with WindowMaker-0.80.2 |
---|
| 197 | |
---|
| 198 | * Wed Jul 18 2001 <sagami@vinelinux.org> |
---|
| 199 | - 1.1.1-0vl4: erase unneeded files in %%doc and minor spec fixes |
---|
| 200 | - added patch to build with current audiofile.h in audiofile-0.2.1 |
---|
| 201 | - added patch to include wsound.h correctly |
---|
| 202 | |
---|
| 203 | * Tue Jan 23 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 204 | - 1.1.1-0vl3 |
---|
| 205 | - use better macros |
---|
| 206 | - added forgotten %%clean section |
---|
| 207 | |
---|
| 208 | * Fri Sep 08 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 209 | - 1.1.1-0vl2 |
---|
| 210 | - modified %files section to handle compressed man page(s) |
---|
| 211 | |
---|
| 212 | * Sun Apr 2 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 213 | - WMSoundSet-1.1.1 |
---|
| 214 | - WSoundPrefs-1.1.1, WSoundServer-0.4.0 |
---|
| 215 | - requires WindowMaker >= 0.62.1 |
---|
| 216 | |
---|
| 217 | * Thu Oct 14 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 218 | - WMSoundSet-1.0-1 |
---|
| 219 | - build for Vine-1.9 |
---|
| 220 | - WSoundPrefs-1.1.0, WSoundServer-0.2.1 |
---|
| 221 | - requires WindowMaker >= 0.61.1 |
---|
| 222 | |
---|
| 223 | * Sat Mar 27 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 224 | - added new sounds and use them as a default set |
---|
| 225 | |
---|
| 226 | * Sun Mar 14 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 227 | - remove requires WindowMaker >= 0.51.2 |
---|
| 228 | |
---|
| 229 | * Sun Mar 14 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 230 | - updated WSoundPrefs to 0.9.3 |
---|
| 231 | |
---|
| 232 | * Sun Mar 7 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 233 | - updated WSoundPrefs to 0.9.2 |
---|
| 234 | - updated wmsound to 0.9.3 |
---|
| 235 | |
---|
| 236 | * Tue Feb 24 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 237 | - updated wmsound to 0.9.2 |
---|
| 238 | - added Japanese summary and description |
---|
| 239 | - change Group name |
---|
| 240 | |
---|
| 241 | * Tue Feb 2 1999 Jun Nishii <jun@vinelinux.org> |
---|
| 242 | - updated to 0.9.1 |
---|
| 243 | |
---|
| 244 | * Sat Dec 19 1998 Jun Nishii <jun@vinelinux.org> |
---|
| 245 | - modify ja.po |
---|
| 246 | |
---|
| 247 | * Thu Dec 17 1998 Jun Nishii <jun@vinelinux.org> |
---|
| 248 | - merge ja.po |
---|
| 249 | |
---|
| 250 | * Sat Dec 12 1998 Jun Nishii <jun@vinelinux.org> |
---|
| 251 | - use /dev/dsp as a default audio device |
---|
| 252 | |
---|