seahorse/seahorse.spec

130 lines
4.4 KiB
RPMSpec

#
# spec file for package seahorse (Version 0.8)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: seahorse
BuildRequires: gnome-themes gpgme-devel intltool libglade2-devel libgnomeprintui-devel libsoup-devel libwnck-devel mDNSResponder-devel nautilus-devel openldap2 openldap2-devel perl-XML-Parser update-desktop-files
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
License: GNU General Public License (GPL)
Group: System/GUI/GNOME
Autoreqprov: on
PreReq: gconf2
Version: 0.8
Release: 50
Summary: GNOME2 interface for gnupg
Source: ftp://ftp.gnome.org/pub/gnome/sources/seahorse/%{name}-%{version}.tar.bz2
Patch: %{name}-uninited.patch
Patch2: %{name}-gpgme-version.patch
URL: http://seahorse.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Seahorse is a gnome2 interface for gnupg. It uses gpgme as the backend.
Authors:
--------
Jacob Perkins <jap1@users.sourceforge.net>
Jose Carlos Garcia Sogo <jsogo@users.sourceforge.net>
Jean Schurger <jk24@users.sourceforge.net>
Nate Nielsen <nielsen@memberwebs.com>
Adam Schreiber <sadam@clemson.edu>
%prep
%setup
%patch
%patch2
%build
rename no nb po/no.*
sed "s/\(ALL_LINGUAS.*\) no /\1 nb /" configure.in > configure.in.tmp && mv configure.in.tmp configure.in
%{?suse_update_config:%{suse_update_config -f}}
autoreconf -f -i
CFLAGS="$RPM_OPT_FLAGS -I/opt/gnome/include -fno-strict-aliasing -DLDAP_DEPRECATED" \
./configure \
--prefix=%prefix \
--libdir=%prefix/%_lib \
--sysconfdir=%sysconfdir \
--libexecdir=%{prefix}/lib/seahorse \
--mandir=%prefix/share/man \
--localstatedir=/var/%_lib \
--disable-gedit
make
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make -i install DESTDIR=$RPM_BUILD_ROOT
#remove the stuff we don't want
rm -rf $RPM_BUILD_ROOT/var/%_lib/scrollkeeper
rm -rf $RPM_BUILD_ROOT%{prefix}/%{_lib}/lib*.*a
( cd ${RPM_BUILD_ROOT}/%{_datadir}/mime/ && rm -rf XMLnamespaces globs mime application magic )
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%find_lang %{name}
%suse_update_desktop_file %{name} Security
%suse_update_desktop_file %{name}-pgp-preferences Security
# Hack to work around check for installed icons in .desktop files
mkdir -p $RPM_BUILD_ROOT%{prefix}/share/pixmaps
cp %{prefix}/share/icons/HighContrastLargePrint/48x48/mimetypes/gnome-mime-application-pgp-keys.png \
$RPM_BUILD_ROOT%{prefix}/share/pixmaps/gnome-mime-application-pgp-keys.png
rm $RPM_BUILD_ROOT%{prefix}/%{_lib}/nautilus/extensions-1.0/libnautilus-seahorse.*a
%post
%run_ldconfig
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
opt/gnome/bin/gconftool-2 --makefile-install-rule etc/opt/gnome/gconf/schemas/%{name}.schemas >/dev/null
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database %{prefix}/share/mime > /dev/null
fi
%postun
%run_ldconfig
if test -x usr/bin/update-mime-database ; then
usr/bin/update-mime-database %{prefix}/share/mime > /dev/null
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{prefix}/bin/*
%{prefix}/%{_lib}/*.so*
%{prefix}/%{_lib}/nautilus/extensions-1.0/libnautilus-seahorse.so
%{prefix}/share/applications/*.desktop
%{prefix}/share/control-center-2.0
%{prefix}/share/mime-info/*
%{prefix}/share/pixmaps/*.png
%{prefix}/share/seahorse
%{sysconfdir}/gconf/schemas/%{name}.schemas
%{prefix}/share/mime/packages/seahorse.xml
%changelog -n seahorse
* Thu Dec 07 2006 - sbrabec@suse.cz
- Fixed MIME database path in scriptlets (#225666).
- Use correct PreReq.
- Do not touch obsolete run-scrollkeeper-update.
* Mon Dec 04 2006 - jhargadon@suse.de
- removed ownership of /opt/gnome/share/mime (#225667)
* Mon Sep 04 2006 - ro@suse.de
- fix build (find icon file)
* Tue Jul 18 2006 - nadvornik@suse.cz
- fixed check for minimal gpgme version
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 14 2006 - kukuk@suse.de
- Add gpgme-devel to nfb
* Fri Jan 06 2006 - gekker@suse.de
- Initial import into autobuild, version 0.8 (#131375)