[7308] | 1 | %define ver 0.4.3 |
---|
| 2 | %define rel 1 |
---|
| 3 | |
---|
[7306] | 4 | Name: keepassx |
---|
[7308] | 5 | Version: %{ver} |
---|
| 6 | Release: %{rel}%{_dist_release} |
---|
[7306] | 7 | Summary: Cross-platform password manager |
---|
[7308] | 8 | Summary(ja): クロスプラットフォーム パスワードマネージャー |
---|
[7306] | 9 | Group: User Interface/Desktops |
---|
| 10 | License: GPLv2+ |
---|
[7308] | 11 | URL: http://www.keepassx.org/ |
---|
[7306] | 12 | Source0: http://download.sf.net/keepassx/keepassx-%{version}.tar.gz |
---|
| 13 | Patch1: keepassx-0.3.3-gcc43.patch |
---|
| 14 | Patch2: keepassx-0.4.3-gcc47.patch |
---|
| 15 | BuildRequires: qt4-devel > 4.1, libXtst-devel, ImageMagick, desktop-file-utils |
---|
| 16 | Requires: hicolor-icon-theme |
---|
| 17 | |
---|
[7308] | 18 | Vendor: Project Vine |
---|
| 19 | Distribution: Vine Linux |
---|
| 20 | Packager: iwaim |
---|
| 21 | |
---|
[7306] | 22 | %description |
---|
| 23 | KeePassX is an application for people with extremly high demands on secure |
---|
| 24 | personal data management. |
---|
| 25 | KeePassX saves many different information e.g. user names, passwords, urls, |
---|
| 26 | attachemts and comments in one single database. For a better management |
---|
| 27 | user-defined titles and icons can be specified for each single entry. |
---|
| 28 | Furthermore the entries are sorted in groups, which are customizable as well. |
---|
| 29 | The integrated search function allows to search in a single group or the |
---|
| 30 | complete database. |
---|
| 31 | KeePassX offers a little utility for secure password generation. The password |
---|
| 32 | generator is very customizable, fast and easy to use. Especially someone who |
---|
| 33 | generates passwords frequently will appreciate this feature. |
---|
| 34 | The complete database is always encrypted either with AES (alias Rijndael) or |
---|
| 35 | Twofish encryption algorithm using a 256 bit key. Therefore the saved |
---|
| 36 | information can be considered as quite safe. KeePassX uses a database format |
---|
| 37 | that is compatible with KeePass Password Safe for MS Windows. |
---|
| 38 | |
---|
| 39 | %prep |
---|
| 40 | %setup -q |
---|
| 41 | %patch1 -p0 -b .gcc43 |
---|
| 42 | %patch2 -p1 -b .gcc47 |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | export CFLAGS=$RPM_OPT_FLAGS |
---|
| 46 | export CXXFLAGS=$RPM_OPT_FLAGS |
---|
[7308] | 47 | qmake PREFIX=%{_prefix} |
---|
[7306] | 48 | make %{?_smp_mflags} |
---|
| 49 | |
---|
| 50 | %install |
---|
[7308] | 51 | make install INSTALL_ROOT=%{buildroot} |
---|
[7306] | 52 | |
---|
| 53 | # Use png in _datadir/icons/hicolor instead of xpm in pixmaps |
---|
[7308] | 54 | mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ |
---|
| 55 | convert %{buildroot}%{_datadir}/pixmaps/keepassx.xpm \ |
---|
| 56 | %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/keepassx.png |
---|
| 57 | rm -f %{buildroot}%{_datadir}/pixmaps/keepassx.xpm |
---|
[7306] | 58 | |
---|
| 59 | # Menu |
---|
| 60 | sed -i -e 's/^Exec=keepassx$/Exec=keepassx %f/g' \ |
---|
[7308] | 61 | %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
| 62 | desktop-file-install --vendor vine\ |
---|
| 63 | --dir %{buildroot}%{_datadir}/applications \ |
---|
[7306] | 64 | --delete-original \ |
---|
| 65 | --add-mime-type application/x-keepass \ |
---|
[7308] | 66 | %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
[7306] | 67 | |
---|
| 68 | # Associate KDB files |
---|
| 69 | cat > x-keepass.desktop << EOF |
---|
| 70 | [Desktop Entry] |
---|
| 71 | Comment= |
---|
| 72 | Hidden=false |
---|
| 73 | Icon=keepassx.png |
---|
| 74 | MimeType=application/x-keepass |
---|
| 75 | Patterns=*.kdb;*.KDB |
---|
| 76 | Type=MimeType |
---|
| 77 | EOF |
---|
| 78 | install -D -m 644 -p x-keepass.desktop \ |
---|
[7308] | 79 | %{buildroot}%{_datadir}/mimelnk/application/x-keepass.desktop |
---|
[7306] | 80 | |
---|
[7308] | 81 | %check |
---|
| 82 | make check |
---|
| 83 | %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/vine-%{name}.desktop |
---|
[7306] | 84 | |
---|
| 85 | %post |
---|
| 86 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
[7308] | 87 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 88 | %{_bindir}/update-desktop-database &> /dev/null ||: |
---|
| 89 | fi |
---|
| 90 | if [ -x %{_bindir}/update-mime-database ] ; then |
---|
| 91 | %{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 92 | fi |
---|
[7306] | 93 | |
---|
| 94 | %postun |
---|
| 95 | if [ $1 -eq 0 ] ; then |
---|
| 96 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
[7308] | 97 | if [ -x %{_bindir}/gtk-update-icon-cache ] ; then |
---|
| 98 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 99 | fi |
---|
[7306] | 100 | fi |
---|
[7308] | 101 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 102 | %{_bindir}/update-desktop-database &> /dev/null ||: |
---|
| 103 | fi |
---|
| 104 | if [ -x %{_bindir}/update-mime-database ] ; then |
---|
| 105 | %{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 106 | fi |
---|
[7306] | 107 | |
---|
| 108 | %posttrans |
---|
[7308] | 109 | if [ -x %{_bindir}/gtk-update-icon-cache ] ; then |
---|
| 110 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
| 111 | fi |
---|
[7306] | 112 | |
---|
| 113 | %files |
---|
| 114 | %doc share/keepassx/license.html |
---|
| 115 | %{_bindir}/keepassx |
---|
| 116 | %{_datadir}/keepassx |
---|
| 117 | %{_datadir}/applications/*.desktop |
---|
| 118 | %{_datadir}/mimelnk/application/*.desktop |
---|
| 119 | %{_datadir}/mime/packages/*.xml |
---|
| 120 | %{_datadir}/icons/hicolor/*/apps/keepassx.png |
---|
| 121 | |
---|
| 122 | %changelog |
---|
[7308] | 123 | * Wed Dec 19 2012 IWAI, Masaharu <iwai@alib.jp> 0.4.3-1 |
---|
| 124 | - initial build for Vine Linux |
---|
| 125 | |
---|
[7306] | 126 | * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-6 |
---|
| 127 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 128 | |
---|
| 129 | * Fri Mar 30 2012 Tom Callaway <spot@fedoraproject.org> - 0.4.3-5 |
---|
| 130 | - fix FTBFS on gcc 4.7 |
---|
| 131 | |
---|
| 132 | * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-4 |
---|
| 133 | - Rebuilt for c++ ABI breakage |
---|
| 134 | |
---|
| 135 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-3 |
---|
| 136 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
| 137 | |
---|
| 138 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.3-2 |
---|
| 139 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 140 | |
---|
| 141 | * Sun Mar 14 2010 Aurelien Bompard <abompard@fedoraproject.org> - 0.4.3-1 |
---|
| 142 | - version 0.4.3 |
---|
| 143 | |
---|
| 144 | * Sun Jan 03 2010 Aurelien Bompard <abompard@fedoraproject.org> - 0.4.1-1 |
---|
| 145 | - version 0.4.1 |
---|
| 146 | |
---|
| 147 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3 |
---|
| 148 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 149 | |
---|
| 150 | * Sat Apr 18 2009 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-2 |
---|
| 151 | - add patch0 to fix bug 496035 |
---|
| 152 | |
---|
| 153 | * Thu Mar 26 2009 Aurelien Bompard <abompard@fedoraproject.org> 0.4.0-1 |
---|
| 154 | - version 0.4.0 |
---|
| 155 | - drop patch0 (upstream) |
---|
| 156 | |
---|
| 157 | * Thu Mar 12 2009 Aurelien Bompard <abompard@fedoraproject.org> 0.3.4-3 |
---|
| 158 | - backport fix from upstream for bug #489820 |
---|
| 159 | |
---|
| 160 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.4-2 |
---|
| 161 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 162 | |
---|
| 163 | * Tue Nov 11 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.4-1 |
---|
| 164 | - version 0.3.4 |
---|
| 165 | |
---|
| 166 | * Sat Aug 23 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.3-2 |
---|
| 167 | - rebase patch for version 0.3.3 |
---|
| 168 | |
---|
| 169 | * Tue Aug 12 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.3-1 |
---|
| 170 | - version 0.3.3 |
---|
| 171 | |
---|
| 172 | * Mon Jul 21 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.2-1 |
---|
| 173 | - version 0.3.2 |
---|
| 174 | |
---|
| 175 | * Sun Mar 16 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.1-1 |
---|
| 176 | - version 0.3.1 |
---|
| 177 | - drop xdg patch, keepassx now uses QDesktopServices |
---|
| 178 | |
---|
| 179 | * Wed Mar 05 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.0-3.a |
---|
| 180 | - version 0.3.0a |
---|
| 181 | |
---|
| 182 | * Wed Mar 05 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.0-2 |
---|
| 183 | - patch for gcc 4.3 |
---|
| 184 | |
---|
| 185 | * Sun Mar 02 2008 Aurelien Bompard <abompard@fedoraproject.org> 0.3.0-1 |
---|
| 186 | - version 0.3.0 |
---|
| 187 | - drop helpwindow patch (feature dropped upstream) |
---|
| 188 | |
---|
| 189 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2.2-5 |
---|
| 190 | - Autorebuild for GCC 4.3 |
---|
| 191 | |
---|
| 192 | * Sun Oct 07 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.2.2-4 |
---|
| 193 | - use xdg-open instead of htmlview |
---|
| 194 | |
---|
| 195 | * Sat Aug 25 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.2.2-3 |
---|
| 196 | - fix license tag |
---|
| 197 | - rebuild for BuildID |
---|
| 198 | |
---|
| 199 | * Wed Jun 27 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.2.2-2 |
---|
| 200 | - fix help button |
---|
| 201 | - use htmlview instead of the hardcoded konqueror |
---|
| 202 | |
---|
| 203 | * Sun Mar 04 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.2.2-1 |
---|
| 204 | - initial package |
---|