source: projects/specs/trunk/lib/libk/libksane/libksane-vl.spec @ 5298

Revision 5298, 3.0 KB checked in by inagaki, 12 years ago (diff)

update: libkexiv2, libkdcraw, libkipi, libksane, okular

Line 
1Name:    libksane
2Summary: SANE Library interface for KDE
3Summary(ja): KDE 用の SANE ライブラリインターフェース
4Version: 4.7.4
5Release: 1%{?_dist_release}
6
7License: LGPLv2+
8Group:   System Environment/Libraries
9URL:     https://projects.kde.org/projects/kde/kdegraphics/libs/libksane
10
11Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildRequires: kdelibs4-devel >= %{version}
15BuildRequires: sane-devel
16#BuildRequires: sane-backends-devel
17
18Requires: kdelibs4 >= 4.7.0
19
20# when split occurred
21Conflicts: kdegraphics-libs < 4.6.95-10
22
23%description
24%{summary}.
25
26%package devel
27Summary:  Development files for %{name}
28Summary(ja): %{name} の開発用ファイル
29Group:    Development/Libraries
30Requires: %{name} = %{version}-%{release}
31Requires: kdelibs4-devel
32
33%description devel
34%{summary}.
35
36
37%prep
38%setup -q
39
40
41%build
42mkdir -p %{_target_platform}
43pushd %{_target_platform}
44unset QTDIR || : ; . /etc/profile.d/qt4.sh
45%cmake \
46    -DCMAKE_BUILD_TYPE=release \
47    -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
48    -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
49    -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
50    -DLIB_INSTALL_DIR:PATH=%{_libdir} \
51    -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
52    -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
53    ..
54popd
55
56make %{?_smp_mflags} -C %{_target_platform}
57
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
63
64
65%check
66export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
67pkg-config --modversion libksane
68
69
70%post
71/sbin/ldconfig
72touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
73
74%posttrans
75gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
76
77%postun
78/sbin/ldconfig
79if [ $1 -eq 0 ] ; then
80    touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
81    gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
82fi
83
84
85%files
86%doc AUTHORS COPYING.LIB README TODO
87%{_libdir}/libksane.so.0*
88%{_datadir}/icons/hicolor/*/*/*
89
90%files devel
91%{_libdir}/libksane.so
92%{_libdir}/pkgconfig/libksane.pc
93%{_libdir}/cmake/KSane/
94%{_includedir}/kde4/libksane/
95
96
97%changelog
98* Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
99- new upstream release
100
101* Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
102- new upstream release
103
104* Sun Jul 31 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.5.95
112
113* Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4
114- fix URL
115
116* Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
117- %%doc COPYING.LIB
118- add basic %%check section
119
120* Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
121- fix Source0 URL
122- fix scriptlets
123- Conflicts: kdegraphics < 7:4.6.90-10
124
125* Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org>  4.6.90-1
126- first try
127
Note: See TracBrowser for help on using the repository browser.