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