specs/SUNWlibsexy.spec
author migi
Thu, 23 Dec 2010 17:02:42 +0000
branchgnome-2-30
changeset 21193 92a354984159
parent 20963 c4aa3543c429
child 21911 06ff1be61334
permissions -rw-r--r--
2010-12-23 Michal Pryc <[email protected]> * specs/SUNWgamin.spec: * specs/SUNWgnome-keyring.spec: * specs/SUNWgnome-gedit-plugins.spec: * specs/SUNWfsexam.spec: * specs/SUNWgnome-display-mgr.spec: * specs/SUNWlibical.spec: * specs/SUNWopenproj.spec: * specs/SUNWlibgee.spec: * specs/SUNWslocate.spec: * specs/SUNWopensolaris-backgrounds.spec: * specs/SUNWgnonlin.spec: * specs/SUNWdialog.spec: * specs/SUNWvala.spec: * specs/SUNWpython-setuptools.spec: * specs/SUNWlibproxy-mozjs.spec: * specs/SUNWdesktop-cache.spec: * specs/SUNWlibproxy-gnome.spec: * specs/SUNWgnome-base-libs.spec: * specs/SUNWpython26-setuptools.spec: * specs/SUNWavant.spec: * specs/SUNWlibsexy.spec: * specs/SUNWlibgweather.spec: * specs/SUNWlibgdata.spec: * specs/SUNWxdg-sound-theme.spec: * specs/SUNWlibchamplain.spec: * specs/SUNWjokosher.spec: * specs/SUNWmyspell-dictionary-l10n.spec: Adjusted to fit Source Juicer. Fixes 17183.

#
# spec file for package SUNWlibsexy
#
# includes module(s): libsexy
#
%define owner erwannc

%define OSR 10058:0.11.1

%include Solaris.inc

Name:         SUNWlibsexy
IPS_package_name: library/desktop/libsexy
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries
License:      LGPL
Version:      0.1.11
Vendor:       Other
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

# date:2009-07-16 type:bug owner:chrisk
Patch1:       libsexy-01-gtk-includes.diff

Autoreqprov:  on
BuildRequires: SUNWgtk2-devel
BuildRequires: SUNWlxml-devel
BuildRequires: SUNWiso-codes-devel
Requires: SUNWgtk2
Requires: SUNWlxml
Requires: SUNWiso-codes

%include gnome-consolidation.inc

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

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

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

export LDFLAGS="%{_ldflags}"

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
* Tue Apr 20 2010 - [email protected]
- Set LDFLAGS, otherwise stuff in /usr/lib ends up as 64bit versions.
* Sat Jul 18 2009 - [email protected]
- Add missing patch line.
* Thu Jul 16 2009 - [email protected]
- Add patch to work around problem trying to include gtk headers.
* 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