[521] | 1 | %define gimpdirs %(/bin/ls -d %{_libdir}/gimp/*/plug-ins 2> /dev/null) |
---|
| 2 | Name: xsane |
---|
| 3 | Summary: XSane is a graphical frontend for scanners. It uses the library SANE. |
---|
| 4 | Summary: SANE スキャナインタフェースの Xウィンドウ用フロントエンドです |
---|
[9260] | 5 | Version: 0.999 |
---|
[9345] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | Source: http://www.xsane.org/download/%{name}-%{version}.tar.gz |
---|
| 8 | %{?nosrc:NoSource: 0} |
---|
| 9 | License: GPL |
---|
| 10 | URL: http://www.xsane.org/ |
---|
| 11 | Group: Applications/Multimedia |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | Requires: sane >= 1.0.0, gtk2, glib2, atk, pango, zlib |
---|
| 14 | BuildRequires: sane-devel, gtk2-devel, atk-devel, pango-devel |
---|
| 15 | BuildRequires: gimp >= 1.3.23 |
---|
| 16 | BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel,zlib-devel |
---|
[9345] | 17 | BuildRequires: lcms-devel |
---|
[521] | 18 | BuildRequires: sed, glibc-common |
---|
[1443] | 19 | BuildRequires: gimp-devel |
---|
[521] | 20 | |
---|
[9260] | 21 | Patch0: xsane-0.999-libpng.patch |
---|
| 22 | |
---|
[521] | 23 | %description |
---|
| 24 | Xsane is a grahical frontend for sane. Install this if you want a grahpical |
---|
| 25 | frontend for sane for use in the X Windowing System. |
---|
| 26 | |
---|
| 27 | %description -l ja |
---|
| 28 | XSane は、多くのスキャナ、デジタルカメラ、その他の画像取り込み装置に対応 |
---|
| 29 | した SANE スキャナインタフェースの Xウィンドウ用フロントエンドです。 |
---|
| 30 | XSane は GTK+ で書かれ、画像取り込みや取込み画像の操作を行うことができま |
---|
| 31 | す。 |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
[9260] | 35 | %patch0 -p1 -b .libpng |
---|
[521] | 36 | |
---|
| 37 | # correct some links in html documents |
---|
| 38 | cd doc |
---|
| 39 | DOCFILE=sane-backends-doc.html |
---|
| 40 | cat ${DOCFILE} | sed 's,/usr/local/share,%{_datadir},' > ${DOCFILE}.new |
---|
| 41 | [ -f ${DOCFILE}.new ] && mv -f ${DOCFILE}.new ${DOCFILE} |
---|
| 42 | DOCFILE=sane-xsane-gimp-doc.html |
---|
| 43 | cat ${DOCFILE} | sed 's,/usr/local/bin,%{_bindir},' > ${DOCFILE}.new |
---|
| 44 | [ -f ${DOCFILE}.new ] && mv -f ${DOCFILE}.new ${DOCFILE} |
---|
| 45 | ICONFILE=sane-logo2.jpg |
---|
| 46 | [ -f %{_datadir}/sane/${ICONFILE} ] && cp %{_datadir}/sane/${ICONFILE} ./ |
---|
| 47 | |
---|
| 48 | %build |
---|
[1443] | 49 | %configure |
---|
| 50 | %{__make} %{?_smp_mflags} |
---|
[521] | 51 | |
---|
| 52 | %install |
---|
| 53 | %__rm -rf $RPM_BUILD_ROOT |
---|
[1443] | 54 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
[521] | 55 | |
---|
| 56 | cp src/*.xpm $RPM_BUILD_ROOT%{_datadir}/sane/%{name} |
---|
| 57 | |
---|
| 58 | if (echo "%{gimpdirs}" | grep -q plug-ins) ;then |
---|
| 59 | for D in %{gimpdirs} ; do |
---|
| 60 | mkdir -p $RPM_BUILD_ROOT${D} |
---|
| 61 | %__ln_s -f %{_bindir}/xsane $RPM_BUILD_ROOT${D}/xsane |
---|
| 62 | done |
---|
| 63 | fi |
---|
| 64 | |
---|
| 65 | # prepare applnk |
---|
| 66 | %define applnkdir /etc/X11/applnk/Graphics |
---|
| 67 | %define icondir %{_datadir}/sane/%{name} |
---|
| 68 | |
---|
| 69 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications |
---|
| 70 | cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF |
---|
| 71 | [Desktop Entry] |
---|
| 72 | Encoding=UTF-8 |
---|
| 73 | Name=XSane |
---|
| 74 | Name[ja]=XSane スキャナ操作 |
---|
| 75 | Comment=Scanner program |
---|
| 76 | Comment[ja]=スキャナを操作するツールです |
---|
| 77 | Terminal=false |
---|
| 78 | Type=Application |
---|
| 79 | Icon=%{icondir}/xsane-48x48.xpm |
---|
| 80 | Exec=xsane |
---|
| 81 | MultipleArgs=false |
---|
| 82 | Categories=Application;Graphics; |
---|
| 83 | EOF |
---|
| 84 | |
---|
[1443] | 85 | %find_lang %{name} |
---|
[521] | 86 | |
---|
| 87 | %clean |
---|
| 88 | rm -rf $RPM_BUILD_ROOT |
---|
| 89 | |
---|
[1443] | 90 | %files -f %{name}.lang |
---|
[521] | 91 | %defattr(-,root,root) |
---|
| 92 | %doc xsane.* |
---|
| 93 | %{_bindir}/* |
---|
| 94 | %{_mandir}/*/* |
---|
| 95 | %{_datadir}/sane/* |
---|
| 96 | %{_libdir}/gimp/*/plug-ins/* |
---|
[1443] | 97 | %{_datadir}/pixmaps/xsane.xpm |
---|
[521] | 98 | %config(missingok) %{_datadir}/applications/* |
---|
| 99 | |
---|
| 100 | %changelog |
---|
[9345] | 101 | * Mon Feb 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.999-2 |
---|
| 102 | - rebuild with libgphoto2-2.5.7 |
---|
| 103 | - add BuildRequires: lcms-devel |
---|
| 104 | |
---|
[9260] | 105 | * Wed Jan 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.999-1 |
---|
| 106 | - update to 0.999 |
---|
| 107 | - add Patch0 (xsane-0.999-libpng.patch) |
---|
| 108 | |
---|
[7340] | 109 | * Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 0.997-2 |
---|
| 110 | - build with libgphoto2 2.5.0-1 |
---|
| 111 | |
---|
[1443] | 112 | * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.997-1 |
---|
| 113 | - new upstream release |
---|
| 114 | - add BuildRequires: gimp-devel |
---|
| 115 | - remove configure option (--enable-gimp) |
---|
| 116 | - fix %files |
---|
| 117 | |
---|
[521] | 118 | * Sat Jul 26 2008 Shu KONNO <owa@bg.wakwak.com> 0.995-1vl5 |
---|
| 119 | - applied new versioning policy |
---|
| 120 | - updated script to create %{name}.desktop |
---|
| 121 | |
---|
| 122 | * Mon Dec 24 2007 Shu KONNO <owa@bg.wakwak.com> 0.995-0vl1 |
---|
| 123 | - new upstream |
---|
| 124 | - updated xsane.desktop |
---|
| 125 | |
---|
| 126 | * Sat Jan 08 2005 Satoshi MACHINO <machino@vinelinux.org> 0.96-0vl1 |
---|
| 127 | - new upstream version (xsane-0.96) |
---|
| 128 | - fixed spec file |
---|
| 129 | -- cleaned up |
---|
| 130 | -- added Requires: sane >= 1.0.0, gtk2, glib2, atk, pango, zlib |
---|
| 131 | -- added BuildRequires: sane-devel, gtk2-devel, atk-devel, pango-devel |
---|
| 132 | -- added BuildRequires: gimp >= 1.3.23 |
---|
| 133 | -- added BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel,zlib-devel |
---|
| 134 | |
---|
| 135 | * Fri Oct 25 2002 Tomoya TAKA <taka@vinelinux.org> 0.89-0vl1 |
---|
| 136 | - new upstream release |
---|
| 137 | |
---|
| 138 | * Mon May 13 2002 Satoshi MACHINO <machino@vinelinux.org> xsane-0.86-0vl1 |
---|
| 139 | - updated xsane-0.86 |
---|
| 140 | |
---|
[9260] | 141 | * Thu Apr 4 2002 Masaki Shinomiya <shino@pos.to> |
---|
[521] | 142 | - 0.84-0vl1 for Vine Linux-2.x |
---|
| 143 | - 0.84-0.1 |
---|
| 144 | - symlink for gimp listed in %file section |
---|
| 145 | - some html-documents |
---|
| 146 | - set %_sysconfdir to /etc for RedHat6.x/Vine2.x |
---|
| 147 | - RPM Group move to Applications/Multimedia |
---|
| 148 | |
---|
| 149 | * Tue Mar 12 2002 Masaki Shinomiya <shino@pos.to> |
---|
| 150 | - 0.84-0 |
---|
| 151 | - bugfix in %post script |
---|
| 152 | |
---|
| 153 | * Sun Dec 23 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 154 | - 0.82-0.1 |
---|
| 155 | - use mocros as possible, nosrc |
---|
| 156 | |
---|
| 157 | * Thu Jul 5 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 158 | - 0.79-0test |
---|
| 159 | - remove the patch of the tooltips |
---|
| 160 | |
---|
| 161 | * Thu Jul 5 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 162 | - 0.78-1vl2 |
---|
| 163 | - fixed script for gimp plug-in setup |
---|
| 164 | |
---|
| 165 | * Sat Jun 23 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 166 | - rename for VinePlus. program registoration for gnome |
---|
| 167 | |
---|
| 168 | * Tue Jun 19 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 169 | - patch to provide proper fonts for the tooltips |
---|
| 170 | |
---|
| 171 | * Thu Jun 14 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 172 | - 0.78-1 |
---|
| 173 | - escape confliction of the document file 'sane-pnm-doc.html' with one from SANE |
---|
| 174 | |
---|
| 175 | * Sun Jun 3 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 176 | - 0.77-1 |
---|
| 177 | |
---|
| 178 | * Mon May 21 2001 Masaki Shinomiya <shino@pos.to> |
---|
| 179 | - 0.76-1 |
---|
| 180 | - refined script for gimp plug-in setup |
---|
| 181 | |
---|
| 182 | * Wed Nov 15 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
| 183 | - 0.64-0vl1 |
---|
| 184 | - updated to 0.64 (hope it'll be compatible with gimp-1.1.27...) |
---|
| 185 | |
---|
| 186 | * Mon Oct 16 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 187 | - 0.61-0vl3 |
---|
| 188 | - build with gimp-1.1.27 |
---|
| 189 | |
---|
| 190 | * Mon Sep 25 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 191 | - 0.61-0vl2 |
---|
| 192 | - build with gimp-1.1.25 |
---|
| 193 | |
---|
| 194 | * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 195 | - 0.61-0vl1 |
---|
| 196 | |
---|
| 197 | * Sat Jan 22 2000 Jun Nishii <jun@vinelinux.org> |
---|
| 198 | - 0.51-0vl1 |
---|
| 199 | |
---|
| 200 | * Mon Aug 30 1999 Tim Powers <timp@redhat.com> |
---|
| 201 | - changed group |
---|
| 202 | |
---|
| 203 | * Mon Jul 26 1999 Tim Powers <timp@redhat.com> |
---|
| 204 | - update to 0.30 |
---|
| 205 | - added %defattr |
---|
| 206 | - built for 6.1 |
---|
| 207 | |
---|
| 208 | * Thu Apr 22 1999 Preston Brown <pbrown@redhat.com> |
---|
| 209 | - initial RPM for PowerTools 6.0 |
---|
| 210 | |
---|
| 211 | |
---|
| 212 | |
---|
| 213 | |
---|
| 214 | |
---|
| 215 | |
---|