-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudiofile.spec
65 lines (53 loc) · 1.41 KB
/
audiofile.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Summary: Audiofile library
Name: audiofile
Version: 0.2.6
Release: 1
Group: System Environment/Libraries
Copyright: GPL
Source: %{name}-%{version}.tar.gz
#Patch: audiofile.patch
Distribution: RU-Solaris
Vendor: NBCS-OSS
Packager: Leo Zhadanovsky <[email protected]>
BuildRoot: /var/tmp/%{name}-root
%description
Audiofile is one of the libraries used by Gnome.
%package devel
Summary: Headers and static libraries for audiofile
Group: System Environment/Libraries
Requires: audiofile = %{version}
%description devel
This package consists of the header files and static libraries used by
libaudiofile.
%prep
%setup -q
#%patch -p1
%build
#LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ./configure --prefix=/usr/local \
# --enable-shared --enable-static
PATH="/opt/SUNWspro/bin:${PATH}" \
CC="cc" CXX="CC" CPPFLAGS="-I/usr/local/include" \
LD="/usr/ccs/bin/ld" \
LDFLAGS="-L/usr/local/lib -R/usr/local/lib" \
export PATH CC CXX CPPFLAGS LD LDFLAGS
./configure --enable-shared --enable-static --prefix=/usr/local
make
make check
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local
make install prefix=$RPM_BUILD_ROOT/usr/local
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,bin,bin)
%doc COPYING
/usr/local/lib/lib*.so*
/usr/local/bin/sf*
%files devel
%defattr(-,bin,bin)
/usr/local/share/aclocal/audiofile.m4
/usr/local/lib/lib*a
/usr/local/include/*
/usr/local/bin/audiofile-config
/usr/local/lib/pkgconfig/*