source: projects/specs/trunk/W/WMSoundSet/WMSoundSet-vl.spec @ 3679

Revision 3679, 6.8 KB checked in by owa, 10 years ago (diff)

rebuild

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