use %_lib in rpm spec; refs #10

master
Marc Wäckerlin 13 years ago
parent 2bad956fc6
commit a63ffb0161
  1. 12
      libxml-cxx.spec.in

@ -19,7 +19,7 @@ This package contains only the shared libraries required at runtime.
%setup -q %setup -q
./configure --prefix=/usr \ ./configure --prefix=/usr \
--docdir=/usr/share/doc/packages/@PACKAGENAME@ \ --docdir=/usr/share/doc/packages/@PACKAGENAME@ \
--libdir=/usr/lib --libdir=/usr/%_lib
%build %build
make make
@ -32,7 +32,7 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib/@PACKAGENAME@.so.* /usr/%_lib/@PACKAGENAME@.so.*
%doc %doc
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS /usr/share/doc/packages/@PACKAGENAME@/AUTHORS
/usr/share/doc/packages/@PACKAGENAME@/COPYING /usr/share/doc/packages/@PACKAGENAME@/COPYING
@ -54,10 +54,10 @@ This Package contains all files required for developement.
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib/@PACKAGENAME@.so /usr/%_lib/@PACKAGENAME@.so
/usr/lib/@PACKAGENAME@.a /usr/%_lib/@PACKAGENAME@.a
/usr/lib/pkgconfig /usr/%_lib/pkgconfig
/usr/lib/@PACKAGENAME@.la /usr/%_lib/@PACKAGENAME@.la
/usr/include/ /usr/include/
/usr/share/pkgconfig /usr/share/pkgconfig
%doc %doc

Loading…
Cancel
Save