source: projects/specs/trunk/x/xsane/xsane-vl.spec @ 9345

Revision 9345, 6.0 KB checked in by Takemikaduchi, 9 years ago (diff)

rebuild with ligphoto2-2.5.7

Line 
1%define gimpdirs %(/bin/ls -d %{_libdir}/gimp/*/plug-ins 2> /dev/null)
2Name: xsane
3Summary: XSane is a graphical frontend for scanners. It uses the library SANE.
4Summary: SANE スキャナインタフェースの Xウィンドウ用フロントエンドです
5Version: 0.999
6Release: 2%{?_dist_release}
7Source: http://www.xsane.org/download/%{name}-%{version}.tar.gz
8%{?nosrc:NoSource:     0}
9License: GPL
10URL: http://www.xsane.org/
11Group: Applications/Multimedia
12BuildRoot: %{_tmppath}/%{name}-%{version}-root
13Requires: sane >= 1.0.0, gtk2, glib2, atk, pango, zlib
14BuildRequires: sane-devel, gtk2-devel, atk-devel, pango-devel
15BuildRequires: gimp >= 1.3.23
16BuildRequires: libjpeg-devel, libpng-devel, libtiff-devel,zlib-devel
17BuildRequires: lcms-devel
18BuildRequires: sed, glibc-common
19BuildRequires: gimp-devel
20
21Patch0: xsane-0.999-libpng.patch
22
23%description
24Xsane is a grahical frontend for sane. Install this if you want a grahpical
25frontend for sane for use in the X Windowing System.
26
27%description -l ja
28XSane は、多くのスキャナ、デジタルカメラ、その他の画像取り込み装置に対応
29した SANE スキャナインタフェースの Xウィンドウ用フロントエンドです。
30XSane は GTK+ で書かれ、画像取り込みや取込み画像の操作を行うことができま
31す。
32
33%prep
34%setup -q
35%patch0 -p1 -b .libpng
36
37# correct some links in html documents
38cd doc
39DOCFILE=sane-backends-doc.html
40cat ${DOCFILE} | sed 's,/usr/local/share,%{_datadir},' > ${DOCFILE}.new
41[ -f  ${DOCFILE}.new ] && mv -f ${DOCFILE}.new ${DOCFILE}
42DOCFILE=sane-xsane-gimp-doc.html
43cat ${DOCFILE} | sed 's,/usr/local/bin,%{_bindir},' > ${DOCFILE}.new
44[ -f  ${DOCFILE}.new ] && mv -f ${DOCFILE}.new ${DOCFILE}
45ICONFILE=sane-logo2.jpg
46[ -f %{_datadir}/sane/${ICONFILE} ] && cp %{_datadir}/sane/${ICONFILE} ./
47
48%build
49%configure
50%{__make} %{?_smp_mflags}
51
52%install
53%__rm -rf $RPM_BUILD_ROOT
54%{__make} install DESTDIR=${RPM_BUILD_ROOT}
55
56cp src/*.xpm $RPM_BUILD_ROOT%{_datadir}/sane/%{name}
57
58if (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
63fi
64
65# prepare applnk
66%define applnkdir /etc/X11/applnk/Graphics
67%define icondir %{_datadir}/sane/%{name}
68
69mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
70cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop <<EOF
71[Desktop Entry]
72Encoding=UTF-8
73Name=XSane
74Name[ja]=XSane スキャナ操作
75Comment=Scanner program
76Comment[ja]=スキャナを操作するツールです
77Terminal=false
78Type=Application
79Icon=%{icondir}/xsane-48x48.xpm
80Exec=xsane
81MultipleArgs=false
82Categories=Application;Graphics;
83EOF
84
85%find_lang %{name}
86
87%clean
88rm -rf $RPM_BUILD_ROOT
89
90%files -f %{name}.lang
91%defattr(-,root,root)
92%doc xsane.*
93%{_bindir}/*
94%{_mandir}/*/*
95%{_datadir}/sane/*
96%{_libdir}/gimp/*/plug-ins/*
97%{_datadir}/pixmaps/xsane.xpm
98%config(missingok) %{_datadir}/applications/*
99
100%changelog
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
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
109* Fri Jan 11 2013 IWAI, Masaharu <iwai@alib.jp> 0.997-2
110- build with libgphoto2 2.5.0-1
111
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
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
141* Thu Apr 4 2002 Masaki Shinomiya <shino@pos.to>
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
Note: See TracBrowser for help on using the repository browser.