1 | Name: ksnapshot |
---|
2 | Summary: A screen capture utility |
---|
3 | Summary(ja): スクリーンショットを撮るためのツール |
---|
4 | Version: 4.7.0 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | |
---|
7 | License: GPLv2 |
---|
8 | Group: Applications/Accessories |
---|
9 | URL: https://projects.kde.org/projects/kde/kdegraphics/ksnapshot |
---|
10 | |
---|
11 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: desktop-file-utils |
---|
15 | BuildRequires: exiv2-devel |
---|
16 | BuildRequires: kdelibs4-devel >= %{version} |
---|
17 | BuildRequires: libkipi-devel >= %{version} |
---|
18 | BuildRequires: libXfixes-devel |
---|
19 | |
---|
20 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
21 | # when split occurred |
---|
22 | Conflicts: kdegraphics < 4.6.95-10 |
---|
23 | |
---|
24 | %description |
---|
25 | %{summary}. |
---|
26 | |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q |
---|
30 | |
---|
31 | |
---|
32 | %build |
---|
33 | mkdir -p %{_target_platform} |
---|
34 | pushd %{_target_platform} |
---|
35 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
36 | %cmake \ |
---|
37 | -DCMAKE_BUILD_TYPE=release \ |
---|
38 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
39 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
40 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
41 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
42 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
43 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
44 | .. |
---|
45 | popd |
---|
46 | |
---|
47 | make %{?_smp_mflags} -C %{_target_platform} |
---|
48 | |
---|
49 | |
---|
50 | %install |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | |
---|
53 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
54 | |
---|
55 | |
---|
56 | %check |
---|
57 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
58 | |
---|
59 | %clean |
---|
60 | rm -rf $RPM_BUILD_ROOT |
---|
61 | |
---|
62 | %post |
---|
63 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
64 | |
---|
65 | %posttrans |
---|
66 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
67 | |
---|
68 | %postun |
---|
69 | if [ $1 -eq 0 ] ; then |
---|
70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
71 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
72 | fi |
---|
73 | |
---|
74 | |
---|
75 | %files |
---|
76 | %{_bindir}/%{name} |
---|
77 | %{_bindir}/kbackgroundsnapshot |
---|
78 | %{_datadir}/dbus-1/interfaces/org.kde.ksnapshot.xml |
---|
79 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
80 | %{_datadir}/icons/hicolor/*/*/* |
---|
81 | %{_docdir}/HTML/en/%{name}/ |
---|
82 | |
---|
83 | |
---|
84 | %changelog |
---|
85 | * Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
86 | - Initial build for Vine Linux |
---|
87 | |
---|
88 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
89 | - 4.7.0 |
---|
90 | |
---|
91 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
92 | - 4.6.95 |
---|
93 | - fix URL |
---|
94 | |
---|
95 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
96 | - fix Source URL |
---|
97 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
98 | |
---|
99 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
100 | - first try |
---|