Fri, 03 Aug 2012 15:56:30 +0200
Use upstream man pages to avoid local help2man failures, likely due to
shell capability assumptions or cross platform environment variance.
The upstream man pages are probably better formatted anyway.
michael@61 | 1 | ## |
michael@61 | 2 | ## cryptbreaker.spec -- OpenPKG RPM Package Specification |
michael@61 | 3 | ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@61 | 4 | ## |
michael@61 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@61 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@61 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@61 | 8 | ## copies. |
michael@61 | 9 | ## |
michael@61 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@61 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@61 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@61 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@61 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@61 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@61 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@61 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@61 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@61 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@61 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@61 | 21 | ## SUCH DAMAGE. |
michael@61 | 22 | ## |
michael@61 | 23 | |
michael@61 | 24 | # package information |
michael@61 | 25 | Name: cryptbreaker |
michael@61 | 26 | Summary: Unix Encryption Cracking Tool |
michael@61 | 27 | URL: http://axion.physics.ubc.ca/cbw.html |
michael@61 | 28 | Vendor: Robert W. Baldwin |
michael@61 | 29 | Packager: Michael Schloh von Bennewitz |
michael@387 | 30 | Distribution: Europalab Networks Production |
michael@61 | 31 | Class: EVAL |
michael@61 | 32 | Group: Cryptography |
michael@61 | 33 | License: Unspecified |
michael@61 | 34 | Version: 20090106 |
michael@61 | 35 | Release: 20090106 |
michael@61 | 36 | |
michael@61 | 37 | # list of sources |
michael@61 | 38 | Source0: ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/cbw.tar.gz |
michael@61 | 39 | Patch0: cryptbreaker.patch |
michael@61 | 40 | |
michael@61 | 41 | # build information |
michael@61 | 42 | Prefix: %{l_prefix} |
michael@61 | 43 | BuildRoot: %{l_buildroot} |
michael@85 | 44 | BuildPreReq: OpenPKG, openpkg >= 20040130, make |
michael@61 | 45 | PreReq: OpenPKG, openpkg >= 20040130 |
michael@61 | 46 | AutoReq: no |
michael@61 | 47 | AutoReqProv: no |
michael@61 | 48 | |
michael@61 | 49 | %description |
michael@61 | 50 | The crypt breaker's workbench is a simple program written long ago |
michael@61 | 51 | to recover the original contents of encrypted files with no knowlege |
michael@61 | 52 | of the encryption key used. It works on most files encrypted with |
michael@61 | 53 | the standard Unix crypt(1) command. |
michael@61 | 54 | |
michael@61 | 55 | %track |
michael@61 | 56 | prog cryptbreaker = { |
michael@61 | 57 | disabled |
michael@61 | 58 | comment = "msvb: tracking is disabled as sources are unversioned" |
michael@61 | 59 | version = %{version} |
michael@61 | 60 | url = ftp://ftp.ox.ac.uk/pub/crypto/cryptanalysis/ |
michael@63 | 61 | regex = cbw\.tar\.gz |
michael@61 | 62 | } |
michael@61 | 63 | |
michael@61 | 64 | %prep |
michael@61 | 65 | # unpack sources |
michael@61 | 66 | %setup -q -c |
michael@61 | 67 | %patch -p0 |
michael@61 | 68 | |
michael@61 | 69 | %build |
michael@61 | 70 | %{l_make} %{l_mflags -O} |
michael@61 | 71 | |
michael@61 | 72 | %install |
michael@61 | 73 | rm -rf $RPM_BUILD_ROOT |
michael@61 | 74 | %{l_shtool} mkdir -f -p -m 755 \ |
michael@61 | 75 | $RPM_BUILD_ROOT%{l_prefix}/bin |
michael@61 | 76 | %{l_shtool} install -c -m 755 \ |
michael@61 | 77 | cbw $RPM_BUILD_ROOT%{l_prefix}/bin/ |
michael@61 | 78 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@61 | 79 | |
michael@61 | 80 | %files -f files |
michael@61 | 81 | |
michael@61 | 82 | %clean |
michael@61 | 83 | rm -rf $RPM_BUILD_ROOT |
michael@61 | 84 |