Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWtransmission
      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 elaine
      9 #
     10 
     11 %include Solaris.inc
     12 
     13 %define OSR 9428:1.x
     14 
     15 %define source_name transmission
     16 
     17 Name:                    SUNWtransmission
     18 Summary:                 GTK and console BitTorrent client
     19 Version:                 1.73
     20 Source:                  http://download.m0k.org/transmission/files/transmission-%{version}.tar.bz2
     21 
     22 URL:                     http://transmission.m0k.org/
     23 SUNW_BaseDir:            %{_basedir}
     24 SUNW_Copyright:          %{name}.copyright
     25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     26 Source1:                 %{name}-manpages-0.1.tar.gz
     27 
     28 # date:2009-06-22 owner:elaine type:branding
     29 Patch: transmission-01-set-noevports.diff
     30 
     31 %include default-depend.inc
     32 BuildRequires: SUNWgtk2-devel
     33 BuildRequires: SUNWopenssl-include
     34 BuildRequires: SUNWgnome-panel-devel
     35 BuildRequires: SUNWdbus-glib-devel
     36 Requires: SUNWgtk2
     37 Requires: SUNWopenssl-libraries
     38 Requires: SUNWcurl
     39 Requires: SUNWgnome-panel
     40 Requires: SUNWdbus-glib
     41 %if %option_with_gnu_iconv
     42 Requires: SUNWgnu-libiconv
     43 Requires: SUNWgnu-gettext
     44 %else
     45 Requires: SUNWuiu8
     46 %endif
     47 
     48 %if %build_l10n
     49 %package l10n
     50 Summary:                 %{summary} - l10n files
     51 SUNW_BaseDir:            %{_basedir}
     52 %include default-depend.inc
     53 Requires:        %{name}
     54 %endif
     55 
     56 %prep
     57 %setup -q -c -n %{name}-%{version}
     58 cd %{_builddir}/%name-%version
     59 gzcat %SOURCE1 | tar xf -
     60 cd %{source_name}-%{version}
     61 %patch0 -p 1
     62 
     63 %build
     64 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     65 if test "x$CPUS" = "x" -o $CPUS = 0; then
     66      CPUS=1
     67 fi
     68 
     69 export CFLAGS="%optflags -mt -xc99 -D__EXTENSIONS__"
     70 %if %option_with_gnu_iconv
     71 export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
     72 export CXXFLAGS="$CXXFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
     73 %endif
     74 
     75 cd %{source_name}-%{version}
     76 
     77 export LDFLAGS="%_ldflags"
     78 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     79 
     80 ./configure --prefix=%{_prefix}   \
     81             --datadir=%{_datadir} \
     82             --mandir=%{_mandir}   \
     83 	    --disable-wx	\
     84             --program-prefix=""
     85 
     86 make -j$CPUS
     87 
     88 %install
     89 rm -rf $RPM_BUILD_ROOT
     90 cd %{source_name}-%{version}
     91 make DESTDIR=$RPM_BUILD_ROOT install
     92 
     93 %if %build_l10n
     94 %else
     95 # REMOVE l10n FILES
     96 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     97 %endif
     98 
     99 #install man page
    100 rm -r $RPM_BUILD_ROOT%{_mandir}
    101 cd %{_builddir}/%name-%version/sun-manpages
    102 make install DESTDIR=$RPM_BUILD_ROOT
    103 
    104 %clean
    105 rm -rf $RPM_BUILD_ROOT
    106 
    107 %files
    108 %defattr (-, root, bin)
    109 %dir %attr (0755, root, bin) %{_bindir}
    110 %{_bindir}/*
    111 %dir %attr (0755, root, bin) %{_mandir}/man1
    112 %{_mandir}/man1/*
    113 %dir %attr (-, root, sys) %{_datadir}
    114 %dir %attr (0755, root, other) %{_datadir}/applications
    115 %{_datadir}/applications/*
    116 %dir %attr (0755, root, other) %{_datadir}/pixmaps
    117 %{_datadir}/pixmaps/*
    118 %dir %attr (0755, root, other) %{_datadir}/%{source_name}
    119 %{_datadir}/%{source_name}/*
    120 %dir %attr (0755, root, other) %{_datadir}/icons
    121 %dir %attr (-, root, other) %{_datadir}/icons/hicolor
    122 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
    123 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
    124 %{_datadir}/icons/hicolor/16x16/apps/transmission.png
    125 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
    126 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
    127 %{_datadir}/icons/hicolor/22x22/apps/transmission.png
    128 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
    129 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
    130 %{_datadir}/icons/hicolor/24x24/apps/transmission.png
    131 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
    132 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
    133 %{_datadir}/icons/hicolor/32x32/apps/transmission.png
    134 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48
    135 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/48x48/apps
    136 %{_datadir}/icons/hicolor/48x48/apps/transmission.png
    137 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
    138 %dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
    139 %{_datadir}/icons/hicolor/scalable/apps/transmission.svg
    140 
    141 %if %build_l10n
    142 %files l10n
    143 %defattr (-, root, bin)
    144 %dir %attr (0755, root, sys) %{_datadir}
    145 %attr (-, root, other) %{_datadir}/locale
    146 %endif
    147 
    148 %changelog
    149 * Mon Jul 27 2009 - elaine.xiong@sun.com
    150 - Bump to 1.73.
    151 * Mon Jun 22 2009 - elaine.xiong@sun.com
    152 - Bump to 1.72. Add a branding patch to disable evports since libevent has
    153   troubles with evports that is the default poll mechanism used on Solaris).
    154 * Fri May 22 2009 - elaine.xiong@sun.com
    155 - Bump to 1.61. Remove upstream patch. Add -xc99 flag to CFLAGS.
    156 * Thu Mar 05 2009 - brian.cameron@sun.com
    157 - Change SUNWdbus-bindings to SUNWdbus-glib.
    158 * Thu Feb 19 2009 - elaine.xiong@sun.com
    159 - Bump to 1.50 and add a patch to fix build problems.
    160 * Tue Feb 10 2009 - halton.huo@sun.com
    161 - Add depend to SUNWgnome-panel and SUNWdbus-bindings to
    162   fix issue #7 for CR6753371
    163 * Mon Jan 19 2009 - elaine.xiong@sun.com
    164 - Bump to 1.4.2 and disable unsupported wxWidgets client.
    165 * Mon Nov 17 2008 - elaine.xiong@sun.com
    166 - Bump to 1.40.
    167 * Mon Sep 15 2008 - elaine.xiong@sun.com
    168 - Bump to 1.33.
    169 * Tue Aug 12 2008 - elaine.xiong@sun.com
    170 - Bump to 1.32 and remove upstream patches. 
    171 * Tue Aug 05 2008 - elaine.xiong@sun.com
    172 - Add new manpages into the package.
    173 * Sat Aug 02 2008 - elaine.xiong@sun.com
    174 - Temporarily disable new manpages.
    175 * Tue Jul 29 2008 - takao.fujiwara@sun.com
    176 - Add transmission-02-g11n-i18n-ui.diff. CR 6729782
    177 * Mon Jul 28 2008 - elaine.xiong@sun.com
    178 - Copy from SFEtransmission.spec and rename to SUNWtransmission.
    179 * Wed Jun 25 2008 - darren.kenny@sun.com
    180 - Bump to 1.2.2 and remove upstream patch for compiler. Add patch for solaris
    181   getgateway implementation.
    182 * Tue May 27 2008 - trisk@acm.jhu.edu
    183 - Add SUNWcurl dependency
    184 * Sat May 24 2008 - trisk@acm.jhu.edu
    185 - Bump to 1.21, drop patch2
    186 * Sun Mar 02 2008 - trisk@acm.jhu.edu
    187 - Bump to 1.06, add patch2 (fixed upstream)
    188 * Tue Feb 26 2008 - markwright@internode.on.net
    189 - Bump to 1.05, bump patch1, add icons.
    190 * Thu Nov 22 2007 - daymobrew@users.sourceforge.net
    191 - Enable building on Indiana systems.
    192 * Thu Nov 01 2007 - trisk@acm.jhu.edu
    193 - Bump to 0.91, replace patch1
    194 * Mon Sep 10 2007 - trisk@acm.jhu.edu
    195 - Bump to 0.82
    196 * Thu Sep 6 2007 - Petr Sobotka sobotkap@centum.cz
    197 - Fix typo in changelog
    198 * Wed Aug 29 2007 - trisk@acm.jhu.edu
    199 - Bump to 0.81, add workaround for broken tarball
    200 * Mon Aug 20 2007 - trisk@acm.jhu.edu
    201 - Clean up, allow building with Studio
    202 * Sun Aug 19 2007 - Petr Sobotka sobotkap@centrum.cz
    203 - Initial spec
    204 
    205