1 | Name: ksnapshot |
---|
2 | Summary: A screen capture utility |
---|
3 | Summary(ja): スクリーンショットを撮るためのツール |
---|
4 | Version: 4.9.2 |
---|
5 | Release: 1%{?_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/stable/%{version}/src/%{name}-%{version}.tar.xz |
---|
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 | %cmake \ |
---|
36 | -DCMAKE_BUILD_TYPE=release \ |
---|
37 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
38 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
39 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
40 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
41 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
42 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
43 | .. |
---|
44 | popd |
---|
45 | |
---|
46 | make %{?_smp_mflags} -C %{_target_platform} |
---|
47 | |
---|
48 | |
---|
49 | %install |
---|
50 | rm -rf $RPM_BUILD_ROOT |
---|
51 | |
---|
52 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
53 | |
---|
54 | |
---|
55 | %check |
---|
56 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
57 | |
---|
58 | %clean |
---|
59 | rm -rf $RPM_BUILD_ROOT |
---|
60 | |
---|
61 | %post |
---|
62 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
63 | |
---|
64 | %posttrans |
---|
65 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
66 | |
---|
67 | %postun |
---|
68 | if [ $1 -eq 0 ] ; then |
---|
69 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
70 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
71 | fi |
---|
72 | |
---|
73 | |
---|
74 | %files |
---|
75 | %{_bindir}/%{name} |
---|
76 | %{_bindir}/kbackgroundsnapshot |
---|
77 | %{_datadir}/dbus-1/interfaces/org.kde.ksnapshot.xml |
---|
78 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
79 | %{_datadir}/icons/hicolor/*/*/* |
---|
80 | %{_docdir}/HTML/en/%{name}/ |
---|
81 | |
---|
82 | |
---|
83 | %changelog |
---|
84 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
85 | - new upstream release |
---|
86 | |
---|
87 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
88 | - new upstream release |
---|
89 | |
---|
90 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
91 | - new upstream release |
---|
92 | |
---|
93 | * Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
94 | - Initial build for Vine Linux |
---|
95 | |
---|
96 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
97 | - 4.7.0 |
---|
98 | |
---|
99 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
100 | - 4.6.95 |
---|
101 | - fix URL |
---|
102 | |
---|
103 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
104 | - fix Source URL |
---|
105 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
106 | |
---|
107 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
108 | - first try |
---|