specs/SUNWgnome-audio.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17937 664c0536875a
child 19973 f05dadadf325
child 20343 4198ebdad7ef
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     1 #
     2 # spec file for package SUNWgnome-audio
     3 #
     4 # includes module(s): gnome-audio
     5 #
     6 # Copyright 2008 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 %define owner yippi
    11 #
    12 %include Solaris.inc
    13 
    14 %ifarch amd64 sparcv9
    15 %include arch64.inc
    16 %use audiofile_64 = audiofile.spec
    17 %use esound_64 = esound.spec
    18 %endif
    19 
    20 %include base.inc
    21 %use audiofile = audiofile.spec
    22 %use esound = esound.spec
    23 
    24 Name:                    SUNWgnome-audio
    25 IPS_package_name:        gnome/gnome-audio
    26 Meta(info.classification): %{classification_prefix}:System/Multimedia Libraries
    27 Summary:                 GNOME audio support framework
    28 Version:                 %{default_pkg_version}
    29 Source1:                 %{name}-manpages-0.1.tar.gz
    30 SUNW_BaseDir:            %{_basedir}
    31 SUNW_Copyright:          %{name}.copyright
    32 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    33 
    34 %include default-depend.inc
    35 BuildRequires: SUNWgnome-common-devel
    36 BuildRequires: SUNWaudh
    37 Requires: SUNWlibms
    38 
    39 %package root
    40 Summary:                 %{summary} - / filesystem
    41 SUNW_BaseDir:            /
    42 %include default-depend.inc
    43 
    44 %package devel
    45 Summary:                 %{summary} - development files
    46 SUNW_BaseDir:            %{_basedir}
    47 %include default-depend.inc
    48 
    49 %prep
    50 rm -rf %name-%version
    51 mkdir %name-%version
    52 
    53 %ifarch amd64 sparcv9
    54 mkdir %name-%version/%_arch64
    55 %audiofile_64.prep -d %name-%version/%_arch64
    56 %esound_64.prep -d %name-%version/%_arch64
    57 %endif
    58 
    59 mkdir %name-%version/%base_arch
    60 %audiofile.prep -d %name-%version/%base_arch
    61 %esound.prep -d %name-%version/%base_arch
    62 
    63 cd %name-%version
    64 gzcat %SOURCE1 | tar xf -
    65 
    66 %build
    67 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
    68 if test "x$CPUS" = "x" -o $CPUS = 0; then
    69     CPUS=1
    70 fi
    71 export ACLOCAL_FLAGS="-I `pwd`/%name-%version/%base_arch/audiofile-%{audiofile.version}"
    72 
    73 %ifarch amd64 sparcv9
    74 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version}
    75 export REAL_AUDIOFILE_CFLAGS=" "
    76 export REAL_AUDIOFILE_LIBS="-L%{_libdir}/%{_arch64} -R%{_libdir}/%{_arch64} -laudiofile -lm"
    77 %audiofile_64.build -d %name-%version/%_arch64
    78 export PKG_CONFIG_TOP_BUILD_DIR=%{_builddir}/%name-%version/%{_arch64}/esound-%{esound_64.version}
    79 %esound_64.build -d %name-%version/%_arch64
    80 unset PKG_CONFIG_TOP_BUILD_DIR
    81 %endif
    82 
    83 export PKG_CONFIG_PATH=../audiofile-%{audiofile.version}
    84 export REAL_AUDIOFILE_CFLAGS=" "
    85 export REAL_AUDIOFILE_LIBS="-laudiofile -lm"
    86 %audiofile.build -d %name-%version/%base_arch
    87 export PKG_CONFIG_TOP_BUILD_DIR=%{_builddir}/%name-%version/%{base_arch}/esound-%{esound.version}
    88 %esound.build -d %name-%version/%base_arch
    89 unset PKG_CONFIG_TOP_BUILD_DIR
    90 
    91 %install
    92 rm -rf $RPM_BUILD_ROOT
    93 
    94 %ifarch amd64 sparcv9
    95 %audiofile_64.install -d %name-%version/%_arch64
    96 %esound_64.install -d %name-%version/%_arch64
    97 
    98 # leave only esd-config
    99 rm $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/{sfconvert,sfinfo,esd[a-z]}*
   100 rm $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a
   101 rm $RPM_BUILD_ROOT%{_prefix}/lib/esd
   102 %endif
   103 
   104 %audiofile.install -d %name-%version/%base_arch
   105 %esound.install -d %name-%version/%base_arch
   106 
   107 rm $RPM_BUILD_ROOT%{_libdir}/lib*a
   108 rm $RPM_BUILD_ROOT%{_bindir}/{sfconvert,sfinfo,esdfilt,esdloop}
   109 
   110 rm -r $RPM_BUILD_ROOT%{_mandir}
   111 cd %name-%version/sun-manpages
   112 make install DESTDIR=$RPM_BUILD_ROOT
   113 
   114 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
   115 
   116 %clean
   117 rm -rf $RPM_BUILD_ROOT
   118 
   119 %files
   120 %defattr (-, root, bin)
   121 %dir %attr (0755, root, bin) %{_bindir}
   122 # Intentionally omitted essddsp, esdfilt and esdloop because not in
   123 # 2.0.4 SUNWgnome-audio.
   124 %{_bindir}/esdcat
   125 %{_bindir}/esdctl
   126 %{_bindir}/esdmon
   127 %{_bindir}/esdplay
   128 %{_bindir}/esdrec
   129 %{_bindir}/esdsample
   130 %dir %attr (0755, root, bin) %{_libdir}
   131 %{_libdir}/esd
   132 %ifarch amd64 sparcv9
   133 %{_libdir}/%{_arch64}/lib*.so*
   134 %endif
   135 %{_libexecdir}/lib*.so*
   136 %dir %attr (0755, root, sys) %{_datadir}
   137 %doc %{base_arch}/audiofile-%{audiofile.version}/AUTHORS
   138 %doc %{base_arch}/audiofile-%{audiofile.version}/README
   139 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING
   140 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/COPYING.GPL
   141 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/ChangeLog
   142 %doc(bzip2) %{base_arch}/audiofile-%{audiofile.version}/NEWS
   143 %doc %{base_arch}/esound-%{esound.version}/AUTHORS
   144 %doc %{base_arch}/esound-%{esound.version}/README
   145 %doc(bzip2) %{base_arch}/esound-%{esound.version}/COPYING.LIB
   146 %doc(bzip2) %{base_arch}/esound-%{esound.version}/ChangeLog
   147 %doc(bzip2) %{base_arch}/esound-%{esound.version}/NEWS
   148 %dir %attr (0755, root, other) %{_datadir}/doc
   149 %dir %attr(0755, root, bin) %{_mandir}
   150 %dir %attr(0755, root, bin) %{_mandir}/man1
   151 %{_mandir}/man1/*
   152 
   153 %files root
   154 %defattr (0644, root, sys)
   155 %attr (0755, root, sys) %dir %{_sysconfdir}
   156 %{_sysconfdir}/*
   157 
   158 %files devel
   159 %defattr (-, root, bin)
   160 %dir %attr (0755, root, bin) %{_bindir}
   161 %{_bindir}/audiofile-config
   162 %{_bindir}/esd-config
   163 %ifarch amd64 sparcv9
   164 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64}
   165 %{_bindir}/%{_arch64}/esd-config
   166 %{_bindir}/%{_arch64}/audiofile-config
   167 %endif
   168 %dir %attr (0755, root, bin) %{_libdir}
   169 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
   170 %{_libdir}/pkgconfig/*
   171 %ifarch amd64 sparcv9
   172 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64}
   173 %dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig
   174 %{_libdir}/%{_arch64}/pkgconfig/*
   175 %endif
   176 %dir %attr (0755, root, bin) %{_includedir}
   177 %{_includedir}/*
   178 %dir %attr (0755, root, sys) %{_datadir}
   179 %dir %attr (0755, root, other) %{_datadir}/aclocal
   180 %{_datadir}/aclocal/*
   181 %dir %attr(0755, root, bin) %{_mandir}
   182 %dir %attr(0755, root, bin) %{_mandir}/man3
   183 %{_mandir}/man3/*
   184 
   185 %changelog
   186 * Wed Jun 02 2009 - dave.lin@sun.com
   187 - Use PKG_CONFIG_TOP_BUILD_DIR environment variable when building esound,
   188   so that pkg-config expands $(top_builddir), otherwise audiofile pkg-config
   189   variables do not expand nicely and the build fails.
   190 * Sun Sep 14 2008 - brian.cameron@sun.com
   191 - Add new copyright files.
   192 * Thu Mar 27 2008 - brian.cameron@sun.com
   193 - Add SUNW_Copyright.
   194 * Wed Apr  4 2007 - laca@sun.com
   195 - convert to new style multi-isa build
   196 * Fri Feb 23 2007 - dougs@truemail.co.th
   197 - PKG_CONFIG_PATH64 should use _pkg_config_path64
   198 * Mon Feb 19 2007 - laca@sun.com
   199 - move esound and audiofile into their own spec files
   200 - update for 64-bit audiofile and esound libs
   201 * Tue Nov 28 2006 - damien.carbery@sun.com
   202 - Change defattr in root package to 0644 to fix 6497737.
   203 * Tue Sep 12 2006 - Matt.Keenan@sun.com
   204 - Add back "rm" of _mandir, as needed
   205 * Fri Sep 08 2006 - Matt.Keenan@sun.com
   206 - Remove "rm" of _mandir during %install
   207 * Fri Sep 01 2006 - Matt.Keenan@sun.com
   208 - New Manpage tarball
   209 * Fri Jul 21 2006 - damien.carbery@sun.com
   210 - Bump audiofile to 0.2.6.
   211 * Sun Jun 11 2006 - laca@sun.com
   212 - change group from other to bin/sys
   213 * Tue May 09 2006 - laca@sun.com
   214 - merge -share pkg(s) into the base pkg(s)
   215 * Wed Dec 21 2005 - damien.carbery@sun.com
   216 - Redo patch 1. Remove patch 2 (pkgconfig) as it was undoing patch 1!!
   217 * Tue Dec 20 2005 - damien.carbery@sun.com
   218 - Bump esound to 0.2.36.
   219 * Fri Sep 09 2005 - <laca@sun.com>
   220 - remove unpackaged files
   221 * Wed Jun 15 2005 - laca@sun.com
   222 - add patch to make esound work with recent pkgconfig
   223 - add libtoolize so that it uses the newer libtool in the CBE
   224 * Sat Oct 02 2004 - laca@sun.com
   225 - added %pkgbuild_postprocess
   226 * Mon Aug 30 2004 - shirley.woo@sun.com
   227 - Bug 5091588 : sman3/4 files should be in a separate devel package
   228 * Wed Aug 18 2004 - damien.carbery@sun.com
   229 - Change manpage perms for Solaris integration.
   230 * Tue Jun 22 2004 - shirley.woo@sun.com
   231 - changed install location to /usr/lib and /usr/bin
   232 * Thu May 27 2004 - brian.cameron
   233 - added --with-esd-dir option to configure so esd gets installed
   234   to libexec.
   235 * Wed May 19 2004 - brian.cameron@sun.com
   236 - Added missing man pages.
   237 * Fri May 07 2004 - brian.cameron@sun.com
   238 - Add esound patch1 to fix esd-config to have correct values.
   239   Now call aclocal/autoconf for esound so patch takes effect.
   240 * Thu May 06 2004 - brian.cameron@sun.com
   241 - added missing *.m4 and *-config files to packaging.
   242 * Thu Feb 26 2004 - niall.power@sun.com
   243 - add missing -devel pkg
   244 * Thu Feb 26 2004 - laca@sun.com
   245 - fix audiofile dependency in esound