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

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

NEW: kdegraphics-4.7.0

Line 
1Name:    gwenview
2Summary: An image viewer
3Summary(ja): 画像ビューア
4Version: 4.7.0
5Release: 2%{?_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}
54unset QTDIR || : ; . /etc/profile.d/qt4.sh
55%cmake \
56    -DCMAKE_BUILD_TYPE=release \
57    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
58    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
59    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
60    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
61    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
62    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
63    ..
64popd
65
66make %{?_smp_mflags} -C %{_target_platform}
67
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
73
74# unpackaged files
75rm -fv $RPM_BUILD_ROOT%{_libdir}/libgwenviewlib.so
76
77
78%check
79desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/gwenview.desktop
80
81
82%post
83touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
84
85%posttrans
86gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
87update-desktop-database -q &> /dev/null ||:
88
89%postun
90if [ $1 -eq 0 ] ; then
91    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
92    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
93    update-desktop-database -q &> /dev/null ||:
94fi
95
96%post libs -p /sbin/ldconfig
97%postun libs -p /sbin/ldconfig
98
99
100%files
101%doc COPYING
102%{_bindir}/%{name}*
103%{_datadir}/kde4/apps/%{name}/
104%{_datadir}/kde4/apps/solid/actions/%{name}*.desktop
105%{_datadir}/kde4/services/ServiceMenus/*.desktop
106%{_datadir}/applications/kde4/%{name}.desktop
107%{_datadir}/icons/hicolor/*/*/*
108%{_datadir}/doc/HTML/en/%{name}/
109# split gvpart?
110%{_datadir}/kde4/apps/gvpart/
111%{_datadir}/kde4/services/gvpart.desktop
112%{_libdir}/kde4/gvpart.so
113
114%files libs
115%doc lib/libjpeg-80/README.jpeg
116%{_libdir}/libgwenviewlib.so.4*
117
118
119%changelog
120* Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
121- Initial build for Vine Linux
122
123* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
124- 4.7.0
125
126* Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2
127- License: GPLv2+
128- -libs: License: IJG and LGPLv2+ and GPLv2+ and LGPLv2 or LGPLv3
129- %%postun: +update-desktop-database
130
131* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
132- 4.6.95
133- update URL
134
135* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
136- fix Source0 URL
137- Conflicts: kdegraphics < 7:4.6.90-10
138
139* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
140- first try
141
Note: See TracBrowser for help on using the repository browser.