SUNWlibsexy.spec
author an230044
Mon, 27 Apr 2009 10:20:06 +0000
branchopensolaris-2008-11
changeset 14400 9bcbbac16a07
parent 13645 4afeeba90fab
child 15650 dbcf7e3715dd
permissions -rw-r--r--
#Bug 6755267 multiple security vulnerabilities in libpng before 1.2.32

#
# spec file for package SUNWlibsexy
#
# includes module(s): libsexy
#
# Owner: erwannc

%include Solaris.inc

Name:         SUNWlibsexy
License:      Other
Group:        System/Libraries
Version:      0.1.11
Summary:      libsexy is a collection of GTK+ widgets that extend the functionality of such standard widget.
Source:       http://releases.chipx86.com/libsexy/libsexy/libsexy-%{version}.tar.gz
URL:          http://www.chipx86.com/wiki/Libsexy
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Docdir:	      %{_defaultdocdir}/doc
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright

Autoreqprov:  on
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWlxml-devel
BuildRequires: SUNWiso-codes-devel
Requires: SUNWgnome-base-libs
Requires: SUNWlxml
Requires: SUNWiso-codes

%package devel
Summary:       %{summary} - development files
SUNW_BaseDir:  %{_basedir}
%include default-depend.inc
Requires:      %name

%prep
%setup -q -n libsexy-%version

%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
  CPUS=1
fi

libtoolize --copy --force
aclocal $ACLOCAL_FLAGS
autoheader
automake -a -c -f 
autoconf
./configure --prefix=%{_prefix} \
		--libdir=%{_libdir} \
        --disable-gtk-doc
make -j $CPUS

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'

%clean 
rm -rf $RPM_BUILD_ROOT

%files 
%doc README AUTHORS
%doc(bzip2) COPYING NEWS ChangeLog
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/doc
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %dir %{_libdir}
%{_libdir}/*.so*

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %dir %{_includedir}
%dir %attr (0755, root, bin) %dir %{_includedir}/libsexy
%{_includedir}/libsexy/*
%dir %attr (0755, root, sys) %dir %{_datadir}
%dir %attr (0755, root, bin) %dir %{_datadir}/gtk-doc
%{_datadir}/gtk-doc/*
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*

%changelog
* Thu Sep 18 2008 - [email protected]
- Fix up pkg'ing section.
* Wed Jun 18 2008 - [email protected]
- enalbe this component on SPARC
* Wed Mar 26 2008 - [email protected]
- change to not build this component on SPARC
* Wed Feb 13 2008 - [email protected]
- moved to SFO
* Fri Aug 24 2007 Erwann Chenede <[email protected]>
- bumped to 0.1.11 and removed patch
* Fri Feb 16 2007 - Doug Scott <[email protected]>
- Fixed perm for gtk-doc directory
* Wed Nov 22 2006 - [email protected]
- Initial spec