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