[fuse-zip] Clean spec, correct build flags

Vasiliy Glazov vascom at fedoraproject.org
Thu Aug 8 10:13:38 UTC 2013


commit d77b3ec6d218955e4f1bcdabeefbaad7b930a6cf
Author: Vascom <v.glazov at javad.com>
Date:   Thu Aug 8 14:06:09 2013 +0400

    Clean spec, correct build flags

 fuse-zip.spec |   35 ++++++++++++++++++++---------------
 1 files changed, 20 insertions(+), 15 deletions(-)
---
diff --git a/fuse-zip.spec b/fuse-zip.spec
index 93db64e..8572cea 100644
--- a/fuse-zip.spec
+++ b/fuse-zip.spec
@@ -1,7 +1,7 @@
 Name:           fuse-zip
 Version:        0.2.12
-Release:        7%{?dist}
-Summary:        Fuse-zip is a fs to navigate, extract, create and modify ZIP archives
+Release:        8%{?dist}
+Summary:        Filesystem to navigate, extract, create and modify ZIP archives
 Group:          System Environment/Libraries
 License:        GPLv3+
 URL:            http://code.google.com/p/%{name}/
@@ -10,9 +10,11 @@ Source0:        http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
 # http://code.google.com/p/fuse-zip/issues/detail?id=15
 Patch0:         fuse-zip-makefile.patch
 Patch1:         fuse-zip-libzip010.patch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  libzip-devel, pkgconfig, fuse-devel, zlib-devel
-Requires:       fuse
+
+BuildRequires:  libzip-devel
+BuildRequires:  fuse-devel
+BuildRequires:  zlib-devel
+#Requires:       fuse
 
 %description
 fuse-zip is a FUSE file system to navigate, extract, create and modify
@@ -31,24 +33,27 @@ on large archives with many files.
 %patch0 -p1 -b .makefile
 %patch1 -p1 -b .libzip010
 
+echo '#!/bin/bash' > configure
+chmod +x configure
+
 %build
-make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
+%configure
+make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make install INSTALLPREFIX=$RPM_BUILD_ROOT/usr
-rm -rf $RPM_BUILD_ROOT/usr/share/doc/fuse-zip
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install INSTALLPREFIX=%{buildroot}/usr
+rm -rf %{buildroot}/usr/share/doc/%{name}
 
 %files
-%defattr(-,root,root,-)
 %doc LICENSE README changelog
-%{_bindir}/fuse-zip
+%{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1.gz
 
 %changelog
+* Thu Aug 08 2013 Vasiliy N. Glazov <vascom2 at gmail.com> - 0.2.12-8
+- Clean spec
+- correct build flags
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.12-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 
@@ -95,7 +100,7 @@ rm -rf $RPM_BUILD_ROOT
 * Sun Dec 07 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.2.6-5
 - fixed debug info package
 
-* Fri Nov 08 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.2.6-4
+* Sat Nov 08 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.2.6-4
 - removed INSTALL file from package - not useful
 
 * Fri Nov 07 2008 Rakesh Pandit <rakesh at fedoraproject.org> 0.2.6-3


More information about the scm-commits mailing list