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