1 | Name: gwenview |
---|
2 | Summary: An image viewer |
---|
3 | Summary(ja): 画像ビューア |
---|
4 | Version: 4.11.4 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | # app: GPLv2+ |
---|
8 | # lib: IJG and (LGPLv2 or LGPLv3 or LGPLv3+ (KDE e.V.)) and LGPLv2+ and GPLv2+ |
---|
9 | License: GPLv2+ |
---|
10 | Group: Applications/Graphics |
---|
11 | URL: https://projects.kde.org/projects/kde/kdegraphics/gwenview |
---|
12 | |
---|
13 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: desktop-file-utils |
---|
17 | BuildRequires: exiv2-devel |
---|
18 | # libkonq |
---|
19 | BuildRequires: kdebase4-devel |
---|
20 | BuildRequires: kdelibs4-devel >= %{version} |
---|
21 | BuildRequires: kactivities-devel >= %{version} |
---|
22 | BuildRequires: libkipi-devel >= %{version} |
---|
23 | BuildRequires: libjpeg-devel |
---|
24 | BuildRequires: lcms2-devel |
---|
25 | BuildRequires: shared-desktop-ontologies-devel |
---|
26 | BuildRequires: soprano-devel |
---|
27 | |
---|
28 | Requires: %{name}-libs = %{version}-%{release} |
---|
29 | Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} |
---|
30 | |
---|
31 | # when split occurred |
---|
32 | Conflicts: kdegraphics < 4.6.95-10 |
---|
33 | |
---|
34 | %description |
---|
35 | %{summary}. |
---|
36 | |
---|
37 | %package libs |
---|
38 | Summary: Runtime files for %{name} |
---|
39 | Summary(ja): %{name} のランタイムライブラリ |
---|
40 | # wrt (LGPLv2 or LGPLv3), KDE e.V. may determine that future GPL versions are accepted |
---|
41 | License: IJG and LGPLv2+ and GPLv2+ and LGPLv2 or LGPLv3 |
---|
42 | Group: System Environment/Libraries |
---|
43 | #Requires: %{name} = %{version}-%{release} |
---|
44 | |
---|
45 | %description libs |
---|
46 | %{summary}. |
---|
47 | |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | |
---|
52 | |
---|
53 | %build |
---|
54 | mkdir -p %{_target_platform} |
---|
55 | pushd %{_target_platform} |
---|
56 | %cmake \ |
---|
57 | -DCMAKE_BUILD_TYPE=release \ |
---|
58 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
59 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
60 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
61 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
62 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
63 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
64 | .. |
---|
65 | popd |
---|
66 | |
---|
67 | make %{?_smp_mflags} -C %{_target_platform} |
---|
68 | |
---|
69 | |
---|
70 | %install |
---|
71 | rm -rf $RPM_BUILD_ROOT |
---|
72 | |
---|
73 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
74 | |
---|
75 | # unpackaged files |
---|
76 | rm -fv $RPM_BUILD_ROOT%{_libdir}/libgwenviewlib.so |
---|
77 | |
---|
78 | |
---|
79 | %check |
---|
80 | desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/gwenview.desktop |
---|
81 | |
---|
82 | |
---|
83 | %post |
---|
84 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
85 | |
---|
86 | %posttrans |
---|
87 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
88 | update-desktop-database -q &> /dev/null ||: |
---|
89 | |
---|
90 | %postun |
---|
91 | if [ $1 -eq 0 ] ; then |
---|
92 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
93 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
94 | update-desktop-database -q &> /dev/null ||: |
---|
95 | fi |
---|
96 | |
---|
97 | %post libs -p /sbin/ldconfig |
---|
98 | %postun libs -p /sbin/ldconfig |
---|
99 | |
---|
100 | |
---|
101 | %files |
---|
102 | %doc COPYING |
---|
103 | %{_bindir}/%{name}* |
---|
104 | %{_datadir}/kde4/apps/%{name}/ |
---|
105 | %{_datadir}/kde4/apps/solid/actions/%{name}*.desktop |
---|
106 | %{_datadir}/kde4/services/ServiceMenus/*.desktop |
---|
107 | %{_datadir}/applications/kde4/%{name}.desktop |
---|
108 | %{_datadir}/icons/hicolor/*/*/* |
---|
109 | %{_datadir}/doc/HTML/en/%{name}/ |
---|
110 | # split gvpart? |
---|
111 | %{_datadir}/kde4/apps/gvpart/ |
---|
112 | %{_datadir}/kde4/services/gvpart.desktop |
---|
113 | %{_libdir}/kde4/gvpart.so |
---|
114 | |
---|
115 | %files libs |
---|
116 | %doc lib/libjpeg-80/README.jpeg |
---|
117 | %{_libdir}/libgwenviewlib.so.4* |
---|
118 | |
---|
119 | |
---|
120 | %changelog |
---|
121 | * Sun Dec 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1 |
---|
122 | - new upstream release |
---|
123 | |
---|
124 | * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1 |
---|
125 | - new upstream release |
---|
126 | |
---|
127 | * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1 |
---|
128 | - new upstream release |
---|
129 | - add BuildRequires: kactivities-devel, lcms2-devel |
---|
130 | |
---|
131 | * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1 |
---|
132 | - new upstream release |
---|
133 | |
---|
134 | * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1 |
---|
135 | - new upstream release |
---|
136 | |
---|
137 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
138 | - new upstream release |
---|
139 | |
---|
140 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
141 | - new upstream release |
---|
142 | |
---|
143 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
144 | - new upstream release |
---|
145 | |
---|
146 | * Sun Jul 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-4 |
---|
147 | - rebuild with exiv2-0.23 |
---|
148 | |
---|
149 | * Mon May 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.0-3 |
---|
150 | - rebuild with exiv2-0.22 |
---|
151 | |
---|
152 | * Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
153 | - Initial build for Vine Linux |
---|
154 | |
---|
155 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
156 | - 4.7.0 |
---|
157 | |
---|
158 | * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2 |
---|
159 | - License: GPLv2+ |
---|
160 | - -libs: License: IJG and LGPLv2+ and GPLv2+ and LGPLv2 or LGPLv3 |
---|
161 | - %%postun: +update-desktop-database |
---|
162 | |
---|
163 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
164 | - 4.6.95 |
---|
165 | - update URL |
---|
166 | |
---|
167 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
168 | - fix Source0 URL |
---|
169 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
170 | |
---|
171 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
172 | - first try |
---|
173 | |
---|