diff --git a/libHX.spec b/libHX.spec index 7917962..39de0a0 100644 --- a/libHX.spec +++ b/libHX.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: libHX %define lname libHX28 Summary: Useful collection of routines for C and C++ programming @@ -108,11 +109,11 @@ tar -xf "%{S:0}" --use=xz; make %{?_smp_mflags} %install -make install DESTDIR=%buildroot docdir=%_defaultdocdir/%name -mkdir -p "%buildroot/%_docdir"; -install -pm0644 doc/* "%buildroot/%_defaultdocdir/%name" -rm -f %buildroot/%_defaultdocdir/%name/Makefile* -find "%buildroot" -type f -name "*.la" -delete; +b="%buildroot"; +make install DESTDIR="$b" docdir="%_defaultdocdir/%name"; +install -pm0644 doc/* "$b/%_defaultdocdir/%name"; +rm -f "$b/%_defaultdocdir/%name"/Makefile*; +find "$b/%_libdir" -type f -name "*.la" -delete; %check make check @@ -123,14 +124,14 @@ make check %files -n %lname %defattr(-,root,root) -/%_libdir/%{name}*.so.* +%_libdir/%{name}*.so.* %files devel %defattr(-,root,root) -%docdir %_docdir/%name +%doc %_docdir/%name %_docdir/%name %_includedir/%{name}* -/%_libdir/%{name}*.so +%_libdir/%{name}*.so %_libdir/pkgconfig/*.pc %changelog