[mhddfs] Added RPM_OPT_FLAGS to CFLAGS (#729475).
Jameson Pugh
imntreal at fedoraproject.org
Fri Aug 12 14:54:19 UTC 2011
commit f09b686f4c2af60a39e7eee5c8e5834dd576d3f5
Author: imntreal <imntreal at gmail.com>
Date: Fri Aug 12 10:54:05 2011 -0400
Added RPM_OPT_FLAGS to CFLAGS (#729475).
mhddfs-cflags.patch | 13 +++++++++++++
mhddfs.spec | 11 ++++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/mhddfs-cflags.patch b/mhddfs-cflags.patch
new file mode 100644
index 0000000..922cd96
--- /dev/null
+++ b/mhddfs-cflags.patch
@@ -0,0 +1,13 @@
+diff -Naur mhddfs-0.1.38-orig mhddfs-0.1.38
+diff -Naur mhddfs-0.1.38-orig/Makefile mhddfs-0.1.38/Makefile
+--- mhddfs-0.1.38-orig/Makefile 2011-08-10 08:59:08.000000000 -0400
++++ mhddfs-0.1.38/Makefile 2011-08-10 08:59:25.000000000 -0400
+@@ -22,7 +22,7 @@
+
+ TARGET = mhddfs
+
+-CFLAGS = -Wall $(shell pkg-config fuse --cflags) \
++CFLAGS += -Wall $(shell pkg-config fuse --cflags) \
+ -DFUSE_USE_VERSION=26 -MMD
+ ifdef WITHOUT_XATTR
+ CFLAGS += -DWITHOUT_XATTR
diff --git a/mhddfs.spec b/mhddfs.spec
index 4d29b89..20733c8 100644
--- a/mhddfs.spec
+++ b/mhddfs.spec
@@ -1,10 +1,14 @@
Name: mhddfs
Summary: Fuse-based file system for unifying several mount points into one
Version: 0.1.38
-Release: 7%{?dist}
+Release: 8%{?dist}
License: GPLv3+
URL: http://mhddfs.uvw.ru/
Source: http://mhddfs.uvw.ru/downloads/%{name}_%{version}.tar.gz
+
+#Make sure it builds with system CFLAGS
+Patch0: mhddfs-cflags.patch
+
BuildRequires: fuse-devel libattr-devel
Requires: fuse%{?_isa}
@@ -16,8 +20,10 @@ space to create new files on, and can move data transparently between drives.
%prep
%setup -q
+%patch0 -p1
%build
+CFLAGS="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
@@ -33,6 +39,9 @@ install -m644 %{name}.1 $RPM_BUILD_ROOT/%{_mandir}/man1/%{name}.1
%{_mandir}/man1/%{name}.1*
%changelog
+* Wed Aug 10 2011 Jameson Pugh <imntreal at gmail.com> - 0.1.38-8
+- Added RPM_OPT_FLAGS to CFLAGS
+
* Tue Aug 9 2011 Jameson Pugh <imntreal at gmail.com> - 0.1.38-7
- Left out build flags
More information about the scm-commits
mailing list