SUNWlibgtop.spec revision 20239
19997N/A#
19997N/A#
19997N/A# spec file for package SUNWlibgtop
19997N/A#
19997N/A# includes module(s): libgtop
19997N/A#
20186N/A# Copyright 2008 Sun Microsystems, Inc.
19997N/A# This file and all modifications and additions to the pristine
19997N/A# package are under the same license as the package itself.
19997N/A#
19997N/A%define owner niall
19997N/A#
19997N/A%include Solaris.inc
19997N/A%use libgtop = libgtop.spec
19997N/A
19997N/AName: SUNWlibgtop
19997N/AIPS_package_name: library/libgtop
19997N/AMeta(info.classification): %{classification_prefix}:System/Libraries
19997N/ASummary: Library to get system specific data
19997N/AVersion: %{libgtop.version}
20134N/ASUNW_BaseDir: %{_basedir}
19997N/ASUNW_Copyright: %{name}.copyright
19997N/ALicense: %{libgtop.license}
19997N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
19997N/ASource: %{name}-manpages-0.1.tar.gz
19997N/A
19997N/A%include default-depend.inc
19997N/A%include gnome-consolidation.inc
19997N/ARequires: SUNWglib2
19997N/ARequires: SUNWgnome-component
20857N/ARequires: SUNWgnome-libs
19997N/ARequires: SUNWgnome-config
19999N/ARequires: SUNWlibms
19997N/ARequires: SUNWlibpopt
19997N/ABuildRequires: SUNWxwrtl
19999N/ABuildRequires: SUNWglib2-devel
20001N/ABuildRequires: SUNWgnome-config-devel
19997N/ABuildRequires: SUNWlibpopt-devel
19997N/ABuildRequires: SUNWgnome-libs-devel
19997N/ABuildRequires: SUNWgnome-component-devel
19997N/ABuildRequires: SUNWgnome-config-devel
19997N/A
19997N/A%package devel
19997N/ASummary: Library to get system specific data - developer files
19997N/ASUNW_BaseDir: %{_basedir}
20857N/A%include default-depend.inc
19997N/A%include gnome-consolidation.inc
19997N/ARequires: %name
19997N/A
19997N/A%if %build_l10n
19997N/A%package l10n
19997N/AIPS_package_name: library/libgtop/l10n
19997N/ASummary: %{summary} - l10n files
19997N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_gnome_il10n_basedir}
19997N/A%include default-depend.inc
19997N/A%include gnome-consolidation.inc
19997N/ARequires: %{name}
19997N/A%endif
19997N/A
19997N/A%prep
19997N/Arm -rf %name-%version
19997N/Amkdir %name-%version
19997N/A%libgtop.prep -d %name-%version
19997N/Acd %{_builddir}/%name-%version
19997N/Agzcat %SOURCE0 | tar xf -
19997N/A
19997N/A%build
19997N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
19997N/Aexport CFLAGS="%optflags"
19997N/Aexport RPM_OPT_FLAGS="$CFLAGS"
19997N/Aexport LDFLAGS="%_ldflags"
19997N/Aexport ACLOCAL_FLAGS="-I /usr/share/aclocal"
19997N/A
19997N/A%libgtop.build -d %name-%version
19997N/Aexport PATH=%{_builddir}/%name-%version:$PATH
19997N/Aexport CFLAGS="`echo %optflags | sed -e 's/-xregs=no.frameptr//'`"
19997N/A
19997N/A%install
19997N/A%libgtop.install -d %name-%version
19997N/A# Remove the libgtop2.info file. No other modules install .info files.
19997N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/info
19997N/A# delete files don't need
19997N/Arm -rf $RPM_BUILD_ROOT%{_bindir}
19997N/A
19997N/A%if %build_l10n
19997N/A%else
19997N/A# REMOVE l10n FILES
19997N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
19997N/A%endif
19997N/A
19997N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
19997N/A# install man page
19997N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
19997N/Acd %{_builddir}/%name-%version/sun-manpages
19997N/Amake install DESTDIR=$RPM_BUILD_ROOT
19997N/A
19997N/A%clean
19997N/Arm -rf $RPM_BUILD_ROOT
19997N/A
19997N/A%files
19997N/A%doc -d libgtop-%{libgtop.version} README AUTHORS
19997N/A%doc(bzip2) -d libgtop-%{libgtop.version} COPYING NEWS ChangeLog
19997N/A%dir %attr (0755, root, other) %{_datadir}/doc
19997N/A%defattr(-, root, bin)
19997N/A%dir %attr (0755, root, bin) %{_libdir}
19997N/A%{_libdir}/lib*.so*
19997N/A%dir %attr (0755, root, sys) %{_datadir}
19997N/A%dir %attr(0755, root, bin) %{_mandir}
19997N/A%{_mandir}/*/*
19997N/A
19997N/A%files devel
19997N/A%defattr(-, root, bin)
19997N/A%dir %attr (0755, root, bin) %{_includedir}
19997N/A%{_includedir}/*
19997N/A%dir %attr (0755, root, bin) %{_libdir}
19997N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
19997N/A%{_libdir}/pkgconfig/*
19997N/A%dir %attr (0755, root, sys) %{_datadir}
19997N/A%{_datadir}/gtk-doc/html/*
19997N/A
19997N/A%if %build_l10n
19997N/A%files l10n
19997N/A%defattr (-, root, other)
19997N/A%dir %attr (0755, root, sys) %{_datadir}
19997N/A%{_datadir}/locale
19997N/A%endif
19997N/A
19997N/A%changelog
19997N/A* Fri Sep 11 2009 - jedy.wang@sun.com
19997N/A- Remove SUNWmlib dependency.
19997N/A* Mon Mar 23 2009 - Niall Power <niall.power@sun.com>
19997N/A- Take ownership of spec file
19997N/A* Wed Sep 17 2008 - Henry Zhang <hua.zhang@sun.com>
19997N/A- Add %doc to %files for copyright
19997N/A* Mon July 28 2008 - hua.zhang@sun.com
19997N/A- Add manpage
19997N/A* Thu Jan 10 2008 - damien.carbery@sun.com
19997N/A- Set ACLOCAL_FLAGS to pick up the modified intltool.m4.
19997N/A* Fri Sep 28 2007 - laca@sun.com
19997N/A- delete some unnecessary env variables that break the indiana build
19997N/A* Wed Dec 06 2006 - damien.carbery@sun.com
19997N/A- Add gtk-docs to the devel package.
19997N/A* Fri Sep 22 2006 - hua.zhang@sun.com
19997N/A- Shorten the summary according to Shirley comments.
19997N/A- Delete unuseful binary files from /usr/bin
19997N/A* Thu Aug 23 2006 - damien.carbery@sun.com
19997N/A- Remove the %{_datadir}/info dir as no other modules install .info files.
19997N/A* Thu May 11 2006 - hua.zhang@sun.com
19997N/A- initial version
19997N/A
19997N/A
19997N/A
19997N/A