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

Revision 4665, 2.4 KB checked in by inagaki, 13 years ago (diff)

NEW: kdegraphics-4.7.0

Line 
1Name:    ksnapshot
2Summary: A screen capture utility
3Summary(ja): スクリーンショットを撮るためのツール
4Version: 4.7.0
5Release: 2%{?_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/unstable/%{version}/src/%{name}-%{version}.tar.bz2
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}
35unset 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    ..
45popd
46
47make %{?_smp_mflags} -C %{_target_platform}
48
49
50%install
51rm -rf $RPM_BUILD_ROOT
52
53make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
54
55
56%check
57desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post
63touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
64
65%posttrans
66gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
67
68%postun
69if [ $1 -eq 0 ] ; then
70        touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
71        gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
72fi
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
Note: See TracBrowser for help on using the repository browser.