Accepting request 51887 from home:icw-chris

OBS-URL: https://build.opensuse.org/request/show/51887
OBS-URL: https://build.opensuse.org/package/show/security/xca?expand=0&rev=1
This commit is contained in:
Cristian Rodríguez 2010-11-01 17:17:50 +00:00 committed by Git OBS Bridge
commit 71beebe64c
8 changed files with 324 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

21
xca-0.9.0-Makefile.patch Normal file
View File

@ -0,0 +1,21 @@
diff -ruN xca-0.9.0-orig/Makefile xca-0.9.0/Makefile
--- xca-0.9.0-orig/Makefile 2010-08-29 10:28:32.000000000 +0200
+++ xca-0.9.0/Makefile 2010-10-04 23:11:28.000000000 +0200
@@ -23,7 +23,7 @@
bindir=bin
-all: headers xca$(SUFFIX) doc lang
+all: headers xca$(SUFFIX) doc img lang
@echo -e "\n\n\nOk, compilation was successfull. \nNow do as root: 'make install'\n"
xca.o: $(OBJECTS)
@@ -34,6 +34,8 @@
doc:
$(MAKE) -C doc
+img:
+ $(MAKE) -C img
lang:
$(MAKE) -C lang

88
xca-0.9.0-configure.patch Normal file
View File

@ -0,0 +1,88 @@
diff -ruN xca-0.9.0-orig/configure xca-0.9.0/configure
--- xca-0.9.0-orig/configure 2010-08-29 10:28:32.000000000 +0200
+++ xca-0.9.0/configure 2010-10-04 22:19:02.000000000 +0200
@@ -26,9 +26,12 @@
done
DIRS="$QTDIR $DIRS /usr /usr/X11R6 /usr/local"
+lib=${lib:=lib}
+libdir=${libdir:=/usr/lib}
STDINC="-I/usr/include"
-STDLIB="-L/usr/lib"
+STDLIB="-L${libdir}"
prefix=${prefix:=/usr/local}
+mandir=${mandir:=${prefix}/man}
CFLAGS=${CFLAGS:=-Wall -ggdb -O2}
CC=${CC:=gcc}
CF="-I. -I.. -I\$(TOPDIR)/ui"
@@ -103,10 +106,10 @@
for dir in ${DIRS}; do
for dbn in $@; do
for suffix in so dylib obj a; do
- for lib in lib lib64 lib32 out; do
- if test -r "${dir}/${lib}/lib${dbn}.${suffix}"; then
- add_lib "${dir}/${lib}" "${dbn}" "${suffix}"
- echo "Found: lib${dbn}.${suffix} at ${dir}/${lib}"
+ for libs in ${lib} out; do
+ if test -r "${dir}/${libs}/lib${dbn}.${suffix}"; then
+ add_lib "${dir}/${libs}" "${dbn}" "${suffix}"
+ echo "Found: lib${dbn}.${suffix} at ${dir}/${libs}"
return 0
fi
done
@@ -119,7 +122,7 @@
echo -e "\n\nConfiguring XCA `cat VERSION`\n----------------------------"
######################### QT
-subdirs="/qt /qt4"
+subdirs="/qt /qt4 /qt/QT /qt4/QT"
search_includes QtCore/QObject || err "The QT Library headerfiles were not found. Set QTDIR appropriately."
search_lib QtGui4 QtGui || err "The QT library was not found."
search_lib ltdl || err "Libtool ltdl not found."
@@ -215,12 +218,15 @@
STRIP=${STRIP:=strip}
WINDRES=${WINDRES:=windres}
MAKENSIS=${MAKENSIS:=makensis.exe}
-LINUXDOC=${LINUXDOC:=linuxdoc}
+SGML2HTML=${SGML2HTML:=sgml2html}
SUFFIX=${SUFFIX}
HOST=linux
prefix=${prefix}
docdir=${docdir}
+lib=${lib}
+libdir=${libdir}
+mandir=${mandir}
EOF
test -z "$etc" && etc=/etc/xca
diff -ruN xca-0.9.0-orig/doc/Makefile xca-0.9.0/doc/Makefile
--- xca-0.9.0-orig/doc/Makefile 2010-08-29 10:28:32.000000000 +0200
+++ xca-0.9.0/doc/Makefile 2010-10-04 22:33:54.000000000 +0200
@@ -7,21 +7,19 @@
doc: xca.1.gz xca.html
include $(TOPDIR)/Rules.mak
-mandir=man
-
xca.1.gz: xca.1
gzip -9 <$^ >$@
xca.html: xca.sgml
rm -f xca*.html
echo '<h1>No documentation generated</h1>' > $@
- $(LINUXDOC) -B html $<
+ $(SGML2HTML) -s 1 $<
install: xca.1.gz xca.html
- install -m 755 -d $(destdir)$(docdir) \
- $(destdir)$(prefix)/$(mandir)/man1
- install -m 644 xca*.html $(destdir)$(docdir)
- install xca.1.gz $(destdir)$(prefix)/$(mandir)/man1
+ install -m 755 -d $(destdir)$(prefix)/share/xca \
+ $(destdir)$(mandir)/man1
+ install -m 644 xca*.html $(destdir)$(prefix)/share/xca
+ install -m 644 xca.1.gz $(destdir)$(mandir)/man1
app: xca.html
mkdir -p $(APPDIR)/Resources

13
xca-0.9.0-desktop.patch Normal file
View File

@ -0,0 +1,13 @@
diff -ruN xca-0.9.0-orig/misc/xca.desktop xca-0.9.0/misc/xca.desktop
--- xca-0.9.0-orig/misc/xca.desktop 2010-08-29 10:28:32.000000000 +0200
+++ xca-0.9.0/misc/xca.desktop 2010-10-04 22:03:15.000000000 +0200
@@ -6,7 +6,7 @@
Comment[de]=Eine graphische Oberfläche zur Erstellung von X.509 konformen Zertifikaten
Comment[fi]=Graafinen X.509-varmenteiden hallintatyökalu
Exec=xca
-Icon=xca-32x32.xpm
+Icon=xca-32x32
Terminal=false
-Categories=Application;Utility;Qt;
+Categories=Utility;DesktopUtility;
MimeType=application/x-xca-database;application/x-xca-template;application/x-x509-ca-cert;application/pkcs10;application/x-pkcs7-certificates;application/x-pkcs12;

3
xca-0.9.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aeb080ed9478b803dc1f5d9fa7e35acb4ccb1ed6153af8ae1abde5e5506b014c
size 629264

86
xca.changes Normal file
View File

@ -0,0 +1,86 @@
-------------------------------------------------------------------
Mon Oct 4 21:14:15 UTC 2010 - chris@computersalat.de
- update to 0.9.0
* support loading more than one PKCS#11 library
* remove the need for engine_pkcs11
now more than one PKCS#11 library can be loaded and used in parallel
* Add de/selection of columns and add a lot of new possible columns
All Subject entries, the subject hash and whole name,
Certificate fingerprints, dates, CA info, CRL number,
corresponding key of certs and requests
* Improve CRL generation [3035294] CRLNumber, CRLReason
* improve creating templates from cert
- enhance parsing of CRL-DP, SAN, IAN and AuthInfoAcc
- add support for CertificatePolicies
- unknown extension are written as generic DER
* improve date handling. "notBefore" is not reset to now anymore
when applying a time range
* Support dropping files onto the application
* russian translation by Pavel Belly
* support loading DER formatted PKCS#8 keys
* ease commandline use
* add DH param generation menu entry
* improve token handling and PIN changing dialogs
* improve key-value table input for "additional DN entries"
* PIN and PUK changing implemented
* apply partial template-contents
- applying the subject only or the extensions only is possible now
* add informational messageboxes
- whenever an item was successfully created or imported
* add support for random serial numbers
* improve messages, usability and german translation
* improve token support
- token initializing
- creating keys on a token
- store existing keys on a token
- delete keys and certs from a token
- xca 0.8.1 Tue Jan 5 07:52:03 2010
* fix string conversion from QString to ASN1
- xca 0.8.0 Thu Dec 10 18:44:03 2009
* improve documentation
* improve file-dialog handling
* Generate Template from certificate or PKCS#10 request
-> Feature request [2213094] and [1108304]
* add hash algos "ripemd160" and "SHA384"
* add the "no well-defined date" from RFC 5280 as checkbox
* Feature request [1996192]
Include "OCSPSigning" in misc/eku.txt
* Support for EC keys
* Update Step-by-step documentation
Thanks Devin Reade
* Support for Smart Cards
* set proper file-extension .xdb on opening databases
- reworked patches
o Makefile, configure, desktop patch
- remove obsolete uint32_t patch
-------------------------------------------------------------------
Sun Jun 20 17:38:35 UTC 2010 - rpm@scorpio-it.net
- fix build for 11.2
o added uint32_t patch
-------------------------------------------------------------------
Tue Oct 27 18:24:14 UTC 2009 - chris@computersalat.de
- fixed deps for SLES 10
o qt-devel
-------------------------------------------------------------------
Tue Oct 27 15:19:34 UTC 2009 - chris@computersalat.de
- update to new version 0.7.0
o removed 0.6.3 patches
o added 0.7.0 patches
* configure
* Makefile
* desktop
o cleanup spec
o moved changes to .changes file
-------------------------------------------------------------------
Sat Sep 22 15:15:10 UTC 2007 - rpm@scorpio-it.net
- initial package 0.6.3

89
xca.spec Normal file
View File

@ -0,0 +1,89 @@
#
# spec file for package xca (Version 0.9.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: xca
Summary: An RSA key and certificate management tool
Summary(de): Ein RSA Schlüssel- und Zertifikat-Managmentprogramm
Version: 0.9.0
Release: 1
License: BSD
Group: Productivity/Networking/Security
Url: http://freshmeat.net/projects/xca/
Autoreqprov: on
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-0.9.0-Makefile.patch
Patch1: %{name}-0.9.0-configure.patch
Patch2: %{name}-0.9.0-desktop.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ >= 3.1.0
%if 0%{?sles_version} == 10
BuildRequires: qt-devel >= 4.3.0
%else
BuildRequires: libqt4-devel >= 4.3.0
%endif
BuildRequires: openssl-devel >= 0.9.8
BuildRequires: sgmltool update-desktop-files
BuildRequires: dos2unix
%if 0%{?sles_version} == 10
Requires: qt >= 4.3.0
%else
Requires: libqt4 >= 4.3.0
%endif
Requires: openssl >= 0.9.8
Requires: db
%description
Graphical certification authority is an interface for managing RSA keys and certificates, and the creation and signing of PKCS#10 requests. It uses the OpenSSL library and a Berkeley DB for key and certificate storage. It supports importing and exporting keys and PEM DER PKCS8 certificates, signing and revoking of PEM DER PKCS12, and the selection of x509v3 extensions. A tree view of certificates is presented.
%description -l de
"Graphical certification authority" ist ein Interface zum Verwalten von RSA-Schlüssel und -Zertifikate, das Erzeugen und Signieren von PKCS#10-Requests. Es verwendet die OpenSSL Biliothek und Berkley DB zum Speichern von Schlüsseln und Zerifkaten. Es unterstützt das Importieren und Exportieren von Schlüsseln und PEM DER PKCS#8 Zertifikaten, Signieren und Widerrufen von PEM DER PKCS12 und das Auswählen von x509v3-Erweiterungen. Die Zertifikate werden in einer Baumstruktur präsentiert.
%prep
%setup -n %{name}-%{version}
dos2unix COPYRIGHT
%patch0 -p1
%patch1 -p1
%patch2 -p1
#./mkxcapro.sh && $QTDIR/bin/lrelease xca.pro
CFLAGS=$RPM_OPT_FLAGS prefix=/usr lib=%{_lib} libdir=%{_libdir} mandir=/usr/share/man ./configure
%build
#%{__make} %{?jobs:-j%jobs} destdir=$PRM_BUILD_ROOT prefix=/usr
%{__make} destdir=$PRM_BUILD_ROOT prefix=/usr
%install
%{__make} destdir=$RPM_BUILD_ROOT prefix=/usr install
%suse_update_desktop_file -i %{name} DesktopUtility
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYRIGHT INSTALL INSTALL.qmake VERSION changelog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}*
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%changelog