[lfcxml/el6: 3/3] Add EPEL6 support
Christopher Meng
cicku at fedoraproject.org
Thu May 23 04:11:28 UTC 2013
commit 4a989d955035e5448efa33823bfda0dd5515add5
Author: Christopher Meng <rpm at cicku.me>
Date: Thu May 23 12:10:40 2013 +0800
Add EPEL6 support
lfcxml.spec | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/lfcxml.spec b/lfcxml.spec
index fdbd2ec..1e23e4a 100644
--- a/lfcxml.spec
+++ b/lfcxml.spec
@@ -8,6 +8,7 @@ License: GPLv3+
URL: http://www.lemke-it.com/litexec?request=publfcxml&user=&lang=en
Source0: http://www.lemke-it.com/%{name}-%{version}.tar.gz
BuildRequires: lfcbase-devel%{?_isa}
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
This C++ library provides an API for XML document handling. Similar to the
@@ -32,6 +33,7 @@ sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool
make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -exec rm -f {} ';'
@@ -42,11 +44,16 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
%check
make check
+%clean
+rm -rf %{buildroot}
+
%files
+%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*
%files devel
+%defattr(-,root,root)
%doc samples/*.{cc,xml}
%{_includedir}/%{name}/
%{_libdir}/*.so
More information about the scm-commits
mailing list