Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 9e74f6a4609a1477d15733112d3b36f0 > files > 6

xca-0.4.6-2mdk.src.rpm

%define	name	xca
%define	version	0.4.6
%define	release	2mdk
%define	Summary	A GUI for handling X509 certificates, RSA keys and PKCS#10 Requests

Summary:	%{Summary}
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	BSD
Group:		System/Servers
Source0:	http://www.hohnstaedt.de/xca/src/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		%{name}-gcc3.patch.bz2
Url:		http://www.hohnstaedt.de/xca/xca.html
BuildRequires:	libqt-devel >= 2.2.4
BuildRequires:	db-devel >= 3.3
BuildRequires:	openssl-devel >= 0.9.6
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
The Program uses a Berkeley db for storage and supports RSA keys,
Certificate signing requests (PKCS#10) and Certificates (X509v3)
The signing of requests, and the creation of selfsigned certificates
is supported. Both can use templates for simplicity.
The PKI structures can be imported and exported in several formats
like PKCS#7, PKCS#12, PEM, DER, PKCS#8.

%prep
%setup -q
%patch -p1

%build
CFLAGS="$RPM_OPT_FLAGS" \
prefix=%{_prefix} ./configure
%make

%install
rm -rf $RPM_BUILD_ROOT
make destdir=$RPM_BUILD_ROOT prefix=%{_prefix} install

rm -f $RPM_BUILD_ROOT%{_datadir}/applications/xca.desktop
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/xca.xpm

mkdir -p $RPM_BUILD_ROOT%{_menudir}
cat << EOF > $RPM_BUILD_ROOT%{_menudir}/xca
?package(%{name}): \
	command="%{name}" \
	icon="%{name}.png" \
	needs="x11" \
	title="X-CA" \
	longtitle="%{Summary}" \
	section="System/Configuration/Other"
EOF

install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus

%postun
%clean_menus

%files
%defattr(-,root,root, 755)
%doc AUTHORS README COPYRIGHT debian/changelog
%doc doc/*.html
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_menudir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}

%changelog
* Thu Feb 26 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.4.6-2mdk
- cleanups!
- fix summary/longtitle
- don't bzip2 icons
- fix invalid-menu-section

* Fri Jan 02 2004 Luca Berra <bluca@vodka.it> 0.4.6-1mdk
- initial cooker contrib