[4665] | 1 | Name: kolourpaint |
---|
| 2 | Summary: An easy-to-use paint program |
---|
| 3 | Summary(ja): 簡単に使えるペイントツール |
---|
| 4 | Version: 4.7.0 |
---|
| 5 | Release: 2%{?_dist_release} |
---|
| 6 | |
---|
| 7 | License: BSD |
---|
| 8 | Group: Applications/Graphics |
---|
| 9 | URL: https://projects.kde.org/projects/kde/kdegraphics/kolourpaint |
---|
| 10 | |
---|
| 11 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
| 12 | |
---|
| 13 | BuildRequires: desktop-file-utils |
---|
| 14 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 15 | BuildRequires: qimageblitz-devel |
---|
| 16 | |
---|
| 17 | Requires: %{name}-libs%{?_isa} = %{version}-%{release} |
---|
| 18 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
| 19 | # when split occurred |
---|
| 20 | Conflicts: kdegraphics < 4.6.95-10 |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | %{summary}. |
---|
| 25 | |
---|
| 26 | %package libs |
---|
| 27 | Summary: Runtime libraries for %{name} |
---|
| 28 | Summary(ja): %{name} のランタイムライブラリ |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | License: LGPLv2 |
---|
| 31 | |
---|
| 32 | %description libs |
---|
| 33 | %{summary}. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %prep |
---|
| 37 | %setup -q |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %build |
---|
| 41 | mkdir -p %{_target_platform} |
---|
| 42 | pushd %{_target_platform} |
---|
| 43 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
| 44 | %cmake \ |
---|
| 45 | -DCMAKE_BUILD_TYPE=release \ |
---|
| 46 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 47 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
| 48 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
| 49 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 50 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
| 51 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 52 | .. |
---|
| 53 | popd |
---|
| 54 | |
---|
| 55 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | %install |
---|
| 59 | rm -rf $RPM_BUILD_ROOT |
---|
| 60 | |
---|
| 61 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 62 | |
---|
| 63 | ## unpackaged files |
---|
| 64 | rm -fv $RPM_BUILD_ROOT%{_libdir}/libkolourpaint_lgpl.so |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %check |
---|
| 68 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
| 69 | |
---|
| 70 | %clean |
---|
| 71 | rm -rf $RPM_BUILD_ROOT |
---|
| 72 | |
---|
| 73 | %post |
---|
| 74 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 75 | |
---|
| 76 | %posttrans |
---|
| 77 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 78 | update-desktop-database -q &> /dev/null ||: |
---|
| 79 | |
---|
| 80 | %postun |
---|
| 81 | if [ $1 -eq 0 ] ; then |
---|
| 82 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 83 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 84 | fi |
---|
| 85 | |
---|
| 86 | %post libs -p /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | %postun libs -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %files |
---|
| 92 | %doc AUTHORS BUGS ChangeLog COPYING NEWS README |
---|
| 93 | %{_bindir}/%{name} |
---|
| 94 | %{_datadir}/kde4/apps/%{name}/ |
---|
| 95 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
| 96 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 97 | %{_docdir}/HTML/en/%{name}/ |
---|
| 98 | |
---|
| 99 | %files libs |
---|
| 100 | %{_libdir}/libkolourpaint_lgpl.so.4* |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %changelog |
---|
| 104 | * Sun Aug 21 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 105 | - Initial build for Vine Linux |
---|
| 106 | |
---|
| 107 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 108 | - 4.7.0 |
---|
| 109 | |
---|
| 110 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 111 | - 4.6.95 |
---|
| 112 | |
---|
| 113 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
| 114 | - License: BSD, -libs: License: LGPLv2 |
---|
| 115 | - fix URL |
---|
| 116 | |
---|
| 117 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
| 118 | - fix Source0 URL |
---|
| 119 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
| 120 | |
---|
| 121 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
| 122 | - first try |
---|
| 123 | |
---|
| 124 | |
---|