[1814] | 1 | |
---|
| 2 | Summary: Personal finance |
---|
| 3 | Name: kmymoney |
---|
| 4 | Version: 4.5 |
---|
| 5 | Release: 2%{?_dist_release} |
---|
| 6 | |
---|
| 7 | Group: Applications/Productivity |
---|
| 8 | # kmm itself is GPLv2+ , but kdchart is GPLv2 or GPLv3 |
---|
| 9 | License: GPLv2 or GPLv3 |
---|
| 10 | URL: http://kmymoney2.sourceforge.net/ |
---|
| 11 | |
---|
| 12 | Source0: http://downloads.sourceforge.net/sourceforge/kmymoney2/kmymoney-%{version}.tar.bz2 |
---|
| 13 | |
---|
| 14 | ## upstreamable patches |
---|
| 15 | # don't force/hardcode rpaths |
---|
| 16 | Patch50: kmymoney-3.96.1-rpath.patch |
---|
| 17 | |
---|
| 18 | ## upstream patches |
---|
| 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | BuildRequires: libboost-devel |
---|
| 22 | BuildRequires: cppunit-devel |
---|
| 23 | BuildRequires: desktop-file-utils |
---|
| 24 | BuildRequires: gettext |
---|
| 25 | BuildRequires: gpgme-devel |
---|
| 26 | BuildRequires: glibmm-devel |
---|
| 27 | BuildRequires: kdepimlibs-devel |
---|
| 28 | #BuildRequires: koffice-kdchart-devel |
---|
| 29 | BuildRequires: libical-devel |
---|
| 30 | BuildRequires: libxml2-devel |
---|
| 31 | BuildRequires: libofx-devel |
---|
| 32 | BuildRequires: libxml++-devel |
---|
| 33 | BuildRequires: q4banking-devel |
---|
| 34 | |
---|
| 35 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 36 | |
---|
| 37 | Obsoletes: kmymoney2 < 2 |
---|
| 38 | Provides: kmymoney2 = %{version}-%{release} |
---|
| 39 | |
---|
| 40 | Obsoletes: kmymoney2-aqbanking < 2 |
---|
| 41 | Provides: kmymoney2-aqbanking = %{version}-%{release} |
---|
| 42 | |
---|
| 43 | %description |
---|
| 44 | KMyMoney strives to be the best personal finance manager. |
---|
| 45 | The ultimate objectives of KMyMoney are... |
---|
| 46 | * Accuracy. Using time tested double entry accounting principles |
---|
| 47 | helps ensure that your finances are kept in correct order. |
---|
| 48 | * Ease of use. Strives to be the easiest open source personal |
---|
| 49 | finance manager to use, especially for the non-technical user. |
---|
| 50 | * Familiar Features. Intends to provide all important features |
---|
| 51 | found in the commercially-available, personal finance managers. |
---|
| 52 | |
---|
| 53 | %package libs |
---|
| 54 | Summary: Run-time libraries for %{name} |
---|
| 55 | Group: System Environment/Libraries |
---|
| 56 | Requires: %{name} = %{version}-%{release} |
---|
| 57 | Obsoletes: kmymoney2-libs < 2 |
---|
| 58 | %description libs |
---|
| 59 | %{summary}. |
---|
| 60 | |
---|
| 61 | %package devel |
---|
| 62 | Summary: Development files for %{name} |
---|
| 63 | Group: Development/Libraries |
---|
| 64 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 65 | Requires: kdelibs4-devel |
---|
| 66 | Obsoletes: kmymoney2-devel < 2 |
---|
| 67 | %description devel |
---|
| 68 | %{summary}. |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %prep |
---|
| 72 | %setup -q -n kmymoney-%{version} |
---|
| 73 | |
---|
| 74 | %patch50 -p1 -b .rpath |
---|
| 75 | |
---|
| 76 | # nuke .directory files |
---|
| 77 | rm -fv kmymoney/pics/l10n/*/.directory |
---|
| 78 | |
---|
| 79 | ## kdchart munging begin |
---|
| 80 | #sed -i.kdchart -e 's|ADD_SUBDIRECTORY( libkdchart )|#ADD_SUBDIRECTORY( libkdchart )|' CMakeLists.txt |
---|
| 81 | #sed -i.kdchart -e 's|kmm_kdchart|kdchart|' kmymoney/CMakeLists.txt |
---|
| 82 | #mv libkdchart libkdchart.kdchart |
---|
| 83 | #mkdir libkdchart |
---|
| 84 | #ln -s /usr/include/KDChart libkdchart/include |
---|
| 85 | #ln -s /usr/include/kdchart libkdchart/kdchart |
---|
| 86 | ## kdchart munging end |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %build |
---|
| 90 | mkdir -p %{_target_platform} |
---|
| 91 | pushd %{_target_platform} |
---|
| 92 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 93 | %{cmake} \ |
---|
| 94 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 95 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 96 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 97 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 98 | .. |
---|
| 99 | popd |
---|
| 100 | |
---|
| 101 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 102 | |
---|
| 103 | # fix world writable perms |
---|
| 104 | find . -type f -name 'ui_*.h' -exec chmod 0644 {} ';' |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %install |
---|
| 108 | rm -rf %{buildroot} |
---|
| 109 | make install/fast DESTDIR=%{buildroot} -C %{_target_platform} |
---|
| 110 | |
---|
| 111 | %find_lang kmymoney --with-kde |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | %check |
---|
| 115 | desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/kmymoney.desktop |
---|
| 116 | # make test |
---|
| 117 | |
---|
| 118 | %clean |
---|
| 119 | rm -rf %{buildroot} |
---|
| 120 | |
---|
| 121 | %post libs -p /sbin/ldconfig |
---|
| 122 | |
---|
| 123 | %postun libs -p /sbin/ldconfig |
---|
| 124 | |
---|
| 125 | %post |
---|
| 126 | touch --no-create %{_datadir}/icons/locolor &> /dev/null || : |
---|
| 127 | touch --no-create %{_datadir}/icons/oxygen &> /dev/null || : |
---|
| 128 | |
---|
| 129 | %postun |
---|
| 130 | if [ $1 -eq 0 ] ; then |
---|
| 131 | update-desktop-database -q &> /dev/null |
---|
| 132 | update-mime-database %{_datadir}/mime &> /dev/null |
---|
| 133 | touch --no-create %{_datadir}/icons/locolor &> /dev/null |
---|
| 134 | touch --no-create %{_datadir}/icons/oxygen &> /dev/null |
---|
| 135 | gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || : |
---|
| 136 | gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null || : |
---|
| 137 | fi |
---|
| 138 | |
---|
| 139 | %posttrans |
---|
| 140 | update-desktop-database -q &> /dev/null |
---|
| 141 | update-mime-database %{_datadir}/mime &> /dev/null |
---|
| 142 | gtk-update-icon-cache %{_datadir}/icons/locolor &> /dev/null || : |
---|
| 143 | gtk-update-icon-cache %{_datadir}/icons/oxygen &> /dev/null || : |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | %files -f kmymoney.lang |
---|
| 147 | %defattr(-,root,root,-) |
---|
| 148 | %doc AUTHORS ChangeLog COPYING TODO |
---|
| 149 | %doc README.Fileformats README.ofx |
---|
| 150 | %{_bindir}/kmymoney |
---|
| 151 | %{_datadir}/kde4/apps/kmymoney/ |
---|
| 152 | %{_datadir}/kde4/apps/kmm_*/ |
---|
| 153 | %{_datadir}/applications/kde4/kmymoney.desktop |
---|
| 154 | %{_datadir}/config.kcfg/kmymoney.kcfg |
---|
| 155 | %{_datadir}/kde4/services/*.desktop |
---|
| 156 | %{_datadir}/kde4/servicetypes/*.desktop |
---|
| 157 | %{_mandir}/man1/kmymoney.1.gz |
---|
| 158 | %{_datadir}/mime/packages/x-kmymoney.xml |
---|
| 159 | %{_datadir}/icons/locolor/*/*/* |
---|
| 160 | %{_datadir}/icons/oxygen/*/*/* |
---|
| 161 | %{_libdir}/kde4/*.so |
---|
| 162 | |
---|
| 163 | %files libs |
---|
| 164 | %defattr(-,root,root,-) |
---|
| 165 | %{_libdir}/libkmm_kdchart.so.4* |
---|
| 166 | %{_libdir}/libkmm_mymoney.so.4* |
---|
| 167 | %{_libdir}/libkmm_plugin.so.4* |
---|
| 168 | %{_libdir}/libkmm_widgets.so.4* |
---|
| 169 | |
---|
| 170 | %files devel |
---|
| 171 | %defattr(-,root,root,-) |
---|
| 172 | %{_includedir}/kde4/kmymoney/ |
---|
| 173 | %{_libdir}/libkmm_*.so |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | %changelog |
---|
| 177 | * Wed Sep 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.5-2 |
---|
| 178 | - Initial build for VineLinux |
---|
| 179 | |
---|
| 180 | * Mon Aug 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 4.5-1 |
---|
| 181 | - kmymoney-4.5 |
---|
| 182 | |
---|
| 183 | * Sun May 16 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.98.0-1 |
---|
| 184 | - kmymoney-3.98.0 |
---|
| 185 | |
---|
| 186 | * Wed Apr 07 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.97.2-1 |
---|
| 187 | - kmymoney-3.97.2 |
---|
| 188 | - License: GPLv2 or GPLv3 |
---|
| 189 | - omit .directory files from packaging |
---|
| 190 | - -debuginfo: fix world-writable perms in generated headers |
---|
| 191 | |
---|
| 192 | * Fri Apr 02 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.97.0-1 |
---|
| 193 | - kmymoney-3.97.0 |
---|
| 194 | - use external/shared kdchart |
---|
| 195 | |
---|
| 196 | * Fri Mar 19 2010 Rex Dieter <rdieter@fedoraproject.org> - 3.96.1-1 |
---|
| 197 | - kmymoney-3.96.1 (for kde4, beta) |
---|
| 198 | - Obsoletes: kmymoney2 (and friends) |
---|
| 199 | |
---|
| 200 | * Mon Feb 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.0.3-1 |
---|
| 201 | - kmymoney2-1.0.3 |
---|
| 202 | |
---|
| 203 | * Thu Jan 21 2010 Bill Nottingham <notting@redhat.com> - 1.0.2-2 |
---|
| 204 | - rebuild against latest aqbanking/qbanking |
---|
| 205 | |
---|
| 206 | * Sun Oct 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.2-1 |
---|
| 207 | - kmymoney2-1.0.2 |
---|
| 208 | |
---|
| 209 | * Sun Sep 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.1-1 |
---|
| 210 | - kmymoney2-1.0.1 |
---|
| 211 | |
---|
| 212 | * Wed Aug 19 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.0.0-1 |
---|
| 213 | - kmymoney2-1.0.0 |
---|
| 214 | |
---|
| 215 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-4 |
---|
| 216 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 217 | |
---|
| 218 | * Fri Jul 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.3-3 |
---|
| 219 | - validate .desktop file |
---|
| 220 | - -libs unconditional |
---|
| 221 | - use %%_isa where appropriate |
---|
| 222 | - optimize scriptlets |
---|
| 223 | |
---|
| 224 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2 |
---|
| 225 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 226 | |
---|
| 227 | * Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> 0.9.3-1 |
---|
| 228 | - kmymoney2-0.9.3 |
---|
| 229 | |
---|
| 230 | * Mon Sep 15 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-3 |
---|
| 231 | - respun tarball |
---|
| 232 | |
---|
| 233 | * Sun Sep 14 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.2-1 |
---|
| 234 | - kmymoney2-0.9.2 |
---|
| 235 | |
---|
| 236 | * Tue Sep 9 2008 Bill Nottingham <notting@redhat.com> 0.9-2 |
---|
| 237 | - rebuild for new libofx ABI |
---|
| 238 | |
---|
| 239 | * Wed May 14 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9-1 |
---|
| 240 | - kmymoney2-0.9 |
---|
| 241 | |
---|
| 242 | * Wed Mar 26 2008 Rex Dieter <rdieter@fedoraproject.org> 0.8.9-1 |
---|
| 243 | - kmymoney2-0.8.9 |
---|
| 244 | - --disable-kbanking (requires aqbanking,kbanking fix/update) |
---|
| 245 | - drop multilib upgrade hack |
---|
| 246 | |
---|
| 247 | * Fri Feb 22 2008 Rex Dieter <rdieter@fedoraproject.org> 0.8.8-3 |
---|
| 248 | - gcc43 patch (#434398) |
---|
| 249 | - multiarch conflicts, -libs subpkg (#341821) |
---|
| 250 | |
---|
| 251 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2 |
---|
| 252 | - Autorebuild for GCC 4.3 |
---|
| 253 | |
---|
| 254 | * Wed Dec 19 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.8-1 |
---|
| 255 | - kmymoney2-0.8.8 |
---|
| 256 | - --enable-kbanking |
---|
| 257 | |
---|
| 258 | * Sat Dec 08 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-5 |
---|
| 259 | - BR: kdelibs3-devel |
---|
| 260 | |
---|
| 261 | * Sat Aug 25 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-4 |
---|
| 262 | - respin (BuildID) |
---|
| 263 | |
---|
| 264 | * Thu Aug 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-3 |
---|
| 265 | - License: GPLv2+ |
---|
| 266 | |
---|
| 267 | * Wed Jul 25 2007 Jesse Keating <jkeating@redhat.com> 0.8.7-2 |
---|
| 268 | - Rebuild for RH #249435 |
---|
| 269 | |
---|
| 270 | * Mon Jul 23 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.7-1 |
---|
| 271 | - kmymoney2-0.8.7 |
---|
| 272 | |
---|
| 273 | * Sat Mar 10 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.6-1 |
---|
| 274 | - kmymoney2-0.8.6 |
---|
| 275 | - fix Obsoletes: kmymoney |
---|
| 276 | |
---|
| 277 | * Thu Jan 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.8.5-3 |
---|
| 278 | - fix _enable_ofxbanking macro usage to re-enable ofx support |
---|
| 279 | |
---|
| 280 | * Tue Nov 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.5-2 |
---|
| 281 | - drop desktop-file-utils bits |
---|
| 282 | - Ob/Pr: kmymoney(-devel), upstream/rpmforge calls it kmymoney |
---|
| 283 | |
---|
| 284 | * Thu Aug 31 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.5-1 |
---|
| 285 | - 0.8.5 |
---|
| 286 | |
---|
| 287 | * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.4-2 |
---|
| 288 | - --disable-final (for now) |
---|
| 289 | - BR: gettext |
---|
| 290 | |
---|
| 291 | * Sun May 21 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.4-1 |
---|
| 292 | - 0.8.4 |
---|
| 293 | |
---|
| 294 | * Thu Apr 13 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.3-3 |
---|
| 295 | - desktop-file-install --vendor="" |
---|
| 296 | |
---|
| 297 | * Wed Feb 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.3-1 |
---|
| 298 | - 0.8.3 |
---|
| 299 | |
---|
| 300 | * Fri Feb 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> |
---|
| 301 | - fc5: gcc/glibc respin |
---|
| 302 | |
---|
| 303 | * Sat Dec 31 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.2-1 |
---|
| 304 | - 0.8.2 |
---|
| 305 | |
---|
| 306 | * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-7 |
---|
| 307 | - gcc41 patch |
---|
| 308 | |
---|
| 309 | * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-6 |
---|
| 310 | - cleanup ofx deps |
---|
| 311 | |
---|
| 312 | * Fri Dec 23 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-5 |
---|
| 313 | - cleanup %%post |
---|
| 314 | - fc5 respin for new(er) libofx |
---|
| 315 | |
---|
| 316 | * Mon Nov 14 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-4 |
---|
| 317 | - relax BR: kdelibs-devel to 3.3 (for aurora/sparc, #173133) |
---|
| 318 | |
---|
| 319 | * Thu Nov 10 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-3 |
---|
| 320 | - fix relative symlinks |
---|
| 321 | |
---|
| 322 | * Wed Nov 09 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-2 |
---|
| 323 | - qt-3.3.5 patch |
---|
| 324 | - 'make check' workaround (kde bug #115863) |
---|
| 325 | - trim %%description |
---|
| 326 | |
---|
| 327 | * Sat Nov 05 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8.1-1 |
---|
| 328 | - 0.8.1 |
---|
| 329 | |
---|
| 330 | * Fri Nov 04 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-5 |
---|
| 331 | - drop useless macros |
---|
| 332 | - use %%fedora,%%rhel to conditionalize ofxbanking support |
---|
| 333 | |
---|
| 334 | * Fri Oct 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-4 |
---|
| 335 | - %%post,%%postun: gtk-update-icon-cache, update-desktop-database |
---|
| 336 | - omit lib*.la |
---|
| 337 | - x86_64: set QTDIR/QTLIB |
---|
| 338 | |
---|
| 339 | * Thu Sep 01 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-3 |
---|
| 340 | - BR: libofx-devel |
---|
| 341 | |
---|
| 342 | * Tue Aug 30 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-2 |
---|
| 343 | - simplify specfile |
---|
| 344 | - fix build |
---|
| 345 | |
---|
| 346 | * Fri Aug 12 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0.8-1 |
---|
| 347 | - 0.8 |
---|
| 348 | |
---|