| 1 | %define VERSION @PACKAGE_VERSION@ |
|---|
| 2 | %define Patchlevel @PACKAGE_RELEASE@ |
|---|
| 3 | |
|---|
| 4 | Name: @PACKAGE_NAME@ |
|---|
| 5 | Version: %{VERSION} |
|---|
| 6 | Release: %{Patchlevel} |
|---|
| 7 | Summary: The Wizard's Toolkit includes command line utilities to convert plaintext to ciphertext, convert ciphertext to plaintext, report properties associated with ciphertext, compute the message digest of a file, and read message digests from a file and authenticate them. In addition, the Wizard's Toolkit includes a a cross-platform C API that includes a number of enciphering and hash methods many developers should find useful in their projects. |
|---|
| 8 | Group: Applications/Multimedia |
|---|
| 9 | License: http://www.wizards-toolkit.org/script/license.php |
|---|
| 10 | Url: http://www.wizards-toolkit.org/ |
|---|
| 11 | Source0: ftp://ftp.wizards-toolkit.org/pub/%{name}/%{name}-%{VERSION}-%{Patchlevel}.tar.bz2 |
|---|
| 12 | |
|---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
|---|
| 14 | BuildRequires: bzip2-devel, zlib-devel |
|---|
| 15 | |
|---|
| 16 | %description |
|---|
| 17 | The Wizard's Toolkit includes command line utilities to convert plaintext to ciphertext, convert ciphertext to plaintext, report properties associated with ciphertext, compute the message digest of a file, and read message digests from a file and authenticate them. In addition, the Wizard's Toolkit includes a a cross-platform C API that includes a number of enciphering and hash methods many developers should find useful in their projects. |
|---|
| 18 | |
|---|
| 19 | The Wizard's Toolkit is free software delivered as a ready-to-run binary distribution or as source code that you may freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. |
|---|
| 20 | |
|---|
| 21 | Here are just a few examples of what the Wizard's Toolkit command line utilities can do: |
|---|
| 22 | |
|---|
| 23 | * Encipher plaintext. |
|---|
| 24 | * Decipher ciphertext. |
|---|
| 25 | * Report properties associated with ciphertext. |
|---|
| 26 | * Compute the message digest of a file. |
|---|
| 27 | * Read message digests from a file and verify them. |
|---|
| 28 | |
|---|
| 29 | Here are just a few examples of what the Wizard's Toolkit Application Programming Interface can do: |
|---|
| 30 | |
|---|
| 31 | * Return files as Binary Large OBjectS |
|---|
| 32 | * Write/read characters, shorts, words, and long words to/from a file |
|---|
| 33 | * Compute a cyclic redunancy checksum |
|---|
| 34 | * Handle C exceptions |
|---|
| 35 | * Generate a secure hash (includes MD5, SHA-1, SHA-224, SHA-256, SHA-384, |
|---|
| 36 | * and SHA-512) |
|---|
| 37 | * Generate a keyed-hash for message authentication |
|---|
| 38 | * Encipher/decipher messages (includes AES, Serpent, and Twofish) |
|---|
| 39 | * Authenticate a user (only secret-key supported at this time) |
|---|
| 40 | * Map content with its associated mime type and file extension |
|---|
| 41 | * Log events to the console or XML-style file |
|---|
| 42 | * Anonymous memory-mapped memory allocation/deallocation |
|---|
| 43 | * Increase entropy with message compression |
|---|
| 44 | * Generate cryptographically-strong random numbers |
|---|
| 45 | * Acquire/relinquish resources |
|---|
| 46 | * Acquire/relinquish semaphores |
|---|
| 47 | * Store/retrieve key-value pairs to/from a hashmap or linked-list |
|---|
| 48 | * Store/retrieve key-value pairs to/from a self-adjusting binary tree |
|---|
| 49 | * Parse or generate a XML document |
|---|
| 50 | * Convenience methods for dealing with strings |
|---|
| 51 | |
|---|
| 52 | %package devel |
|---|
| 53 | Summary: Library links and header files for WizardsToolkit application development |
|---|
| 54 | Group: Development/Libraries |
|---|
| 55 | Requires: %{name} = %{version}-%{release} |
|---|
| 56 | Requires: pkgconfig |
|---|
| 57 | |
|---|
| 58 | %description devel |
|---|
| 59 | WizardsToolkit-devel contains the library links and header files you'll |
|---|
| 60 | need to develop Wizard's Toolkit applications. |
|---|
| 61 | |
|---|
| 62 | If you want to create applications that will use WizardsToolkit code or |
|---|
| 63 | APIs, you need to install WizardsToolkit-devel as well as WizardsToolkit. |
|---|
| 64 | You do not need to install it if you just want to use WizardsToolkit, |
|---|
| 65 | however. |
|---|
| 66 | |
|---|
| 67 | %package doc |
|---|
| 68 | Summary: WizardsToolkit HTML documentation |
|---|
| 69 | Group: Documentation |
|---|
| 70 | |
|---|
| 71 | %description doc |
|---|
| 72 | WizardsToolkit documentation, this package contains usage (for the |
|---|
| 73 | commandline tools) and API (for the libraries) documentation in HTML format. |
|---|
| 74 | Note this documentation can also be found on the WizardsToolkit website: |
|---|
| 75 | http://www.wizards-toolkit.org/ |
|---|
| 76 | |
|---|
| 77 | |
|---|
| 78 | %prep |
|---|
| 79 | %setup -q -n %{name}-%{VERSION}-%{Patchlevel} |
|---|
| 80 | sed -i 's/libltdl.la/libltdl.so/g' configure |
|---|
| 81 | |
|---|
| 82 | %build |
|---|
| 83 | %configure --enable-shared \ |
|---|
| 84 | --disable-static \ |
|---|
| 85 | --with-threads |
|---|
| 86 | # Disable rpath |
|---|
| 87 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
|---|
| 88 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
|---|
| 89 | make %{?_smp_mflags} |
|---|
| 90 | |
|---|
| 91 | |
|---|
| 92 | %install |
|---|
| 93 | rm -rf $RPM_BUILD_ROOT |
|---|
| 94 | |
|---|
| 95 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
|---|
| 96 | cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{VERSION} |
|---|
| 97 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|---|
| 98 | |
|---|
| 99 | # These don't belong here, we include them in %%doc |
|---|
| 100 | rm $RPM_BUILD_ROOT%{_datadir}/%{name}-%{VERSION}/{ChangeLog,LICENSE,NEWS.txt} |
|---|
| 101 | |
|---|
| 102 | # fix multilib issues |
|---|
| 103 | %ifarch x86_64 s390x ia64 ppc64 alpha sparc64 |
|---|
| 104 | %define wordsize 64 |
|---|
| 105 | %else |
|---|
| 106 | %define wordsize 32 |
|---|
| 107 | %endif |
|---|
| 108 | |
|---|
| 109 | mv $RPM_BUILD_ROOT%{_includedir}/%{name}/wizard/wizard-config.h \ |
|---|
| 110 | $RPM_BUILD_ROOT%{_includedir}/%{name}/wizard/wizard-config-%{wordsize}.h |
|---|
| 111 | |
|---|
| 112 | cat >$RPM_BUILD_ROOT%{_includedir}/%{name}/wizard/wizard-config.h <<EOF |
|---|
| 113 | #ifndef IMAGEMAGICK_MULTILIB |
|---|
| 114 | #define IMAGEMAGICK_MULTILIB |
|---|
| 115 | |
|---|
| 116 | #include <bits/wordsize.h> |
|---|
| 117 | |
|---|
| 118 | #if __WORDSIZE == 32 |
|---|
| 119 | # include "wizard-config-32.h" |
|---|
| 120 | #elif __WORDSIZE == 64 |
|---|
| 121 | # include "wizard-config-64.h" |
|---|
| 122 | #else |
|---|
| 123 | # error "unexpected value for __WORDSIZE macro" |
|---|
| 124 | #endif |
|---|
| 125 | |
|---|
| 126 | #endif |
|---|
| 127 | EOF |
|---|
| 128 | |
|---|
| 129 | |
|---|
| 130 | %clean |
|---|
| 131 | rm -rf $RPM_BUILD_ROOT |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | %post -p /sbin/ldconfig |
|---|
| 135 | |
|---|
| 136 | %postun -p /sbin/ldconfig |
|---|
| 137 | |
|---|
| 138 | %files |
|---|
| 139 | %defattr(-,root,root,-) |
|---|
| 140 | %doc QuickStart.txt ChangeLog |
|---|
| 141 | %doc README.txt LICENSE NOTICE AUTHORS.txt NEWS.txt |
|---|
| 142 | %{_libdir}/libWizardsToolkit.so.* |
|---|
| 143 | %{_bindir}/[a-z]* |
|---|
| 144 | %{_libdir}/%{name}-%{VERSION} |
|---|
| 145 | %{_datadir}/%{name}-%{VERSION} |
|---|
| 146 | %{_mandir}/man[145]/[a-z]* |
|---|
| 147 | |
|---|
| 148 | %files devel |
|---|
| 149 | %defattr(-,root,root,-) |
|---|
| 150 | %{_bindir}/WizardsToolkit-config |
|---|
| 151 | %{_libdir}/libWizardsToolkit.so |
|---|
| 152 | %{_libdir}/pkgconfig/WizardsToolkit.pc |
|---|
| 153 | %dir %{_includedir}/%{name} |
|---|
| 154 | %{_includedir}/%{name}/wizard |
|---|
| 155 | %{_mandir}/man1/WizardsToolkit-config.* |
|---|
| 156 | |
|---|
| 157 | %files doc |
|---|
| 158 | %defattr(-,root,root,-) |
|---|
| 159 | %doc %{_datadir}/doc/%{name}-%{VERSION} |
|---|
| 160 | |
|---|
| 161 | %changelog |
|---|
| 162 | * Sun May 01 2005 Cristy <cristy@mystic.es.dupont.com> 1.0-0 |
|---|
| 163 | * Port of Redhat's RPM script to support WizardsToolkit. |
|---|