SHA256
1
0
forked from pool/libHX

Trim extraneous slashes, macros

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=50
This commit is contained in:
Jan Engelhardt 2012-05-10 03:30:26 +00:00 committed by Git OBS Bridge
parent f9c89543d6
commit 3b8e2884e6

View File

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