%global pkgdatadir %_datadir/%name %{!?release_func:%global release_func() %1%{?dist}} Name: tinyca2 Version: 0.7.5 Release: %release_func 2 Summary: Simple graphical userinterface to manage a small CA Group: Applications/Productivity License: GPL URL: http://tinyca.sm-zone.net/ Source0: http://tinyca.sm-zone.net/%name-%version.tar.bz2 BuildRoot: %_tmppath/%name-%version-%release-root BuildArch: noarch BuildRequires: gettext desktop-file-utils Requires: openssl tar zip # filter out the private symbols and do not export them %global reqsed sed -e '/perl(\\(GUI\\|HELPERS\\|KEY\\|TCONFIG\\|OpenSSL\\|CA\\|CERT\\|REQ\\)[:)]/d;p' %global __perl_requires sh -x -c "%__perl_requires | %reqsed" %global __perl_provides sh -x -c "%__perl_provides | %reqsed" %description TinyCA is a simple graphical userinterface written in Perl/Gtk to manage a small CA (Certification Authority). TinyCA works as a frontend for openssl Currently TinyCA supports the following features: * Unlimited CAs possible * Support for creating and managing SubCAs * Creation and Revocation of x509 - S/MIME certificates * PKCS#10 Requests can be imported and signed * RSA and DSA keys can be generated and used * ServerCertificates o Certificates can be exported as: PEM, DER, TXT and PKCS#12 o Certificates may be used with e.g. Apache, Postfix, OpenLDAP, Cyrus, FreeS/WAN, OpenVPN, OpenSWAN, FreeRadius * ClientCertificates o Certificates can be exported as: PEM, DER, TXT and PKCS#12 o Certificates may be used with e.g. Netscape, Konqueror, Opera, Internet Explorer, Outlook (Express) and FreeS/WAN * Certificate Revocation List o CRLs can be exported as: PEM, DER and TXT %prep %setup -q rm -rf locale sed -i -e 's!./\(lib\|templates\)!%pkgdatadir/\1!g; s!./locale/!%_datadir/locale!g' tinyca2 %build cd po for i in *.po; do base=${i%%.po} d=../locale/$base/LC_MESSAGES mkdir -p "$d" msgfmt "$i" -o "$d"/tinyca2.mo done %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT{%pkgdatadir/{lib/GUI,templates},%_datadir,%_bindir} cp -a locale $RPM_BUILD_ROOT%_datadir install -p -m0755 tinyca2 $RPM_BUILD_ROOT%_bindir/ install -p -m0644 templates/* $RPM_BUILD_ROOT%pkgdatadir/templates/ install -p -m0644 lib/*.pm $RPM_BUILD_ROOT%pkgdatadir/lib/ install -p -m0644 lib/GUI/*.pm $RPM_BUILD_ROOT%pkgdatadir/lib/GUI/ desktop-file-install --vendor="fedora" \ --dir=$RPM_BUILD_ROOT%_datadir/applications \ --add-category=X-Fedora \ tinyca2.desktop %find_lang tinyca2 %clean rm -rf $RPM_BUILD_ROOT %files -f tinyca2.lang %defattr(-,root,root,-) %doc CHANGES %_bindir/* %_datadir/applications/*.desktop %pkgdatadir %changelog * Thu Nov 2 2006 Enrico Scholz - 0.7.5-2 - initial build