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:
parent
f9c89543d6
commit
3b8e2884e6
17
libHX.spec
17
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
|
||||
|
Loading…
Reference in New Issue
Block a user