[4664] | 1 | Name: libksane |
---|
| 2 | Summary: SANE Library interface for KDE |
---|
[5006] | 3 | Version: 4.7.2 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
[4664] | 5 | |
---|
| 6 | License: LGPLv2+ |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | URL: https://projects.kde.org/projects/kde/kdegraphics/libs/libksane |
---|
| 9 | |
---|
| 10 | Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2 |
---|
| 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildRequires: kdelibs4-devel >= %{version} |
---|
| 14 | BuildRequires: sane-devel |
---|
| 15 | #BuildRequires: sane-backends-devel |
---|
| 16 | |
---|
| 17 | Requires: kdelibs4 >= 4.7.0 |
---|
| 18 | |
---|
| 19 | # when split occurred |
---|
| 20 | Conflicts: kdegraphics-libs < 4.6.95-10 |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | %{summary}. |
---|
| 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Development files for %{name} |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | Requires: kdelibs4-devel |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | %{summary}. |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | %build |
---|
| 40 | mkdir -p %{_target_platform} |
---|
| 41 | pushd %{_target_platform} |
---|
| 42 | unset 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 | .. |
---|
| 52 | popd |
---|
| 53 | |
---|
| 54 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
| 59 | |
---|
| 60 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | %check |
---|
| 64 | export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
| 65 | pkg-config --modversion libksane |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %post |
---|
| 69 | /sbin/ldconfig |
---|
| 70 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 71 | |
---|
| 72 | %posttrans |
---|
| 73 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 74 | |
---|
| 75 | %postun |
---|
| 76 | /sbin/ldconfig |
---|
| 77 | if [ $1 -eq 0 ] ; then |
---|
| 78 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 79 | gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 80 | fi |
---|
| 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 |
---|
[5006] | 96 | * Sat Oct 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1 |
---|
| 97 | - new upstream release |
---|
| 98 | |
---|
[4664] | 99 | * Sun Jul 31 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2 |
---|
| 100 | - Initial build for Vine Linux |
---|
| 101 | |
---|
| 102 | * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1 |
---|
| 103 | - 4.7.0 |
---|
| 104 | |
---|
| 105 | * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1 |
---|
| 106 | - 4.5.95 |
---|
| 107 | |
---|
| 108 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-4 |
---|
| 109 | - fix URL |
---|
| 110 | |
---|
| 111 | * Sun Jul 10 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3 |
---|
| 112 | - %%doc COPYING.LIB |
---|
| 113 | - add basic %%check section |
---|
| 114 | |
---|
| 115 | * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2 |
---|
| 116 | - fix Source0 URL |
---|
| 117 | - fix scriptlets |
---|
| 118 | - Conflicts: kdegraphics < 7:4.6.90-10 |
---|
| 119 | |
---|
| 120 | * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1 |
---|
| 121 | - first try |
---|
| 122 | |
---|