SUNWlibsexy.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 16431 d7743d81b302
child 17864 337913e88a9d
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.

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

%define OSR 10058:0.11.1

%include Solaris.inc

Name:         SUNWlibsexy
License:      LGPL
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

# 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

%package devel
Summary:       %{summary} - development files
SUNW_BaseDir:  %{_basedir}
%include default-depend.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

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
* 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