blob: 5f4f1bf96f989c24b2ba53da9c12e2a03ffd028f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
#
# spec file for package fileshareset
#
# Copyright (c) 2014 François Andriot <francois.andriot@free.fr>
#
# 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:/www.trinitydesktop.org/
#
# Extract from 'fileshareset.cpp'
#copyright : (C) 2003 SuSE AG
#email : Uwe.Gansert@suse.de
Name: fileshareset
Version: 2.0
Release: 1%{?dist}
Summary: Set and list fileshares
Group: System/Management
URL: http://www.trinitydesktop.org/
%if 0%{?suse_version}
License: GPL-2.0+
%else
License: GPLv2+
%endif
#Vendor: Trinity Project
#Packager: Francois Andriot <francois.andriot@free.fr>
Prefix: /usr
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: %{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
#Requires:
%description
This package contains the the fileshareset utility to allow users to
add or remove file shares. It's also possible to list currently shared
locations. /etc/security/fileshare.conf is the main configuration file
This utility was originally written for openSUSE KDE3.
%prep
%setup -q -n fileshareset2
aclocal
autoconf
automake -a -c
%build
export CXXFLAGS="$CXXFLAGS -fPIE"
export CFLAGS="$CXXFLAGS -fPIE"
export LDFLAGS="$LDFLAGS -pie"
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%__make install DESTDIR=$RPM_BUILD_ROOT
# Install the man page
%__install -D -m 644 man/fileshareset.8 %{?buildroot}%{_mandir}/man8/fileshareset.8
# Install the default configuration file
mkdir -p "${RPM_BUILD_ROOT}/etc/security/"
echo "RESTRICT=yes" > "${RPM_BUILD_ROOT}%{_sysconfdir}/security/fileshare.conf"
%files
%defattr(-,root,root,-)
%{_bindir}/filesharelist
%{_bindir}/fileshareset
%{_mandir}/man8/fileshareset.8*
%{_sysconfdir}/security/fileshare.conf
%changelog
* Sun Oct 5 2014 François Andriot <francois.andriot@free.fr> - 1.0-1
- Initial build for TDE R14
|