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

Revision 7105, 2.7 KB checked in by Takemikaduchi, 12 years ago (diff)

KDE-4.9.3, etc

Line 
1Name:    ksnapshot
2Summary: A screen capture utility
3Summary(ja): スクリーンショットを撮るためのツール
4Version: 4.9.3
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* Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
85- new upstream release
86
87* Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
88- new upstream release
89
90* Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
91- new upstream release
92
93* Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
94- new upstream release
95
96* Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
97- Initial build for Vine Linux
98
99* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
100- 4.7.0
101
102* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
103- 4.6.95
104- fix URL
105
106* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
107- fix Source URL
108- Conflicts: kdegraphics < 7:4.6.90-10
109
110* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
111- first try
Note: See TracBrowser for help on using the repository browser.