posixovl/posixovl.spec
Jan Engelhardt f0d3aa35d7 Accepting request 143922 from home:sbrabec:gpg-offline-verify
Verify GPG signature: Perform build-time offline GPG verification.
Please verify that included keyring matches your needs.
For manipulation with the offline keyring, please use gpg-offline tool from openSUSE:Factory, devel-tools-building or Base:System.
See the man page and/or /usr/share/doc/packages/gpg-offline/PACKAGING.HOWTO.

If you need to build your package for older products and don't want to mess spec file with ifs, please follow PACKAGING.HOWTO:
you can link or aggregate gpg-offline from
devel:tools:building or use following trick with "osc meta prjconf":

--- Cut here ----
%if 0%{?suse_version} <= 1220
Substitute: gpg-offline
%endif

Macros:
%gpg_verify(dnf) \
%if 0%{?suse_version} > 1220\
echo "WARNING: Using %%gpg_verify macro from prjconf, not from gpg-offline package."\
gpg-offline --directory="%{-d:%{-d*}}%{!-d:%{_sourcedir}}" --package="%{-n:%{-n*}}%{!-n:%{name}}""%{-f: %{-f*}}" --verify %{**}\
%else\
echo "WARNING: Dummy prjconf macro. gpg-offline is not available, skipping %{**} GPG signature verification!"\
%endif\
%nil
-----------------

OBS-URL: https://build.opensuse.org/request/show/143922
OBS-URL: https://build.opensuse.org/package/show/filesystems/posixovl?expand=0&rev=8
2012-12-09 22:36:42 +00:00

70 lines
1.9 KiB
RPMSpec

#
# spec file for package posixovl
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: posixovl
Version: 1.2
Release: 0
Summary: POSIX overlay filesystem
License: GPL-2.0+
Group: System/Filesystems
Url: http://posixovl.sf.net/
Source: %name-%version.tar.xz
Source1: %name-%version.tar.xz.asc
# Next version should be signed with a new key. Use "gpg-offline --package=posixovl --delete 844C4360" then.
Source2: %name.keyring
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf >= 2.61
BuildRequires: automake >= 1.9
BuildRequires: gpg-offline
BuildRequires: libattr-devel
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(fuse) >= 2.6.5
%description
A FUSE filesystem that provides POSIX functionality - UNIX-style
permissions, ownership, special files - for filesystems that do not
have such, e.g. vfat. It is a modern equivalent of the UMSDOS fs.
Author:
-------
Jan Engelhardt
%prep
%gpg_verify %{S:1}
%setup -qn %name
%build
./autogen.sh;
%configure
make %{?_smp_mflags};
%install
b="%buildroot";
make install DESTDIR="$b";
mkdir -p "$b/%_mandir/man8";
ln -s ../man1/posixovl.1 "$b/%_mandir/man8/mount.posixovl.8";
%files
%defattr(-,root,root)
%_sbindir/*
%_mandir/man*/*
%changelog