Browse Source

lxc: update to 0.8.0 release

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7134 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 11 years ago
parent
commit
1b86e7b7c8
1 changed files with 14 additions and 13 deletions
  1. 14 13
      l/lxc/lxc-vl.spec

+ 14 - 13
l/lxc/lxc-vl.spec

@@ -1,14 +1,14 @@
-%define gitdate 20120525
+#define gitdate 20120525
 Name:           lxc
 Version:        0.8.0
-Release:        1.%{gitdate}%{?_dist_release}
+Release:        2%{?_dist_release}
 Summary:        Linux Resource Containers
 Summary(ja):    Linux リソースコンテナ
 
 Group:          Applications/System
 License:        LGPLv2+
 URL:            http://lxc.sourceforge.net
-Source0:	http://lxc.sourceforge.net/download/lxc/%{name}-%{version}-%{gitdate}.tar.xz
+Source0:        http://lxc.sourceforge.net/download/lxc/%{name}-%{version}.tar.gz
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
@@ -75,11 +75,11 @@ Requires:       %{name} = %{version}-%{release}
 This package contains documentation for %{name}.
 
 %prep
-%setup -q -n %{name}-%{version}-%{gitdate}
+%setup -q -n %{name}-%{version}
 
 %build
 ./autogen.sh
-%configure F77=no
+%configure --disable-apparmor F77=no
 # Fix binary-or-shlib-defines-rpath error
 %{__sed} -i '/AM_LDFLAGS = -Wl,-E -Wl,-rpath -Wl,$(libdir)/d' src/lxc/Makefile.in
 %{__make} %{?_smp_mflags}
@@ -91,8 +91,7 @@ This package contains documentation for %{name}.
 rm -rf %{buildroot}
 %{__make} DESTDIR=%{buildroot} install
 find %{buildroot} -name '*.la' -delete
-%{__mkdir} -p %{buildroot}%{_sharedstatedir}/%{name}
-%{__mkdir} -p %{buildroot}%{_localstatedir}/lib/%{name}
+%{__mkdir} -p %{buildroot}%{_var}/lib/%{name}
 
 %clean
 %{__rm} -rf %{buildroot}
@@ -106,25 +105,24 @@ find %{buildroot} -name '*.la' -delete
 %doc AUTHORS COPYING README
 %{_bindir}/%{name}-*
 %{_mandir}/man*/%{name}*
-%{_sharedstatedir}/%{name}
-%{_localstatedir}/lib/%{name}
+%{_var}/lib/%{name}
 
 %files libs
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING
-%dir %{_libdir}/lxc
-%dir %{_libdir}/lxc/templates
+%dir %{_datadir}/lxc
+%dir %{_datadir}/lxc/templates
 %{_libdir}/liblxc.so.*
 %{_libdir}/lxc/rootfs
 %{_libexecdir}/lxc/lxc-init
 
 %files templates
 %defattr(-,root,root,-)
-%{_libdir}/lxc/templates/lxc-*
+%{_datadir}/lxc/templates/lxc-*
 
 %files devel
 %defattr(-,root,root,-)
-%{_datadir}/pkgconfig/%{name}.pc
+%{_libdir}/pkgconfig/%{name}.pc
 %{_includedir}/*
 %{_libdir}/liblxc.so
 
@@ -133,6 +131,9 @@ find %{buildroot} -name '*.la' -delete
 %{_docdir}/%{name}
 
 %changelog
+* Wed Nov 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.0-2
+- update to 0.8.0 release
+
 * Fri May 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.0-1.20120525
 - update to git master