1 | # Review Request: |
---|
2 | # https://bugzilla.redhat.com/show_bug.cgi?id=432613 |
---|
3 | |
---|
4 | %define kdeversion 4.4.0 |
---|
5 | |
---|
6 | Name: kgrab |
---|
7 | Summary: A screen grabbing utility |
---|
8 | Summary(ja): スクリーンキャプチャユーティリティ |
---|
9 | Version: 0.1.1 |
---|
10 | Release: 23%{?dist} |
---|
11 | |
---|
12 | Group: Applications/Accessories |
---|
13 | License: GPLv2+ |
---|
14 | URL: http://extragear.kde.org |
---|
15 | |
---|
16 | Source0: ftp://ftp.kde.org/pub/kde/stable/%{kdeversion}/src/extragear/%{name}-%{version}-kde%{kdeversion}.tar.bz2 |
---|
17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | BuildRequires: kdelibs4-devel >= 4 |
---|
20 | #BuildRequires: kde-filesystem >= 4 |
---|
21 | BuildRequires: cmake |
---|
22 | BuildRequires: desktop-file-utils |
---|
23 | BuildRequires: gettext |
---|
24 | |
---|
25 | #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } |
---|
26 | |
---|
27 | %description |
---|
28 | kgrab is a screen grabbing utility for KDE4. |
---|
29 | |
---|
30 | %description -l ja |
---|
31 | KDE4 向けのスクリーンキャプチャユーティリティです. |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -qn %{name}-%{version}-kde%{kdeversion} |
---|
35 | |
---|
36 | |
---|
37 | %build |
---|
38 | mkdir -p %{_target_platform} |
---|
39 | pushd %{_target_platform} |
---|
40 | %cmake \ |
---|
41 | -DCMAKE_BUILD_TYPE=release \ |
---|
42 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
43 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
44 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
45 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
46 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
47 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
48 | .. |
---|
49 | popd |
---|
50 | |
---|
51 | make %{?_smp_mflags} -C %{_target_platform} |
---|
52 | |
---|
53 | |
---|
54 | %install |
---|
55 | rm -rf $RPM_BUILD_ROOT |
---|
56 | make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
57 | |
---|
58 | # validate desktop file |
---|
59 | desktop-file-install --vendor "" \ |
---|
60 | --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \ |
---|
61 | $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop |
---|
62 | |
---|
63 | %find_lang %{name} |
---|
64 | |
---|
65 | %clean |
---|
66 | rm -rf $RPM_BUILD_ROOT |
---|
67 | |
---|
68 | |
---|
69 | %post |
---|
70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
71 | |
---|
72 | %postun |
---|
73 | if [ $1 -eq 0 ] ; then |
---|
74 | update-desktop-database -q &> /dev/null |
---|
75 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null |
---|
76 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
77 | fi |
---|
78 | |
---|
79 | %posttrans |
---|
80 | update-desktop-database -q &> /dev/null |
---|
81 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
82 | |
---|
83 | |
---|
84 | %files -f %{name}.lang |
---|
85 | %defattr(-,root,root,-) |
---|
86 | %doc COPYING COPYING.DOC COPYING.LIB |
---|
87 | %{_bindir}/kgrab |
---|
88 | %{_datadir}/applications/kde4/kgrab.desktop |
---|
89 | %{_datadir}/dbus-1/interfaces/org.kde.kgrab.xml |
---|
90 | %{_datadir}/icons/hicolor/*/apps/kgrab.* |
---|
91 | %{_datadir}/kde4/apps/kgrab/ |
---|
92 | |
---|
93 | |
---|
94 | %changelog |
---|
95 | * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.1-23 |
---|
96 | - initial build for Vine Linux |
---|
97 | - added Japanese summary |
---|
98 | |
---|
99 | * Fri Feb 12 2010 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-22 |
---|
100 | - 4.4.0 |
---|
101 | - drop kgrab-0.1.1-X11_libs.patch (already included) |
---|
102 | |
---|
103 | * Tue Nov 24 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-21 |
---|
104 | - rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI) |
---|
105 | |
---|
106 | * Thu Nov 05 2009 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-20 |
---|
107 | - 4.3.3 |
---|
108 | - optimize scriptlets |
---|
109 | |
---|
110 | * Tue Sep 01 2009 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-19 |
---|
111 | - 4.3.1 |
---|
112 | |
---|
113 | * Tue Aug 04 2009 Than Ngo <than@redhat.com> - 0.1.1-18 |
---|
114 | - 4.3.0 |
---|
115 | |
---|
116 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-17 |
---|
117 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
118 | |
---|
119 | * Tue Jun 10 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-16 |
---|
120 | - 4.2.4 |
---|
121 | |
---|
122 | * Tue May 12 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-15 |
---|
123 | - 4.2.3 |
---|
124 | |
---|
125 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-14 |
---|
126 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
127 | |
---|
128 | * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 0.1.1-13 |
---|
129 | - 4.2.0 |
---|
130 | |
---|
131 | * Fri Dec 05 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.1.1-12 |
---|
132 | - rebuild for fixed kde-filesystem (macros.kde4) (get rid of rpaths) |
---|
133 | |
---|
134 | * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.1.1-11 |
---|
135 | - Include /usr/share/kde4/apps/kgrab directory. |
---|
136 | |
---|
137 | * Sat Oct 04 2008 Than Ngo <than@redhat.com> 0.1.1-10 |
---|
138 | - 4.1.2 |
---|
139 | |
---|
140 | * Fri Aug 29 2008 Than Ngo <than@redhat.com> 0.1.1-9 |
---|
141 | - 4.1.1 |
---|
142 | |
---|
143 | * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.1.1-8 |
---|
144 | - 4.1 (final) |
---|
145 | |
---|
146 | * Mon May 26 2008 Than Ngo <than@redhat.com> 0.1.1-7.kde4.0.80 |
---|
147 | - 4.1 beta1 |
---|
148 | |
---|
149 | * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-6 |
---|
150 | - rebuild (again) for the fixed %%{_kde4_buildtype} |
---|
151 | |
---|
152 | * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-5 |
---|
153 | - rebuild for NDEBUG and _kde4_libexecdir |
---|
154 | |
---|
155 | * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-4 |
---|
156 | - remove reference to KDE 4 in summary and description |
---|
157 | |
---|
158 | * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-3 |
---|
159 | - added Requires: kdelibs4 >= 4 |
---|
160 | - added Requires: oxygen-icon-theme |
---|
161 | |
---|
162 | * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-2 |
---|
163 | - added requires xdg-utils, kde4-macros(api) |
---|
164 | |
---|
165 | * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-1 |
---|
166 | - initial version |
---|