Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWid3lib
      3 #
      4 # Copyright 2008 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 %define owner christian
      9 #
     10 
     11 %include Solaris.inc
     12 
     13 %define OSR 8315:3.8.3
     14 
     15 Name:                    SUNWid3lib
     16 Summary:                 id3lib  - a software library for manipulating ID3v1/v1.1 and ID3v2 tags
     17 Version:                 3.8.3
     18 Source:                  %{sf_download}/id3lib/id3lib-%{version}.tar.gz
     19 # date:2008-02-15 owner:christian type:bug
     20 Patch1:                  id3lib-01-wall.diff
     21 # date:2008-02-15 owner:christian type:bug
     22 Patch2:                  id3lib-02-uchar.diff
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 %include default-depend.inc
     27 Requires: SUNWzlib
     28 Requires: SUNWlibC
     29 Requires: SUNWlibms
     30 
     31 %package devel
     32 Summary:                 %{summary} - development files
     33 SUNW_BaseDir:            %{_basedir}
     34 %include default-depend.inc
     35 Requires: %name
     36 
     37 %prep
     38 %setup -q -n id3lib-%version
     39 %patch1  -p1
     40 %patch2  -p1
     41 
     42 %build
     43 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     44 if test "x$CPUS" = "x" -o $CPUS = 0; then
     45     CPUS=1
     46 fi
     47 
     48 %if %cc_is_gcc
     49 %else
     50 export CXX="${CXX} -norunpath"
     51 %endif
     52 
     53 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
     54             --libdir=%{_libdir}              \
     55             --libexecdir=%{_libexecdir}      \
     56             --sysconfdir=%{_sysconfdir}      \
     57             --enable-shared		     \
     58 	    --disable-static
     59 
     60 make -j$CPUS 
     61 
     62 %install
     63 rm -rf $RPM_BUILD_ROOT
     64 make install DESTDIR=$RPM_BUILD_ROOT
     65 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
     66 
     67 
     68 %clean
     69 rm -rf $RPM_BUILD_ROOT
     70 
     71 %files
     72 %defattr (-, root, bin)
     73 %dir %attr (0755, root, bin) %{_bindir}
     74 %{_bindir}/*
     75 %dir %attr (0755, root, bin) %{_libdir}
     76 %{_libdir}/*
     77 
     78 %files devel
     79 %defattr (-, root, bin)
     80 %dir %attr (0755, root, bin) %{_includedir}
     81 %{_includedir}/*
     82 
     83 %changelog
     84 * Fri Feb 15 2008 - dermot.mccluskey@sun.com
     85 - add patch comments
     86 - remove unnecessary defs (ACLOCAL, MSGFMT, C*FLAGS, fp_arch)
     87 - add gcc C++ macro
     88 - remove .la files
     89 * Tue Feb 12 2008 - dermot.mccluskey@sun.com
     90 - initial version
     91