specs/SUNWtgnome-tstripe.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 22083 e5c206bc075a
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca

#
# spec file for package SUNWtgnome-tstripe
#Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner stephen

%define OSR 6160:n/a

%include Solaris.inc

# NOTE: If the version is bumped the new tarball must be uploaded to the
#       Sun Download Center. Contact GNOME RE for assistance.
%define tstripe_version 0.6.8

Name:                    SUNWtgnome-tstripe
#IPS_package_name:        gnome/trusted/trusted-stripe
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions
Summary:                 GNOME Trusted Stripe
License:                 LGPL/GPL
Vendor:                  gnu.org
Version:                 %{default_pkg_version}
Source:			 http://dlc.sun.com/osol/jds/downloads/extras/tjds/tsoljds-tstripe-%{tstripe_version}.tar.bz2
%if %build_l10n
Source1:                 l10n-configure.sh
%endif
SUNW_BaseDir:            %{_basedir}
SUNW_Copyright:		 %{name}.copyright
BuildRoot:               %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
Requires: SUNWlibgnomecanvas
Requires: SUNWgnome-panel
Requires: SUNWtgnome-tsol-libs
BuildRequires: SUNWlibgnome-keyring
#BuildRequires: SUNWlibgnomecanvas-devel
#BuildRequires: SUNWgnome-panel-devel
#BuildRequires: SUNWtgnome-tsol-libs-devel

%if %build_l10n
%package l10n
Summary:                 %{summary} - l10n files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires:                %{name}
%endif

%prep
%setup -q -n tsoljds-tstripe-%{tstripe_version}

%build
export ACLOCAL_FLAGS="-I /usr/share/aclocal"

libtoolize -f
intltoolize -c -f --automake

%if %build_l10n
bash -x %SOURCE1 --enable-copyright
%endif

aclocal $ACLOCAL_FLAGS
autoconf
autoheader
automake -acf

CFLAGS="%optflags -D_POSIX_PTHREAD_SEMANTICS" \
./configure --with-gnome-prefix=%{_prefix} \
            --prefix=%{_prefix} \
            --sysconfdir=%{_sysconfdir} \
	    --mandir=%{_mandir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, other)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/tsoljds-tstripe
%{_bindir}/tsoljds-setssheight
%{_bindir}/tsoljds-xagent-proxy
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/TrustedPathExecutables
%{_datadir}/gnome/gtkrc.tjds

%if %build_l10n
%files l10n
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale
%endif

%changelog
* Wed Jul 28 2010 - [email protected]
- uprev version, update copyright, remove upstream patches

* Thu Jul 07 2008 - [email protected]
- Uprev version, remove updtream patch

* Fri May 16 2008 - [email protected]
- Uprev version, remove upstream patches, remove conditional build

* Thu May 08 2008 - [email protected]
- Add SUNWtgnome-tstripe-02-po.diff for cs.po
  Contributed l10n from Hana Zalska <[email protected]>

* Tue Mar 25 2008 - [email protected]
- Removed upstreamed scripts.
- Removed upstreamed tsoljds-tstripe-01-pwd-fns.diff

* Tue Mar 25 2008 - [email protected]
- Revert to 0.1.5 because 0.6 tarball missing po dir and breaking build.

* Fri Mar 14 2008 - [email protected]
- update version. point source at dlc.sun.com

* Wed Sep 19 2007 - [email protected]
- Add two new binaries to match the new tarball

* Wed Sep 19 2007 - [email protected]
- Remove getpwuid_r patch, tsoljds-tstripe-01-pwd-fns.diff, as they it is not
  needed from snv_73 on.

* Tue Aug 14 2007 - [email protected]
- Add patch tsoljds-tstripe-01-pwd-fns.diff to use the correct versions of the
  password functions. The issue only

* Tue Mar 27 2007 - [email protected]
- Remove instances of mkinstalldirs as it is not needed and the mkinstalldirs
  file has been removed from the svn repository.

* Tue Jan 20 2007 - [email protected]
- Added new configuration file to %files section

* Tue Oct 17 2006 - [email protected]
- Add '-lnsl' to LDFLAGS to fix build.

* Tue Oct 17 2006 - [email protected]
- Add 'make' to the %build section as only having 'make install' was populating
  $RPM_BUILD_ROOT even when the package failed.

* Fri Sep 15 2006 - [email protected]
- Add *-10n package.

* Sun Jul 30 2006 - [email protected]
- Always use nightly tarballs as source.

* Tue Jul 11 2006 - [email protected]
- Add autogen.sh commands to %prep to permit building from 'cvs co' tarballs.

* Wed May 24 2006 - [email protected]
- remove man page from files and shorten summary

* Wed Mar  8 2006 - [email protected]
- Add %dir %attr for %{_datadir} as %defattr is wrong for this dir.

* Mon Mar  6 2006 - Damien Carbery <[email protected]>
- Added Build/BuildRequires for SUNWtgnome-tsol-libs/-devel.

* Thu Mar  2 2006 - Damien Carbery <[email protected]>
- Added Build/BuildRequires for SUNWgnome-panel/-devel.

* Tue Feb 14 2006 - <[email protected]>
- Added Build/BuildRequires for SUNWgnome-base-libs/-devel.

* Fri Jan 27 2006 - <[email protected]>
- Erwann moved tsolmetacity changes back to base metacity so renamed this file
- and make it only build the stripe now

* Mon Oct 03 2005 - <[email protected]>
- added trusted stripe

* Fri Aug 19 2005 - <[email protected]>
- moved patch to base metacity spec file
- edited references to not pass in build dir - must be used with Laca's relative
- path pkgbuild patch

* Wed Aug 17 2005 - <[email protected]>
- created