1 # 2 # spec file for package libpigment 3 # 4 # includes module(s): pigment 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 jerrytan 11 # 12 # bugdb: https://code.fluendo.com/pigment/trac/ 13 # 14 %define name pigment 15 %define version 0.3.17 16 17 %include Solaris.inc 18 19 Summary: Pigment user interface library with embedded multimedia 20 Name: SUNWlib%{name} 21 License: LGPL v2.1 22 Version: %{version} 23 URL: https://core.fluendo.com/pigment/trac 24 Source0: http://elisa.fluendo.com/static/download/pigment/pigment-%{version}.tar.bz2 25 SUNW_BaseDir: %{_basedir} 26 SUNW_Copyright: %{name}.copyright 27 28 %ifnarch sparc 29 # disable on SPARC till X team release OpenGL on SPARC on opensolaris 30 31 BuildRoot: %{_tmppath}/%{name}-%{version}-build 32 BuildRequires: SUNWgtk2-devel 33 BuildRequires: SUNWgnome-common-devel 34 BuildRequires: SUNWgnome-media-devel 35 Requires: SUNWgtk2 36 Requires: SUNWgnome-media 37 38 %ifarch sparc 39 BuildRequires: SUNWglrt 40 Requires: SUNWglrt 41 %else 42 BuildRequires: SUNWxorg-mesa 43 Requires: SUNWxorg-mesa 44 %endif 45 46 %include default-depend.inc 47 48 %description 49 Pigment is a library designed to easily build user interfaces 50 with embedded multimedia. Its design allows to use it on several 51 platforms, thanks to a plugin system allowing to choose the underlying 52 graphical API. Pigment is the rendering engine of Elisa, the Fluendo 53 Media Center project. 54 55 %package devel 56 Group: Development/Tools 57 Summary: Development headers for Pigment 58 Requires: %name 59 60 %prep 61 %setup -q -n pigment-%version 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 aclocal $ACLOCAL_FLAGS -I ./common/m4 70 gtkdocize 71 autoheader 72 automake -a -c -f 73 autoconf 74 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 75 --libdir=%{_libdir} \ 76 --libexecdir=%{_libexecdir} \ 77 --sysconfdir=%{_sysconfdir} 78 make 79 80 %install 81 rm -rf $RPM_BUILD_ROOT 82 make install DESTDIR=$RPM_BUILD_ROOT 83 84 rm -r $RPM_BUILD_ROOT/%{_libdir}/*.la 85 rm -r $RPM_BUILD_ROOT/%{_libdir}/*.a 86 rm -r $RPM_BUILD_ROOT/%{_libdir}/pigment-0.3/%{version}/*.la 87 rm -r $RPM_BUILD_ROOT/%{_libdir}/pigment-0.3/%{version}/*.a 88 89 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 90 91 %clean 92 rm -rf $RPM_BUILD_ROOT 93 94 %files 95 %doc README AUTHORS 96 %doc(bzip2) NEWS COPYING ChangeLog 97 %dir %attr (0755, root, sys) %{_datadir} 98 %dir %attr (0755, root, other) %{_datadir}/doc 99 %defattr(-,root,bin) 100 %dir %attr (0755, root, bin) %{_libdir} 101 %{_libdir}/lib*.so* 102 %{_libdir}/pigment-0.3/%{version}/lib*.so* 103 104 %files devel 105 %defattr (-, root, bin) 106 %dir %attr (0755, root, bin) %{_includedir} 107 %{_includedir}/* 108 %dir %attr (0755, root, bin) %{_libdir} 109 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 110 %{_libdir}/pkgconfig/* 111 %dir %attr (0755, root, sys) %{_datadir} 112 %dir %attr (0755, root, bin) %{_datadir}/gtk-doc 113 %dir %attr (0755, root, bin) %{_datadir}/gtk-doc/html 114 %{_datadir}/gtk-doc/html/* 115 116 # endif for "ifnarch sparc" 117 %endif 118 119 %changelog 120 * Fri Jan 09 2009 - brian.cameron@sun.com 121 - Add SUNWglrt and SUNWxorg-mesa as dependencies. Fixes bug 122 #6791253. 123 * Wed Nov 12 2008 Jerry Tan <jerry.tan@sun.com> 124 - Bump to 0.3.12 125 * Mon Oct 13 2008 Brian Cameron <brian.cameron@sun.com> 126 - Bump to 0.3.11. 127 * Tue Sep 30 2008 Brian Cameron <brian.cameron@sun.com> 128 - Bump to 0.3.10. 129 * Wed Sep 17 2008 Brian Cameron <brian.cameron@sun.com> 130 - Bump to 0.3.9. Remove upstream patch pigment-01-m4.diff. 131 * Thu Sep 10 2008 Jerry Yu <jijun.yu@sun.com> 132 - Bump to 0.3.8. 133 - Add patch pigment-01-m4.diff. 134 * Thu Jul 31 2008 Brian Cameron <brian.cameron@sun.com> 135 - Bump to 0.3.7. 136 * Wed Jul 23 2008 Brian Cameron <brian.cameron@sun.com> 137 - Bump to 0.3.6. 138 * Wed Mar 19 2008 Brian Cameron <brian.cameron@sun.com> 139 - Bump to 0.3.5. 140 * Wed Feb 06 2008 Brian Cameron <brian.cameron@sun.com> 141 - Bump to 0.3.4. 142 * Wed Jan 16 2008 Brian Cameron <brian.cameron@sun.com> 143 - Bump to 0.3.3. Remove upstream patch. 144 * Fri Oct 05 2007 Brian Cameron <brian.cameron@sun.com> 145 - Bump to 0.3.2 146 * Sun Aug 05 2007 Brian Cameron <brian.cameron@sun.com> 147 - Bump to 0.3.1 148 * Tue Jul 10 2007 Brian Cameron <brian.cameron@sun.com> 149 - Create spec file. 150 151