source: projects/specs/trunk/k/kolourpaint/kolourpaint-vl.spec @ 4665

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

NEW: kdegraphics-4.7.0

Line 
1Name:    kolourpaint
2Summary: An easy-to-use paint program
3Summary(ja): 簡単に使えるペイントツール
4Version: 4.7.0
5Release: 2%{?_dist_release}
6
7License: BSD
8Group:   Applications/Graphics
9URL:     https://projects.kde.org/projects/kde/kdegraphics/kolourpaint
10
11Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
12
13BuildRequires: desktop-file-utils
14BuildRequires: kdelibs4-devel >= %{version}
15BuildRequires: qimageblitz-devel
16
17Requires: %{name}-libs%{?_isa} = %{version}-%{release}
18Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
19# when split occurred
20Conflicts: kdegraphics < 4.6.95-10
21
22
23%description
24%{summary}.
25
26%package  libs
27Summary:  Runtime libraries for %{name}
28Summary(ja): %{name} のランタイムライブラリ
29Requires: %{name} = %{version}-%{release}
30License: LGPLv2
31
32%description libs
33%{summary}.
34
35
36%prep
37%setup -q
38
39
40%build
41mkdir -p %{_target_platform}
42pushd %{_target_platform}
43unset QTDIR || : ; . /etc/profile.d/qt4.sh
44%cmake \
45    -DCMAKE_BUILD_TYPE=release \
46    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
47    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
48    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
49    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
50    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
51    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
52    ..
53popd
54
55make %{?_smp_mflags} -C %{_target_platform}
56
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
62
63## unpackaged files
64rm -fv $RPM_BUILD_ROOT%{_libdir}/libkolourpaint_lgpl.so
65
66
67%check
68desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
69
70%clean
71rm -rf $RPM_BUILD_ROOT
72
73%post
74touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
75
76%posttrans
77gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
78update-desktop-database -q &> /dev/null ||:
79
80%postun
81if [ $1 -eq 0 ] ; then
82    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
83    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
84fi
85
86%post libs -p /sbin/ldconfig
87
88%postun libs -p /sbin/ldconfig
89
90
91%files
92%doc AUTHORS BUGS ChangeLog COPYING NEWS README
93%{_bindir}/%{name}
94%{_datadir}/kde4/apps/%{name}/
95%{_datadir}/applications/kde4/%{name}.desktop
96%{_datadir}/icons/hicolor/*/*/*
97%{_docdir}/HTML/en/%{name}/
98
99%files libs
100%{_libdir}/libkolourpaint_lgpl.so.4*
101
102
103%changelog
104* Sun Aug 21 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
105- Initial build for Vine Linux
106
107* Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
108- 4.7.0
109
110* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
111- 4.6.95
112
113* Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
114- License: BSD, -libs: License: LGPLv2
115- fix URL
116
117* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
118- fix Source0 URL
119- Conflicts: kdegraphics < 7:4.6.90-10
120
121* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
122- first try
123
124
Note: See TracBrowser for help on using the repository browser.