9397
|
1 |
#
|
|
2 |
# spec file for package SUNWmusicbrainz
|
|
3 |
#
|
|
4 |
# includes module(s): libmusicbrainz
|
|
5 |
#
|
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc.
|
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
|
10 |
# Owner: yippi
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use musicbrainz = libmusicbrainz.spec
|
|
14 |
|
|
15 |
Name: SUNWmusicbrainz
|
|
16 |
Summary: Library for accessing MusicBrainz servers
|
|
17 |
Version: %{musicbrainz.version}
|
|
18 |
SUNW_BaseDir: %{_basedir}
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
|
|
21 |
%include default-depend.inc
|
|
22 |
Requires: SUNWlexpt
|
|
23 |
Requires: SUNWlibC
|
|
24 |
Requires: SUNWlibmsr
|
|
25 |
BuildRequires: SUNWlexpt
|
|
26 |
|
|
27 |
%package devel
|
|
28 |
Summary: %{summary} - development files
|
|
29 |
SUNW_BaseDir: %{_basedir}
|
|
30 |
%include default-depend.inc
|
|
31 |
|
|
32 |
%prep
|
|
33 |
rm -rf %name-%version
|
|
34 |
mkdir %name-%version
|
|
35 |
%musicbrainz.prep -d %name-%version
|
|
36 |
cd %{_builddir}/%name-%version/libmusicbrainz-%{musicbrainz.version}
|
|
37 |
cd ..
|
|
38 |
|
|
39 |
%build
|
|
40 |
export CXXFLAGS="%cxx_optflags -I/usr/sfw/include -lCrun -lCstd"
|
|
41 |
export LDFLAGS="%_ldflags -L/usr/sfw/lib"
|
|
42 |
%if %cc_is_gcc
|
|
43 |
%else
|
|
44 |
CXXFLAGS="$CXXFLAGS -XCClinker -norunpath"
|
|
45 |
%endif
|
|
46 |
export CFLAGS="%optflags -I/usr/sfw/include"
|
|
47 |
%musicbrainz.build -d %name-%version
|
|
48 |
|
|
49 |
%install
|
|
50 |
%musicbrainz.install -d %name-%version
|
|
51 |
|
|
52 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
53 |
|
|
54 |
%clean
|
|
55 |
rm -rf $RPM_BUILD_ROOT
|
|
56 |
|
|
57 |
%files
|
|
58 |
%defattr (-, root, bin)
|
|
59 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
60 |
%{_libdir}/libmusicbrainz*.so*
|
|
61 |
|
|
62 |
%files devel
|
|
63 |
%defattr (-, root, bin)
|
|
64 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
65 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
66 |
%{_libdir}/pkgconfig/*
|
|
67 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
68 |
%{_includedir}/musicbrainz
|
|
69 |
|
|
70 |
%changelog
|
|
71 |
* Sun Jun 11 2006 - [email protected]
|
|
72 |
- change group from other to bin/sys
|
|
73 |
* Mon Feb 20 2006 - [email protected]
|
|
74 |
- Update Build/Requires after running check-deps.pl script.
|
|
75 |
* Wed Jan 04 2006 - [email protected]
|
|
76 |
- Set LDFLAGS/CFLAGS to find expat files under /usr/sfw.
|
|
77 |
* Tue Sep 27 2005 - [email protected]
|
|
78 |
- Fix libmusicbrainz so it links against the Forte STL library
|
|
79 |
since it was building with unresolved symbols before.
|
|
80 |
* Mon Jul 25 2005 - [email protected]
|
|
81 |
- Create a separate devel package
|
|
82 |
* Fri Jul 08 2005 - [email protected]
|
|
83 |
- Modify patch not to include -lstdc++
|
|
84 |
* Thu Jul 07 2005 - [email protected]
|
|
85 |
- Initial spec-file created
|