fe6bb4d7d3
OBS-URL: https://build.opensuse.org/package/show/security/tomoyo-tools?expand=0&rev=e91351c363655c74141e517edf0fa7ec
75 lines
2.0 KiB
RPMSpec
75 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package tomoyo-tools
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
|
|
%define downloadver 2.3.0-20110511
|
|
BuildRequires: help2man ncurses-devel
|
|
|
|
Name: tomoyo-tools
|
|
License: GPLv2
|
|
Group: Development/Tools/Other
|
|
AutoReqProv: on
|
|
Summary: A Friendly Greeting Program
|
|
Url: http://sourceforge.jp/projects/tomoyo/
|
|
Version: 2.3.0.20110511
|
|
Release: 81
|
|
Source0: http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/tomoyo-tools-%{downloadver}.tar.gz
|
|
Patch0: %{name}-makefile.patch
|
|
Patch1: tomoyo-clone.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
TOMOYO userland utilities.
|
|
|
|
%prep
|
|
%setup -q -n %{name}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
%build
|
|
make CC="gcc $RPM_OPT_FLAGS"
|
|
|
|
%install
|
|
make install INSTALLDIR=$RPM_BUILD_ROOT
|
|
if [ "%_lib" = "lib64" ]; then
|
|
mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/lib64
|
|
fi
|
|
mkdir $RPM_BUILD_ROOT/etc
|
|
mkdir $RPM_BUILD_ROOT/etc/tomoyo
|
|
mv $RPM_BUILD_ROOT/usr/%_lib/tomoyo/tomoyotools.conf $RPM_BUILD_ROOT/etc
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-, root, root)
|
|
%doc COPYING.tomoyo README.tomoyo
|
|
%dir /etc/tomoyo
|
|
%attr(700,root,root) /sbin/tomoyo-init
|
|
%_libdir/lib*.so*
|
|
%dir %_libdir/tomoyo
|
|
%_libdir/tomoyo/*
|
|
/usr/sbin/*
|
|
/usr/share/man/man8/*
|
|
%config(noreplace) /etc/tomoyotools.conf
|
|
|
|
%changelog
|