• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2%define name    @PACKAGE@
3%define version @VERSION@
4%define release 1
5
6Summary: A library to handle various audio file formats.
7Name: %{name}
8Version: %{version}
9Release: %{release}
10Copyright: LGPL
11Group: Libraries/Sound
12Source: http://www.mega-nerd.com/libsndfile/libsndfile-%{version}.tar.gz
13Url: http://www.mega-nerd.com/libsndfile/
14BuildRoot: /var/tmp/%{name}-%{version}
15
16%description
17libsndfile is a C library for reading and writing sound files such as
18AIFF, AU and WAV files through one standard interface. It can currently
19read/write 8, 16, 24 and 32-bit PCM files as well as 32-bit floating
20point WAV files and a number of compressed formats.
21
22%package devel
23Summary: Libraries, includes, etc to develop libsndfile applications
24Group: Libraries
25
26%description devel
27Libraries, include files, etc you can use to develop libsndfile applications.
28
29%prep
30%setup
31
32%build
33%configure
34make
35
36%install
37if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
38mkdir -p $RPM_BUILD_ROOT
39make DESTDIR=$RPM_BUILD_ROOT install
40%clean
41if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
42
43%files
44%defattr(-,root,root)
45%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO doc
46%{_libdir}/libsndfile.so.*
47%{_bindir}/*
48%{_mandir}/man1/*
49%{_datadir}/octave/site/m/*
50%{_defaultdocdir}/libsndfile1-dev/html/*
51
52%files devel
53%defattr(-,root,root)
54%{_libdir}/libsndfile.a
55%{_libdir}/libsndfile.la
56%{_libdir}/libsndfile.so
57%{_includedir}/sndfile.h
58%{_libdir}/pkgconfig/sndfile.pc
59
60%changelog
61* Sun May 15 2005 Erik de Castro Lopo <erikd@mega-nerd.com>
62- Add html files to the files section.
63* Tue Sep 16 2003 Erik de Castro Lopo <erikd@mega-nerd.com>
64- Apply corrections from Andrew Schultz.
65* Mon Oct 21 2002 Erik de Castro Lopo <erikd@mega-nerd.com>
66- Force installation of sndfile.pc file.
67* Thu Jul 6 2000 Josh Green <jgreen@users.sourceforge.net>
68- Created libsndfile.spec.in
69
70