source: projects/specs/trunk/k/ksnapshot/ksnapshot-vl.spec @ 6725

Revision 6725, 2.5 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.0

Line 
1Name:    ksnapshot
2Summary: A screen capture utility
3Summary(ja): スクリーンショットを撮るためのツール
4Version: 4.9.0
5Release: 1%{?_dist_release}
6
7License: GPLv2
8Group:   Applications/Accessories
9URL:     https://projects.kde.org/projects/kde/kdegraphics/ksnapshot
10
11Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildRequires: desktop-file-utils
15BuildRequires: exiv2-devel
16BuildRequires: kdelibs4-devel >= %{version}
17BuildRequires: libkipi-devel >= %{version}
18BuildRequires: libXfixes-devel
19
20Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
21# when split occurred
22Conflicts: kdegraphics < 4.6.95-10
23
24%description
25%{summary}.
26
27
28%prep
29%setup -q
30
31
32%build
33mkdir -p %{_target_platform}
34pushd %{_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    ..
44popd
45
46make %{?_smp_mflags} -C %{_target_platform}
47
48
49%install
50rm -rf $RPM_BUILD_ROOT
51
52make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
53
54
55%check
56desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post
62touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
63
64%posttrans
65gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
66
67%postun
68if [ $1 -eq 0 ] ; then
69        touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
70        gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
71fi
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 Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
85- new upstream release
86
87* Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
88- Initial build for Vine Linux
89
90* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
91- 4.7.0
92
93* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
94- 4.6.95
95- fix URL
96
97* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
98- fix Source URL
99- Conflicts: kdegraphics < 7:4.6.90-10
100
101* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
102- first try
Note: See TracBrowser for help on using the repository browser.