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

Revision 4664, 2.7 KB checked in by inagaki, 13 years ago (diff)

NEW: libkdcraw, libkexiv2, libkipi, libksane and okular

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