From 3b8e2884e6915cd7de7268605de980f5bb1cc4a2119302eee79553a1093838d2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 10 May 2012 03:30:26 +0000 Subject: [PATCH] Trim extraneous slashes, macros OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=50 --- libHX.spec | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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