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