Emeric Vigier | eebea67 | 2012-08-06 17:36:30 -0400 | [diff] [blame] | 1 | |
| 2 | %define name @PACKAGE@ |
| 3 | %define version @VERSION@ |
| 4 | %define release 1 |
| 5 | %define prefix /usr |
| 6 | |
| 7 | Summary: A library to do sample rate conversion for audio. |
| 8 | Name: %{name} |
| 9 | Version: %{version} |
| 10 | Release: %{release} |
| 11 | Prefix: %{prefix} |
| 12 | Copyright: LGPL |
| 13 | Group: Libraries/Sound |
| 14 | Source: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz |
| 15 | URL: http://www.mega-nerd.com/SRC/ |
| 16 | BuildRoot: /var/tmp/%{name}-%{version} |
| 17 | |
| 18 | %description |
| 19 | libsamplerate is a C library capable of arbitrary and time varying |
| 20 | conversions; from downsampling by a factor of 12 to upsampling by the |
| 21 | same factor. The conversion ratio can also vary with time for speeding |
| 22 | up and slowing down effects. |
| 23 | |
| 24 | %package devel |
| 25 | Summary: Libraries, includes, etc to develop libsamplerate applications |
| 26 | Group: Libraries |
| 27 | |
| 28 | %description devel |
| 29 | Libraries, include files, etc you can use to develop libsamplerate applications. |
| 30 | |
| 31 | %prep |
| 32 | %setup |
| 33 | |
| 34 | %build |
| 35 | ./configure --prefix=%{prefix} |
| 36 | make |
| 37 | |
| 38 | %install |
| 39 | if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi |
| 40 | mkdir -p $RPM_BUILD_ROOT |
| 41 | make prefix=$RPM_BUILD_ROOT%{prefix} install |
| 42 | |
| 43 | %clean |
| 44 | if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi |
| 45 | |
| 46 | %files |
| 47 | %defattr(-,root,root) |
| 48 | %doc AUTHORS COPYING ChangeLog INSTALL NEWS README doc |
| 49 | %prefix/lib/libsamplerate.so.* |
| 50 | |
| 51 | %files devel |
| 52 | %defattr(-,root,root) |
| 53 | %{prefix}/lib/libsamplerate.a |
| 54 | %{prefix}/lib/libsamplerate.la |
| 55 | %{prefix}/lib/libsamplerate.so |
| 56 | %{prefix}/include/samplerate.h |
| 57 | %{prefix}/lib/pkgconfig/samplerate.pc |
| 58 | |