pgp2/pgp2.spec

changeset 740
e7caf02f98eb
parent 95
c15febc142b1
equal deleted inserted replaced
0:94b789e3dc16 1:b85f871129ea
36 Packager: The OpenPKG Project 36 Packager: The OpenPKG Project
37 Distribution: OpenPKG [PLUS] 37 Distribution: OpenPKG [PLUS]
38 Group: Cryptography 38 Group: Cryptography
39 License: GPL 39 License: GPL
40 Version: %{V_long} 40 Version: %{V_long}
41 Release: 20040916 41 Release: 20090106
42 42
43 # list of sources 43 # list of sources
44 Source0: ftp://ftp.pgpi.org/pub/pgp/%{V_short}/src/pgp%{V_strip}is.tar.gz 44 Source0: ftp://ftp.pgpi.org/pub/pgp/%{V_short}/src/pgp%{V_strip}is.tar.gz
45 Source1: language.idx 45 Source1: language.idx
46 Patch0: pgp2.patch 46 Patch0: pgp2.patch
74 %{l_tar} -xf pgp%{V_strip}ii.tar 74 %{l_tar} -xf pgp%{V_strip}ii.tar
75 %patch -p0 75 %patch -p0
76 76
77 # patch distribution 77 # patch distribution
78 %{l_shtool} subst \ 78 %{l_shtool} subst \
79 -e 's;\/usr\/local\/lib\/pgp;%{l_prefix}\/etc\/pgp2;' \ 79 -e 's;\/usr\/local\/lib\/pgp;%{l_prefix}\/etc\/pgp;' \
80 src/fileio.h 80 src/fileio.h
81 81
82 %build 82 %build
83 # build program 83 # build program
84 cd src 84 cd src
100 %install 100 %install
101 rm -rf $RPM_BUILD_ROOT 101 rm -rf $RPM_BUILD_ROOT
102 %{l_shtool} mkdir -f -p -m 755 \ 102 %{l_shtool} mkdir -f -p -m 755 \
103 $RPM_BUILD_ROOT%{l_prefix}/bin \ 103 $RPM_BUILD_ROOT%{l_prefix}/bin \
104 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \ 104 $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
105 $RPM_BUILD_ROOT%{l_prefix}/etc/pgp2 105 $RPM_BUILD_ROOT%{l_prefix}/etc/pgp
106 106
107 # install program and manpage files 107 # install program and manpage files
108 %{l_shtool} install -c -s -m 755 \ 108 %{l_shtool} install -c -s -m 755 \
109 src/pgp $RPM_BUILD_ROOT%{l_prefix}/bin/pgp2 109 src/pgp $RPM_BUILD_ROOT%{l_prefix}/bin/pgp
110 %{l_shtool} install -c -m 644 \ 110 %{l_shtool} install -c -m 644 \
111 doc/pgp.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/pgp2.1 111 doc/pgp.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/pgp.1
112 112
113 # install configuration, language, and help files 113 # install configuration, language, and help files
114 %{l_shtool} install -c -m 644 \ 114 %{l_shtool} install -c -m 644 \
115 config.txt *.hlp doc/pgpdoc[12].txt \ 115 config.txt *.hlp doc/pgpdoc[12].txt \
116 language.txt %{SOURCE language.idx} \ 116 language.txt %{SOURCE language.idx} \
117 $RPM_BUILD_ROOT%{l_prefix}/etc/pgp2/ 117 $RPM_BUILD_ROOT%{l_prefix}/etc/pgp/
118 118
119 # determine installation files and mark configs 119 # determine installation files and mark configs
120 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ 120 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
121 %{l_files_std} \ 121 %{l_files_std} \
122 '%config %{l_prefix}/etc/pgp2/config.txt' 122 '%config %{l_prefix}/etc/pgp/config.txt'
123 123
124 %files -f files 124 %files -f files
125 125
126 %clean 126 %clean
127 rm -rf $RPM_BUILD_ROOT 127 rm -rf $RPM_BUILD_ROOT

mercurial