[scantailor] Fixed spec file

Jan Horak xhorak at fedoraproject.org
Tue Jul 24 07:51:04 UTC 2012


commit 13f45ec5ade4777846fe29f6d15186c5fc199590
Author: Jan Horak <jhorak at redhat.com>
Date:   Tue Jul 24 09:50:23 2012 +0200

    Fixed spec file

 scantailor.spec |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/scantailor.spec b/scantailor.spec
index 9de2ece..812a8db 100644
--- a/scantailor.spec
+++ b/scantailor.spec
@@ -4,11 +4,10 @@ Release:        1%{?dist}
 Summary:        An interactive post-processing tool for scanned pages
 
 Group:          Applications/Text
-License:        GPLv3+
+License:        GPLv3+ or LGPLv2.1
 URL:            http://scantailor.sourceforge.net/
 Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1:        %{name}.desktop
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  cmake
 BuildRequires:  boost-devel
@@ -37,19 +36,15 @@ project.
 %build
 %cmake . -DEXTRA_LIBS=Xrender -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="/usr" 
 make %{?_smp_mflags}
-%{__mv} resources/icons/COPYING resources/icons/COPYING-icons
+mv resources/icons/COPYING resources/icons/COPYING-icons
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
 desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/scalable/apps
-%{__cp} resources/appicon.svg \
+cp -p resources/appicon.svg \
         ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/scalable/apps/scantailor.svg
 
-%clean
-%{__rm} -rf $RPM_BUILD_ROOT
-
 %check
 make tests
 ./tests/tests
@@ -67,7 +62,6 @@ fi
 gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING resources/icons/COPYING-icons
 %{_bindir}/scantailor
 %{_bindir}/scantailor-cli


More information about the scm-commits mailing list