1 | Name: libksane |
---|
2 | Summary: SANE Library interface for KDE |
---|
3 | Summary(ja): KDE 用の SANE ライブラリインターフェース |
---|
4 | Version: 4.9.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | |
---|
7 | License: LGPLv2+ |
---|
8 | Group: System Environment/Libraries |
---|
9 | URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libksane |
---|
10 | |
---|
11 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.xz |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: kdelibs4-devel >= %{version} |
---|
15 | BuildRequires: sane-devel |
---|
16 | #BuildRequires: sane-backends-devel |
---|
17 | |
---|
18 | Requires: kdelibs4 >= %{version} |
---|
19 | |
---|
20 | # when split occurred |
---|
21 | Conflicts: kdegraphics-libs < 4.6.95-10 |
---|
22 | |
---|
23 | %description |
---|
24 | %{summary}. |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Development files for %{name} |
---|
28 | Summary(ja): %{name} の開発用ファイル |
---|
29 | Group: Development/Libraries |
---|
30 | Requires: %{name} = %{version}-%{release} |
---|
31 | Requires: kdelibs4-devel |
---|
32 | |
---|
33 | %description devel |
---|
34 | %{summary}. |
---|
35 | |
---|
36 | |
---|
37 | %prep |
---|
38 | %setup -q |
---|
39 | |
---|
40 | |
---|
41 | %build |
---|
42 | mkdir -p %{_target_platform} |
---|
43 | pushd %{_target_platform} |
---|
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 | .. |
---|
53 | popd |
---|
54 | |
---|
55 | make %{?_smp_mflags} -C %{_target_platform} |
---|
56 | |
---|
57 | |
---|
58 | %install |
---|
59 | rm -rf $RPM_BUILD_ROOT |
---|
60 | |
---|
61 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
62 | |
---|
63 | |
---|
64 | %check |
---|
65 | export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
66 | pkg-config --modversion libksane |
---|
67 | |
---|
68 | |
---|
69 | %post |
---|
70 | /sbin/ldconfig |
---|
71 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
72 | |
---|
73 | %posttrans |
---|
74 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
75 | |
---|
76 | %postun |
---|
77 | /sbin/ldconfig |
---|
78 | if [ $1 -eq 0 ] ; then |
---|
79 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
80 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
81 | fi |
---|
82 | |
---|
83 | |
---|
84 | %files |
---|
85 | %doc AUTHORS COPYING.LIB README TODO |
---|
86 | %{_libdir}/libksane.so.* |
---|
87 | %{_datadir}/icons/hicolor/*/*/* |
---|
88 | |
---|
89 | %files devel |
---|
90 | %{_libdir}/libksane.so |
---|
91 | %{_libdir}/pkgconfig/libksane.pc |
---|
92 | %{_libdir}/cmake/KSane/ |
---|
93 | %{_includedir}/kde4/libksane/ |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1 |
---|
98 | - new upstream release |
---|
99 | |
---|
100 | * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1 |
---|
101 | - new upstream release |
---|
102 | |
---|
103 | * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1 |
---|
104 | - new upstream release |
---|
105 | |
---|
106 | * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
107 | - new upstream release |
---|
108 | |
---|
109 | * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
110 | - new upstream release |
---|
111 | |
---|
112 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
113 | - Initial build for Vine Linux |
---|
114 | |
---|
115 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
116 | - 4.7.0 |
---|
117 | |
---|
118 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
119 | - 4.5.95 |
---|
120 | |
---|
121 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4 |
---|
122 | - fix URL |
---|
123 | |
---|
124 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
125 | - %%doc COPYING.LIB |
---|
126 | - add basic %%check section |
---|
127 | |
---|
128 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
129 | - fix Source0 URL |
---|
130 | - fix scriptlets |
---|
131 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
132 | |
---|
133 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
134 | - first try |
---|
135 | |
---|