-
Notifications
You must be signed in to change notification settings - Fork 18
/
pwsafe.spec.in
97 lines (78 loc) · 1.95 KB
/
pwsafe.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
# pwsafe.spec
#
# Copyright (c) 2004-2020 Nicolas S. Dade nic.dade@gmail.com
#
%define name pwsafe
%define version @VERSION@
%define release 1
%define manifest %{_builddir}/%{name}-%{version}-%{release}.manifest
# required items
Name: %{name}
Version: %{version}
Release: %{release}
License: GPLv2+
Group: Application/Misc
# optional items
#Vendor: Nicolas S. Dade
#Distribution:
#Icon:
URL: https://github.com/nsd20463/pwsafe
Packager: Nicolas S. Dade nic.dade@gmail.com
# source + patches
Source: %{name}-%{version}.tar.gz
#Source1:
#Patch:
#Patch1:
BuildRequires: gcc-c++
BuildRequires: gcc
BuildRequires: readline-devel, ncurses-devel, openssl-devel
BuildRequires: libXt-devel, libXext-devel, libXau-devel, libXdmcp-devel
BuildRequires: libSM-devel, libICE-devel, libXmu-devel
# RPM info
#Provides:
#Requires:
#Conflicts:
#Prereq:
#Prefix: /usr
BuildRoot: /var/tmp/%{name}-%{version}
Summary: a commandline program to manage encrypted password databases
%description
pwsafe is a unix commandline program that manages encrypted password databases.
pwsafe is compatible with Counterpane's Passwordsafe program versions 2.x and earlier.
%prep
%setup -q
#%patch0 -p1
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
%makeinstall
# __os_install_post is implicitly expanded after the
# %install section... do it now, and then disable it,
# so all work is done before building manifest.
%{?__os_install_post}
%define __os_install_post %{nil}
# build the file list automagically into %{manifest}
cd $RPM_BUILD_ROOT
rm -f %{manifest}
find . -type d \
| sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' >> %{manifest}
find . -type f \
| sed 's,^\.,\%attr(-\,root\,root) ,' >> %{manifest}
find . -type l \
| sed 's,^\.,\%attr(-\,root\,root) ,' >> %{manifest}
#%pre
#%post
#%preun
#%postun
%clean
rm -f %{manifest}
rm -rf $RPM_BUILD_ROOT
%files -f %{manifest}
%defattr(-,root,root)
#%doc README
#%docdir
#%config
%changelog