| 1 |
%define name sweep |
|---|
| 2 |
%define version @VERSION@ |
|---|
| 3 |
%define release 1 |
|---|
| 4 |
%define prefix /usr |
|---|
| 5 |
|
|---|
| 6 |
Summary: Sound wave editor |
|---|
| 7 |
|
|---|
| 8 |
Name: %{name} |
|---|
| 9 |
Version: %{version} |
|---|
| 10 |
Release: %{release} |
|---|
| 11 |
Copyright: GPL |
|---|
| 12 |
Group: Applications/Sound |
|---|
| 13 |
URL: http://sweep.sourceforge.net/ |
|---|
| 14 |
|
|---|
| 15 |
Source: %{name}-%{version}.tar.gz |
|---|
| 16 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 17 |
Docdir: %{prefix}/doc |
|---|
| 18 |
Prefix: %{prefix} |
|---|
| 19 |
Requires: gtk+ >= 2.2.0 |
|---|
| 20 |
|
|---|
| 21 |
%description |
|---|
| 22 |
Sweep is an editor for sound samples. It operates on files of various |
|---|
| 23 |
formats such as .wav, .aiff and .au, and has multiple undo/redo levels |
|---|
| 24 |
and filters. It supports audio filter plugins from the LADSPA project. |
|---|
| 25 |
|
|---|
| 26 |
%package devel |
|---|
| 27 |
Summary: Sweep plugin development kit |
|---|
| 28 |
Group: Applications/Sound |
|---|
| 29 |
Requires: %{name} = %{version} |
|---|
| 30 |
|
|---|
| 31 |
%description devel |
|---|
| 32 |
The sweep-devel package contains header files and documentation for writing |
|---|
| 33 |
plugins for Sweep, a sound wave editor. |
|---|
| 34 |
|
|---|
| 35 |
Install sweep-devel if you're going to create plugins for Sweep. You will |
|---|
| 36 |
also need to install sweep. |
|---|
| 37 |
|
|---|
| 38 |
%prep |
|---|
| 39 |
%setup -q -n %{name}-%{version} |
|---|
| 40 |
if [ -f configure ]; then |
|---|
| 41 |
CFLAGS=$RPM_OPT_FLAGS \ |
|---|
| 42 |
./configure --prefix=%{prefix}; |
|---|
| 43 |
else |
|---|
| 44 |
CFLAGS=$RPM_OPT_FLAGS \ |
|---|
| 45 |
./autogen.sh --prefix=%{prefix}; |
|---|
| 46 |
fi |
|---|
| 47 |
|
|---|
| 48 |
%build |
|---|
| 49 |
LINGUAS="fr hu it de pl" CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} |
|---|
| 50 |
gmake |
|---|
| 51 |
|
|---|
| 52 |
%install |
|---|
| 53 |
if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi |
|---|
| 54 |
mkdir -p $RPM_BUILD_ROOT%{prefix} |
|---|
| 55 |
make prefix=$RPM_BUILD_ROOT%{prefix} install-strip |
|---|
| 56 |
|
|---|
| 57 |
%files |
|---|
| 58 |
|
|---|
| 59 |
%defattr (0555, bin, bin) |
|---|
| 60 |
%{prefix}/bin/sweep |
|---|
| 61 |
|
|---|
| 62 |
%defattr (0444, bin, bin, 0555) |
|---|
| 63 |
%{prefix}/lib/sweep/libladspameta* |
|---|
| 64 |
%{prefix}/lib/sweep/libecho* |
|---|
| 65 |
%{prefix}/lib/sweep/libnormalise* |
|---|
| 66 |
%{prefix}/lib/sweep/libreverse* |
|---|
| 67 |
%{prefix}/lib/sweep/libbyenergy* |
|---|
| 68 |
|
|---|
| 69 |
%defattr (0555, bin, man) |
|---|
| 70 |
%{prefix}/man/man1/sweep.1* |
|---|
| 71 |
%doc ABOUT-NLS NEWS README ChangeLog |
|---|
| 72 |
%doc README.Solaris README.ALSA |
|---|
| 73 |
%doc doc/*.txt |
|---|
| 74 |
|
|---|
| 75 |
%defattr (-, root, root) |
|---|
| 76 |
%{prefix}/share/gnome/apps/Multimedia/sweep.desktop |
|---|
| 77 |
%{prefix}/share/locale/*/*/* |
|---|
| 78 |
|
|---|
| 79 |
%files devel |
|---|
| 80 |
%doc doc/plugin_writers_guide.txt |
|---|
| 81 |
%{prefix}/include/sweep/ |
|---|
| 82 |
|
|---|
| 83 |
%clean |
|---|
| 84 |
rm -r $RPM_BUILD_ROOT |
|---|
| 85 |
|
|---|
| 86 |
%changelog |
|---|
| 87 |
* Sun Oct 08 2000 Conrad Parker <conrad@vergenet.net> |
|---|
| 88 |
- updated for sweep version 0.1.0 |
|---|
| 89 |
- added devel package |
|---|
| 90 |
- added packaging of plugins |
|---|
| 91 |
- added documentation |
|---|
| 92 |
|
|---|
| 93 |
* Tue Aug 09 2005 Peter Shorthose <kickback@users.sourceforge.net> |
|---|
| 94 |
- use autoconf to generate the spec via sweep.spec.in |
|---|
| 95 |
- insert the package version via the autoconf macro |
|---|
| 96 |
- remind the reader that the above changes are untested as of now |
|---|
| 97 |
|
|---|
| 98 |
* Thur Aug 25 2005 Peter Shorthose <kickback@users.sourceforge.net> |
|---|
| 99 |
- update Gtk requirements |
|---|