SHA256
1
0
forked from pool/seahorse
seahorse/seahorse.spec

139 lines
4.3 KiB
RPMSpec

#
# spec file for package seahorse (Version 0.8)
#
# Copyright (c) 2007 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
License: GNU General Public License (GPL)
Group: System/GUI/GNOME
Autoreqprov: on
PreReq: gconf2
Version: 0.8
Release: 66
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
%gconf_schemas_prereq
%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 -fno-strict-aliasing -DLDAP_DEPRECATED" \
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \
--libexecdir=%{_prefix}/lib/seahorse \
--mandir=%{_mandir} \
--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%{_libdir}/lib*.*a
( cd ${RPM_BUILD_ROOT}/%{_datadir}/mime/ && rm -rf XMLnamespaces globs mime application magic )
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%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%{_libdir}/nautilus/extensions-1.0/libnautilus-seahorse.*a
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list %{name}.lang >%{name}.lst
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%post
%run_ldconfig
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 %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_prefix}/bin/*
%{_libdir}/*.so*
%{_libdir}/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
%{_prefix}/share/mime/packages/seahorse.xml
%changelog
* Mon Apr 02 2007 - ro@suse.de
- updated gconf scriptlets
* Mon Feb 05 2007 - ro@suse.de
- GNOME moved to /usr
* 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)