source: projects/specs/trunk/g/gwenview/gwenview-vl.spec @ 6152

Revision 6152, 3.7 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

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