You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
2.4 KiB
84 lines
2.4 KiB
15 years ago
|
Name: simple-scan
|
||
|
Version: 0.9.5
|
||
|
Release: 2%{?dist}
|
||
|
Summary: Simple scanning utility
|
||
|
|
||
|
Group: Applications/Multimedia
|
||
|
License: GPLv3+
|
||
|
URL: https://launchpad.net/simple-scan
|
||
|
Source0: http://launchpad.net/simple-scan/trunk/%version/+download/simple-scan-%version.tar.gz
|
||
|
|
||
|
# Upstream report at https://bugs.launchpad.net/simple-scan/+bug/534196
|
||
|
Patch0: simple-scan-dso.patch
|
||
|
|
||
|
BuildRequires: intltool GConf2-devel gtk2-devel autoconf automake
|
||
|
BuildRequires: libgudev-devel sane-backends-devel gnome-doc-utils
|
||
|
# dso patch related dependencies
|
||
|
BuildRequires: autoconf automake gnome-common
|
||
|
Requires: gnome-icon-theme xdg-utils yelp
|
||
|
Requires(pre): GConf2
|
||
|
Requires(post): GConf2
|
||
|
Requires(preun): GConf2
|
||
|
|
||
|
%description
|
||
|
Simple Scan is an easy-to-use application, designed to let users connect their
|
||
|
scanner and quickly have the image/document in an appropriate format.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
%patch0 -p1 -b .fix
|
||
|
|
||
|
%build
|
||
|
|
||
|
# dso patch
|
||
|
./autogen.sh
|
||
|
%configure --disable-schemas-install
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||
|
%find_lang %{name} --with-man --with-gnome
|
||
|
|
||
|
%pre
|
||
|
if [ "$1" -gt 1 ] ; then
|
||
|
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
|
||
|
gconftool-2 --makefile-uninstall-rule \
|
||
|
%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
|
||
|
killall -HUP gconfd-2 || :
|
||
|
fi
|
||
|
|
||
|
%post
|
||
|
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
|
||
|
gconftool-2 --makefile-install-rule \
|
||
|
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
|
||
|
killall -HUP gconfd-2 || :
|
||
|
|
||
|
%preun
|
||
|
if [ "$1" -eq 0 ] ; then
|
||
|
export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
|
||
|
gconftool-2 --makefile-uninstall-rule \
|
||
|
%{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
|
||
|
killall -HUP gconfd-2 || :
|
||
|
fi
|
||
|
|
||
|
%clean
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
|
||
|
%files -f %{name}.lang
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc AUTHORS README TODO COPYING ChangeLog
|
||
|
%{_mandir}/man1/simple-scan.1.gz
|
||
|
%{_sysconfdir}/gconf/schemas/simple-scan.schemas
|
||
|
%{_bindir}/simple-scan
|
||
|
%{_datadir}/applications/simple-scan.desktop
|
||
|
%{_datadir}/simple-scan/
|
||
|
|
||
|
%changelog
|
||
|
* Mon Mar 08 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.9.5-2
|
||
|
- Organize and comment patch dependencies and link to upstream bug report
|
||
|
- add requires on yelp and add gconf schema scriptlets
|
||
|
|
||
|
* Fri Mar 05 2010 Rahul Sundaram <sundaram@fedoraproject.org> - 0.9.5-1
|
||
|
- initial build
|