-
Notifications
You must be signed in to change notification settings - Fork 0
/
libsecrm.spec.in
98 lines (77 loc) · 2.37 KB
/
libsecrm.spec.in
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
94
95
96
97
98
# Special names here like {__make} come from /usr/lib/rpm/macros, /usr/lib/rpm/macros.rpmbuild
%define lsr_version @VERSION@
%define lsr_release 1
%define lsr_name libsecrm
%define lsr_url https://libsecrm.sourceforge.io
%define lsr_descr LibSecRm is a library which intercepts system calls that may lead to \
insecure data (file and memory) deletion. The insecure removal functions are \
replaced by secure ones (wiping the data the same way as the shred utility).
%define lsr_lic GPLv3+
%define lsr_summary Library for secure removal of data
Summary: %{lsr_summary}
Name: %{lsr_name}
Version: %{lsr_version}
Release: %{lsr_release}
URL: %{lsr_url}
BugURL: %{lsr_url}
License: %{lsr_lic}
# group must be one of the listed in /usr/share/doc/rpm-.../GROUPS or /usr/share/rpmlint/config.d/distro.conf
Group: System/Libraries
Source: %{lsr_name}-%{lsr_version}.tar.gz
BuildRoot: %{_tmppath}/%{lsr_name}-build
BuildRequires: gcc, glibc, glibc-devel, make
%description
%{lsr_descr}
%prep
%setup -q
%configure --enable-static --enable-shared --enable-public-interface
%build
# % make - deprecated
%make_build
%install
# % makeinstall_std - deprecated
%make_install
%post
#echo {_libdir}/libsecrm.so >> /etc/ld.so.preload
#touch {_sysconfdir}/libsecrm.progban
#touch {_sysconfdir}/libsecrm.fileban
/sbin/ldconfig
#install-info
%preun
#sed -i 's/^.*libsecrm.so//g' /etc/ld.so.preload
%postun -p /sbin/ldconfig
%clean
%{__rm} -rf $RPM_BUILD_ROOT
# % define _unpackaged_files_terminate_build 0
%files
%defattr(-,root,root)
%{_libdir}/libsecrm.so
%{_libdir}/libsecrm.so.11
%{_libdir}/libsecrm.so.11.0.0
%{_libdir}/libsecrm.la
%doc %{_infodir}/libsecrm.info%_extension
%doc %{_mandir}/man3/libsecrm.3%_extension
%ghost %config(missingok,noreplace) %attr(644,-,-) %{_sysconfdir}/libsecrm.progban
%ghost %config(missingok,noreplace) %attr(644,-,-) %{_sysconfdir}/libsecrm.fileban
%doc README
%doc COPYING
%doc AUTHORS
%doc ChangeLog
%changelog
############################################################################
%package devel
Summary: %{lsr_summary} - development package
Release: %{lsr_release}
URL: %{lsr_url}
BugURL: %{lsr_url}
License: %{lsr_lic}
Group: Development/C
Requires: %{lsr_name} = %{lsr_version}
%files devel
%defattr(-,root,root)
%{_includedir}/libsecrm.h
%{_libdir}/libsecrm.a
%{_libdir}/pkgconfig/libsecrm.pc
%description devel
This is the development package for LibSecRm.
%{lsr_descr}