xref: /minix3/crypto/external/bsd/openssl/dist/openssl.spec (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1ebfedea0SLionel Sambuc%define _unpackaged_files_terminate_build 0
2*0a6a1f1dSLionel Sambuc
3ebfedea0SLionel SambucRelease: 1
4ebfedea0SLionel Sambuc
5ebfedea0SLionel Sambuc%define openssldir /var/ssl
6ebfedea0SLionel Sambuc
7ebfedea0SLionel SambucSummary: Secure Sockets Layer and cryptography libraries and tools
8ebfedea0SLionel SambucName: openssl
9ebfedea0SLionel Sambuc#Version: %{libmaj}.%{libmin}.%{librel}
10*0a6a1f1dSLionel SambucVersion: 1.0.1p
11ebfedea0SLionel SambucSource0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
12*0a6a1f1dSLionel SambucLicense: OpenSSL
13ebfedea0SLionel SambucGroup: System Environment/Libraries
14ebfedea0SLionel SambucProvides: SSL
15ebfedea0SLionel SambucURL: http://www.openssl.org/
16ebfedea0SLionel SambucPackager: Damien Miller <djm@mindrot.org>
17ebfedea0SLionel SambucBuildRoot:   /var/tmp/%{name}-%{version}-root
18ebfedea0SLionel Sambuc
19ebfedea0SLionel Sambuc%description
20ebfedea0SLionel SambucThe OpenSSL Project is a collaborative effort to develop a robust,
21ebfedea0SLionel Sambuccommercial-grade, fully featured, and Open Source toolkit implementing the
22ebfedea0SLionel SambucSecure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
23ebfedea0SLionel Sambucprotocols as well as a full-strength general purpose cryptography library.
24ebfedea0SLionel SambucThe project is managed by a worldwide community of volunteers that use the
25ebfedea0SLionel SambucInternet to communicate, plan, and develop the OpenSSL tookit and its related
26ebfedea0SLionel Sambucdocumentation.
27ebfedea0SLionel Sambuc
28ebfedea0SLionel SambucOpenSSL is based on the excellent SSLeay library developed from Eric A.
29ebfedea0SLionel SambucYoung and Tim J. Hudson.  The OpenSSL toolkit is licensed under an
30ebfedea0SLionel SambucApache-style licence, which basically means that you are free to get and
31ebfedea0SLionel Sambucuse it for commercial and non-commercial purposes.
32ebfedea0SLionel Sambuc
33ebfedea0SLionel SambucThis package contains the base OpenSSL cryptography and SSL/TLS
34ebfedea0SLionel Sambuclibraries and tools.
35ebfedea0SLionel Sambuc
36ebfedea0SLionel Sambuc%package devel
37ebfedea0SLionel SambucSummary: Secure Sockets Layer and cryptography static libraries and headers
38ebfedea0SLionel SambucGroup: Development/Libraries
39ebfedea0SLionel SambucRequires: openssl
40ebfedea0SLionel Sambuc%description devel
41ebfedea0SLionel SambucThe OpenSSL Project is a collaborative effort to develop a robust,
42ebfedea0SLionel Sambuccommercial-grade, fully featured, and Open Source toolkit implementing the
43ebfedea0SLionel SambucSecure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
44ebfedea0SLionel Sambucprotocols as well as a full-strength general purpose cryptography library.
45ebfedea0SLionel SambucThe project is managed by a worldwide community of volunteers that use the
46ebfedea0SLionel SambucInternet to communicate, plan, and develop the OpenSSL tookit and its related
47ebfedea0SLionel Sambucdocumentation.
48ebfedea0SLionel Sambuc
49ebfedea0SLionel SambucOpenSSL is based on the excellent SSLeay library developed from Eric A.
50ebfedea0SLionel SambucYoung and Tim J. Hudson.  The OpenSSL toolkit is licensed under an
51ebfedea0SLionel SambucApache-style licence, which basically means that you are free to get and
52ebfedea0SLionel Sambucuse it for commercial and non-commercial purposes.
53ebfedea0SLionel Sambuc
54ebfedea0SLionel SambucThis package contains the the OpenSSL cryptography and SSL/TLS
55ebfedea0SLionel Sambucstatic libraries and header files required when developing applications.
56ebfedea0SLionel Sambuc
57ebfedea0SLionel Sambuc%package doc
58ebfedea0SLionel SambucSummary: OpenSSL miscellaneous files
59ebfedea0SLionel SambucGroup: Documentation
60ebfedea0SLionel SambucRequires: openssl
61ebfedea0SLionel Sambuc%description doc
62ebfedea0SLionel SambucThe OpenSSL Project is a collaborative effort to develop a robust,
63ebfedea0SLionel Sambuccommercial-grade, fully featured, and Open Source toolkit implementing the
64ebfedea0SLionel SambucSecure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
65ebfedea0SLionel Sambucprotocols as well as a full-strength general purpose cryptography library.
66ebfedea0SLionel SambucThe project is managed by a worldwide community of volunteers that use the
67ebfedea0SLionel SambucInternet to communicate, plan, and develop the OpenSSL tookit and its related
68ebfedea0SLionel Sambucdocumentation.
69ebfedea0SLionel Sambuc
70ebfedea0SLionel SambucOpenSSL is based on the excellent SSLeay library developed from Eric A.
71ebfedea0SLionel SambucYoung and Tim J. Hudson.  The OpenSSL toolkit is licensed under an
72ebfedea0SLionel SambucApache-style licence, which basically means that you are free to get and
73ebfedea0SLionel Sambucuse it for commercial and non-commercial purposes.
74ebfedea0SLionel Sambuc
75ebfedea0SLionel SambucThis package contains the the OpenSSL cryptography and SSL/TLS extra
76ebfedea0SLionel Sambucdocumentation and POD files from which the man pages were produced.
77ebfedea0SLionel Sambuc
78ebfedea0SLionel Sambuc%prep
79ebfedea0SLionel Sambuc
80ebfedea0SLionel Sambuc%setup -q
81ebfedea0SLionel Sambuc
82ebfedea0SLionel Sambuc%build
83ebfedea0SLionel Sambuc
84ebfedea0SLionel Sambuc%define CONFIG_FLAGS -DSSL_ALLOW_ADH --prefix=/usr --openssldir=%{openssldir}
85ebfedea0SLionel Sambuc
86ebfedea0SLionel Sambucperl util/perlpath.pl /usr/bin/perl
87ebfedea0SLionel Sambuc
88ebfedea0SLionel Sambuc%ifarch i386 i486 i586 i686
89ebfedea0SLionel Sambuc./Configure %{CONFIG_FLAGS} linux-elf shared
90ebfedea0SLionel Sambuc%endif
91ebfedea0SLionel Sambuc%ifarch ppc
92ebfedea0SLionel Sambuc./Configure %{CONFIG_FLAGS} linux-ppc shared
93ebfedea0SLionel Sambuc%endif
94ebfedea0SLionel Sambuc%ifarch alpha
95ebfedea0SLionel Sambuc./Configure %{CONFIG_FLAGS} linux-alpha shared
96ebfedea0SLionel Sambuc%endif
97ebfedea0SLionel Sambuc%ifarch x86_64
98ebfedea0SLionel Sambuc./Configure %{CONFIG_FLAGS} linux-x86_64 shared
99ebfedea0SLionel Sambuc%endif
100ebfedea0SLionel SambucLD_LIBRARY_PATH=`pwd` make
101ebfedea0SLionel SambucLD_LIBRARY_PATH=`pwd` make rehash
102ebfedea0SLionel SambucLD_LIBRARY_PATH=`pwd` make test
103ebfedea0SLionel Sambuc
104ebfedea0SLionel Sambuc%install
105ebfedea0SLionel Sambucrm -rf $RPM_BUILD_ROOT
106ebfedea0SLionel Sambucmake MANDIR=/usr/man MANSUFFIX=ssl INSTALL_PREFIX="$RPM_BUILD_ROOT" install
107ebfedea0SLionel Sambuc
108ebfedea0SLionel Sambuc# Make backwards-compatibility symlink to ssleay
109ebfedea0SLionel Sambucln -sf /usr/bin/openssl $RPM_BUILD_ROOT/usr/bin/ssleay
110ebfedea0SLionel Sambuc
111ebfedea0SLionel Sambuc%clean
112ebfedea0SLionel Sambucrm -rf $RPM_BUILD_ROOT
113ebfedea0SLionel Sambuc
114ebfedea0SLionel Sambuc%files
115ebfedea0SLionel Sambuc%defattr(0644,root,root,0755)
116ebfedea0SLionel Sambuc%doc CHANGES CHANGES.SSLeay LICENSE NEWS README
117ebfedea0SLionel Sambuc
118ebfedea0SLionel Sambuc%attr(0755,root,root) /usr/bin/*
119ebfedea0SLionel Sambuc%attr(0755,root,root) /usr/lib/*.so*
120ebfedea0SLionel Sambuc%attr(0755,root,root) %{openssldir}/misc/*
121ebfedea0SLionel Sambuc%attr(0644,root,root) /usr/man/man[157]/*
122ebfedea0SLionel Sambuc
123ebfedea0SLionel Sambuc%config %attr(0644,root,root) %{openssldir}/openssl.cnf
124ebfedea0SLionel Sambuc%dir %attr(0755,root,root) %{openssldir}/certs
125ebfedea0SLionel Sambuc%dir %attr(0755,root,root) %{openssldir}/misc
126ebfedea0SLionel Sambuc%dir %attr(0750,root,root) %{openssldir}/private
127ebfedea0SLionel Sambuc
128ebfedea0SLionel Sambuc%files devel
129ebfedea0SLionel Sambuc%defattr(0644,root,root,0755)
130ebfedea0SLionel Sambuc%doc CHANGES CHANGES.SSLeay LICENSE NEWS README
131ebfedea0SLionel Sambuc
132ebfedea0SLionel Sambuc%attr(0644,root,root) /usr/lib/*.a
133ebfedea0SLionel Sambuc%attr(0644,root,root) /usr/lib/pkgconfig/openssl.pc
134ebfedea0SLionel Sambuc%attr(0644,root,root) /usr/include/openssl/*
135ebfedea0SLionel Sambuc%attr(0644,root,root) /usr/man/man[3]/*
136ebfedea0SLionel Sambuc
137ebfedea0SLionel Sambuc%files doc
138ebfedea0SLionel Sambuc%defattr(0644,root,root,0755)
139ebfedea0SLionel Sambuc%doc CHANGES CHANGES.SSLeay LICENSE NEWS README
140ebfedea0SLionel Sambuc%doc doc
141ebfedea0SLionel Sambuc
142ebfedea0SLionel Sambuc%post
143ebfedea0SLionel Sambucldconfig
144ebfedea0SLionel Sambuc
145ebfedea0SLionel Sambuc%postun
146ebfedea0SLionel Sambucldconfig
147ebfedea0SLionel Sambuc
148ebfedea0SLionel Sambuc%changelog
149ebfedea0SLionel Sambuc* Sun Jun  6 2005 Richard Levitte <richard@levitte.org>
150ebfedea0SLionel Sambuc- Remove the incorrect installation of '%{openssldir}/lib'.
151ebfedea0SLionel Sambuc* Wed May  7 2003 Richard Levitte <richard@levitte.org>
152ebfedea0SLionel Sambuc- Add /usr/lib/pkgconfig/openssl.pc to the development section.
153ebfedea0SLionel Sambuc* Thu Mar 22 2001 Richard Levitte <richard@levitte.org>
154ebfedea0SLionel Sambuc- Removed redundant subsection that re-installed libcrypto.a and libssl.a
155ebfedea0SLionel Sambuc  as well.  Also remove RSAref stuff completely, since it's not needed
156ebfedea0SLionel Sambuc  any more.
157ebfedea0SLionel Sambuc* Thu Mar 15 2001 Jeremiah Johnson <jjohnson@penguincomputing.com>
158ebfedea0SLionel Sambuc- Removed redundant subsection that re-installed libcrypto.so.0.9.6 and
159ebfedea0SLionel Sambuc  libssl.so.0.9.6.  As well as the subsection that created symlinks for
160ebfedea0SLionel Sambuc  these.  make install handles all this.
161ebfedea0SLionel Sambuc* Sat Oct 21 2000 Horms <horms@vergenet.net>
162ebfedea0SLionel Sambuc- Make sure symlinks are created by using -f flag to ln.
163ebfedea0SLionel Sambuc  Otherwise some .so libraries are copied rather than
164ebfedea0SLionel Sambuc  linked in the resulting binary RPM. This causes the package
165ebfedea0SLionel Sambuc  to be larger than neccessary and makes ldconfig complain.
166ebfedea0SLionel Sambuc* Fri Oct 13 2000 Horms <horms@vergenet.net>
167ebfedea0SLionel Sambuc- Make defattr is set for files in all packages so packages built as
168ebfedea0SLionel Sambuc  non-root will still be installed with files owned by root.
169ebfedea0SLionel Sambuc* Thu Sep 14 2000 Richard Levitte <richard@levitte.org>
170ebfedea0SLionel Sambuc- Changed to adapt to the new (supported) way of making shared libraries
171ebfedea0SLionel Sambuc- Installs all static libraries, not just libRSAglue.a
172ebfedea0SLionel Sambuc- Extra documents now end up in a separate document package
173ebfedea0SLionel Sambuc* Sun Feb 27 2000 Damien Miller <djm@mindrot.org>
174ebfedea0SLionel Sambuc- Merged patches to spec
175ebfedea0SLionel Sambuc- Updated to 0.9.5beta2 (now with manpages)
176ebfedea0SLionel Sambuc* Sat Feb  5 2000 Michal Jaegermann <michal@harddata.com>
177ebfedea0SLionel Sambuc- added 'linux-alpha' to configuration
178ebfedea0SLionel Sambuc- fixed nasty absolute links
179ebfedea0SLionel Sambuc* Tue Jan 25 2000 Bennett Todd <bet@rahul.net>
180ebfedea0SLionel Sambuc- Added -DSSL_ALLOW_ADH, bumped Release to 4
181ebfedea0SLionel Sambuc* Thu Oct 14 1999 Damien Miller <djm@mindrot.org>
182ebfedea0SLionel Sambuc- Set default permissions
183ebfedea0SLionel Sambuc- Removed documentation from devel sub-package
184ebfedea0SLionel Sambuc* Thu Sep 30 1999 Damien Miller <djm@mindrot.org>
185ebfedea0SLionel Sambuc- Added "make test" stage
186ebfedea0SLionel Sambuc- GPG signed
187ebfedea0SLionel Sambuc* Tue Sep 10 1999 Damien Miller <damien@ibs.com.au>
188ebfedea0SLionel Sambuc- Updated to version 0.9.4
189ebfedea0SLionel Sambuc* Tue May 25 1999 Damien Miller <damien@ibs.com.au>
190ebfedea0SLionel Sambuc- Updated to version 0.9.3
191ebfedea0SLionel Sambuc- Added attributes for all files
192ebfedea0SLionel Sambuc- Paramatised openssl directory
193ebfedea0SLionel Sambuc* Sat Mar 20 1999 Carlo M. Arenas Belon <carenas@jmconsultores.com.pe>
194ebfedea0SLionel Sambuc- Added "official" bnrec patch and taking other out
195ebfedea0SLionel Sambuc- making a link from ssleay to openssl binary
196ebfedea0SLionel Sambuc- putting all changelog together on SPEC file
197ebfedea0SLionel Sambuc* Fri Mar  5 1999 Henri Gomez <gomez@slib.fr>
198ebfedea0SLionel Sambuc- Added bnrec patch
199ebfedea0SLionel Sambuc* Tue Dec 29 1998 Jonathan Ruano <kobalt@james.encomix.es>
200ebfedea0SLionel Sambuc- minimum spec and patches changes for openssl
201ebfedea0SLionel Sambuc- modified for openssl sources
202ebfedea0SLionel Sambuc* Sat Aug  8 1998 Khimenko Victor <khim@sch57.msk.ru>
203ebfedea0SLionel Sambuc- shared library creating process honours $RPM_OPT_FLAGS
204ebfedea0SLionel Sambuc- shared libarry supports threads (as well as static library)
205ebfedea0SLionel Sambuc* Wed Jul 22 1998 Khimenko Victor <khim@sch57.msk.ru>
206ebfedea0SLionel Sambuc- building of shared library completely reworked
207ebfedea0SLionel Sambuc* Tue Jul 21 1998 Khimenko Victor <khim@sch57.msk.ru>
208ebfedea0SLionel Sambuc- RPM is BuildRoot'ed
209ebfedea0SLionel Sambuc* Tue Feb 10 1998 Khimenko Victor <khim@sch57.msk.ru>
210ebfedea0SLionel Sambuc- all stuff is moved out of /usr/local
211