Compare commits

...
Sign in to create a new pull request.

5 commits

Author SHA1 Message Date
Patrick Monnerat
011ad8f92b - New upstream release.
- Patch "oidfieldcursor" to restore normal cursor behavior on OID resolver
  input field.
- Drop README.update.
2015-10-26 13:16:11 +01:00
Patrick Monnerat
ddebb28b14 New upstream release 2014-11-24 15:14:58 +01:00
Patrick Monnerat
5be3ed72a5 Patch "nonstdext" avoids segfault when viewing cert with non-standard extension.
https://bugzilla.redhat.com/show_bug.cgi?id=1164340
2014-11-17 17:17:33 +01:00
Patrick Monnerat
dc75be71e9 New upstream release. 2014-10-28 17:06:12 +01:00
Patrick Monnerat
a5ca39f909 Patch "openssl101i" for openssl-1.0.1i compatibility. 2014-10-15 19:19:26 +02:00
5 changed files with 107 additions and 59 deletions

3
.gitignore vendored
View file

@ -4,3 +4,6 @@ xca-0.8.1.tar.gz
/xca-0.9.1.tar.gz
/xca-0.9.2.tar.gz
/xca-0.9.3.tar.gz
/xca-1.0.0.tar.gz
/xca-1.1.0.tar.gz
/xca-1.3.2.tar.gz

View file

@ -1,2 +1 @@
5e08cf8a93f023b1b3836c203bd0a694 xca-0.9.3.tar.gz
113ba37a89fe2de69338fcfe3b773a03 README.update
f9528164f46a78c7a2373778bc019c48 xca-1.3.2.tar.gz

View file

@ -1,12 +0,0 @@
diff -Naur xca-0.9.3.orig/lang/fr.po xca-0.9.3.new/lang/fr.po
--- xca-0.9.3.orig/lang/fr.po 2012-05-12 11:37:14.000000000 +0200
+++ xca-0.9.3.new/lang/fr.po 2012-05-14 14:33:27.386075980 +0200
@@ -1883,7 +1883,7 @@
#: PwDialog#2
msgid ""
-"The password is parsed as 2-digit hex code. It must have an equal number of "
+"The password is parsed as 2-digit hex code. It must have an even number of "
"digits (0-9 and a-f)"
msgstr ""
"Le mot de passe doit être exprimé sous forme d'une suite de chiffres "

View file

@ -0,0 +1,13 @@
diff -Naurp xca-1.3.2.orig/widgets/OidResolver.cpp xca-1.3.2.new/widgets/OidResolver.cpp
--- xca-1.3.2.orig/widgets/OidResolver.cpp 2015-10-10 14:54:12.000000000 +0200
+++ xca-1.3.2.new/widgets/OidResolver.cpp 2015-10-19 12:22:10.035130081 +0200
@@ -23,7 +23,8 @@ void OidResolver::searchOid(QString s)
bool ok;
int n;
- input->setText(s);
+ if (input->text() != s) // Avoid moving the cursor at end if unchanged.
+ input->setText(s);
s = s.trimmed();
n = s.toUInt(&ok);
if (!ok)

135
xca.spec
View file

@ -1,23 +1,19 @@
%{!?release_func:%global release_func() %1%{?dist}}
Summary: Graphical X.509 certificate management tool
Name: xca
Version: 0.9.3
Release: %release_func 8
Version: 1.3.2
Release: 1%{?dist}
License: BSD
Group: Applications/Productivity
URL: http://www.hohnstaedt.de/xca.html
Source0: http://downloads.sourceforge.net/sourceforge/xca/%{name}-%{version}.tar.gz
Source1: README.update
Patch1: xca-0.9.3-french.patch
URL: http://xca.hohnstaedt.de/
Source0: http://downloads.sourceforge.net/sourceforge/xca/%{version}/%{name}-%{version}.tar.gz
Patch1: xca-1.3.2-oidfieldcursor.patch
BuildRequires: qt4-devel openssl-devel
BuildRequires: xdg-utils
BuildRequires: ImageMagick
BuildRequires: linuxdoc-tools
BuildRequires: libtool-ltdl-devel
BuildRequires: translate-toolkit
Requires: hicolor-icon-theme
Requires: hicolor-icon-theme
%description
@ -34,27 +30,22 @@ DER, PKCS#8. All cryptographic data are stored in a byte order agnostic file
format, portable across operating systems.
#-------------------------------------------------------------------------------
%prep
#-------------------------------------------------------------------------------
%setup -q
%patch1 -p 1 -b .french
mkdir -p _tmp_root/usr
ln -s "/usr/%{_lib}" _tmp_root/usr/lib
ln -s "/%{_lib}" _tmp_root/lib
ln -s "%{_includedir}/Qt" _tmp_root/include
install -p -m 644 "%{SOURCE1}" ./
%patch1 -p 1 -b .oidfieldcursor
#-------------------------------------------------------------------------------
%build
#test -n "${QTDIR}" || . "%{_sysconfdir}/profile.d/qt.sh"
export QTDIR="%{_libdir}/qt4"
CC='%{__cxx}' LD='%{__ld}' CFLAGS="${RPM_OPT_FLAGS} \
#-------------------------------------------------------------------------------
%configure CXXFLAGS="${RPM_OPT_FLAGS} \
-DXCA_DEFAULT_QT_TRANSLATE=\"\\\"%{_datadir}/qt4/translations\\\"\"" \
STRIP=: prefix="%{_prefix}" \
LIBS="-Wl,-as-needed `pkg-config --libs QtGui`" \
./configure "`pwd`/"_tmp_root{,/usr}
STRIP=: \
LIBS="-Wl,-as-needed"
make %{?_smp_mflags}
convert img/xca.ico xca.png
@ -62,14 +53,12 @@ touch -r img/xca.ico xca.png
convert img/xdb.ico xdb.png
touch -r img/xdb.ico xdb.png
iconv -f iso8859-1 -t utf8 AUTHORS > AUTHORS.utf8
touch -r AUTHORS AUTHORS.utf8
mv AUTHORS.utf8 AUTHORS
#-------------------------------------------------------------------------------
%install
make destdir="${RPM_BUILD_ROOT}" mandir=share/man install
make destdir="${RPM_BUILD_ROOT}" mandir=share/man install.misc
#-------------------------------------------------------------------------------
make destdir="${RPM_BUILD_ROOT}" install
# HACK: check whether workarounds below are still necessary
if test ! -e "${RPM_BUILD_ROOT}%{_datadir}/xca/crl.png"
@ -87,45 +76,74 @@ xdg-icon-resource install --noupdate --context mimetypes \
--size 32 xdb.png application-x-xca-database
xdg-icon-resource install --noupdate --size 32 xca.png fedora-xca
# Replace the desktop icon.
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/pixmaps/xca-32x32.xpm"
cp -a img/key.xpm "${RPM_BUILD_ROOT}%{_datadir}/pixmaps/xca.xpm"
desktop-file-install --mode 0644 \
--dir "${RPM_BUILD_ROOT}%{_datadir}/applications" \
--delete-original \
--add-mime-type application/x-xca-database \
--remove-category QT \
--set-icon=xca \
"${RPM_BUILD_ROOT}%{_datadir}/applications/xca.desktop"
# Will build the doc directory ourself.
rm -rf "${RPM_BUILD_ROOT}%{_docdir}/xca"
# Tag translation files.
(
cd "${RPM_BUILD_ROOT}"
find '.%{_datadir}/xca' -name 'xca_[a-z][a-z].qm'
) |
sed -e 's/^\.//' \
-e 's/.*\([a-z][a-z]\).qm$/%lang(\1) &/' > langfiles
#-------------------------------------------------------------------------------
%post
#-------------------------------------------------------------------------------
touch --no-create %{_datadir}/icons/hicolor || :
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
#-------------------------------------------------------------------------------
%posttrans
#-------------------------------------------------------------------------------
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
update-desktop-database &> /dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
#-------------------------------------------------------------------------------
%postun
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
#-------------------------------------------------------------------------------
if [ "${1}" -eq 0 ]
then touch --no-create %{_datadir}/icons/hicolor || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
touch --no-create %{_datadir}/mime/packages &> /dev/null || :
update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
fi
%files
%doc AUTHORS COPYRIGHT README.update
#-------------------------------------------------------------------------------
%files -f langfiles
#-------------------------------------------------------------------------------
%defattr(-, root, root, -)
%doc AUTHORS COPYRIGHT
%doc doc/*.html
%{_bindir}/*
%exclude %{_bindir}/xca_db_stat
%dir %{_datadir}/xca
%{_datadir}/xca/*.png
%{_datadir}/xca/*.txt
%{_datadir}/xca/*.html
%{_datadir}/xca/*.xca
%lang(de) %{_datadir}/xca/xca_de.qm
%lang(es) %{_datadir}/xca/xca_es.qm
%lang(fr) %{_datadir}/xca/xca_fr.qm
%lang(ru) %{_datadir}/xca/xca_ru.qm
%lang(tr) %{_datadir}/xca/xca_tr.qm
%{_datadir}/pixmaps/*.xpm
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/mime/packages/%{name}.*
@ -133,7 +151,34 @@ fi
%attr(0644, root, root) %{_mandir}/*/*
#-------------------------------------------------------------------------------
%changelog
#-------------------------------------------------------------------------------
* Mon Oct 26 2015 Patrick Monnerat <patrick.monnerat@dh.com> 1.3.2-1
- New upstream release.
- Patch "oidfieldcursor" to restore normal cursor behavior on OID resolver
input field.
- Drop README.update.
* Mon Nov 24 2014 Patrick Monnerat <pm@datasphere.ch> 1.1.0-1
- New upstream release
* Mon Nov 17 2014 Patrick Monnerat <pm@datasphere.ch> 1.0.0-2
- Patch "nonstdext" avoids segfault when viewing cert with
non-standard extension.
https://bugzilla.redhat.com/show_bug.cgi?id=1164340
* Tue Oct 28 2014 Patrick Monnerat <pm@datasphere.ch> 1.0.0-1
- New upstream release.
Set-up a larger desktop icon.
* Wed Oct 15 2014 Patrick Monnerat <pm@datasphere.ch> 0.9.3-9
- Patch "openssl101i" for openssl-1.0.1i compatibility.
https://bugzilla.redhat.com/show_bug.cgi?id=1152043
- Patch "desktopicon" removes the icon file extension in desktop entry file.
https://sourceforge.net/p/xca/patches/15/
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
@ -256,7 +301,7 @@ fi
* Thu May 19 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.5.1-2
- use %%dist instead of %%disttag
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
* Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt
* Tue Mar 8 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.5.1