Spec cleanup.
OBS-URL: https://build.opensuse.org/package/show/hardware/qclib?expand=0&rev=2
This commit is contained in:
parent
92671745b5
commit
083aa5c0f8
49
qclib.spec
49
qclib.spec
@ -12,30 +12,30 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugzilla.suse.com/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: qclib
|
Name: qclib
|
||||||
Version: 1.2.0
|
Version: 1.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://www.ibm.com/developerworks/linux/linux390/qclib.html
|
|
||||||
Summary: Query Capacity library
|
Summary: Query Capacity library
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/System
|
Group: Development/Libraries/C and C++
|
||||||
BuildRequires: gcc-c++
|
Url: http://www.ibm.com/developerworks/linux/linux390/qclib.html
|
||||||
|
Source: %{name}-%{version}.tgz
|
||||||
|
Patch1: qclib.makefile.libdir.patch
|
||||||
|
Patch2: qclib.correctly.interpret.sthyi.check.patch
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
ExclusiveArch: s390 s390x
|
||||||
%if 0%{?suse_version} > 1300
|
%if 0%{?suse_version} > 1300
|
||||||
BuildRequires: glibc-devel-static
|
BuildRequires: glibc-devel-static
|
||||||
%else
|
%else
|
||||||
BuildRequires: glibc-devel
|
BuildRequires: glibc-devel
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Source: %{name}-%{version}.tgz
|
|
||||||
Patch1: qclib.makefile.libdir.patch
|
|
||||||
Patch2: qclib.correctly.interpret.sthyi.check.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
ExclusiveArch: s390 s390x
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
qclib provides a C API for extraction of system information for Linux on z
|
qclib provides a C API for extraction of system information for Linux on z
|
||||||
Systems.
|
Systems.
|
||||||
@ -68,6 +68,7 @@ by:
|
|||||||
|
|
||||||
%package -n libqclib1
|
%package -n libqclib1
|
||||||
Summary: Query Capacity Library shared library
|
Summary: Query Capacity Library shared library
|
||||||
|
|
||||||
%description -n libqclib1
|
%description -n libqclib1
|
||||||
qclib provides a C API for extraction of system information for Linux on z
|
qclib provides a C API for extraction of system information for Linux on z
|
||||||
Systems.
|
Systems.
|
||||||
@ -75,18 +76,19 @@ Systems.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for Query Capacity library
|
Summary: Development files for Query Capacity library
|
||||||
Requires: libqclib1 = %{version}-%{release}
|
Requires: libqclib1 = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
qclib provides a C API for extraction of system information for Linux on z
|
qclib provides a C API for extraction of system information for Linux on z
|
||||||
Systems.
|
Systems.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
MYCFLAGS=$(grep ^CFLAGS Makefile | cut -f2 -d=)
|
MYCFLAGS=$(grep ^CFLAGS Makefile | cut -f2 -d=)
|
||||||
make all CFLAGS="${MYCFLAGS} ${RPM_OPT_FLAGS}"
|
make all CFLAGS="${MYCFLAGS} %{optflags}"
|
||||||
make doc
|
make doc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -94,23 +96,12 @@ make test
|
|||||||
make test-sh
|
make test-sh
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ifarch s390x
|
%make_install LIBDIR=%{_lib} V=1
|
||||||
LIBDIR=lib64
|
make installdoc DESTDIR=%{buildroot} V=1
|
||||||
%else
|
|
||||||
LIBDIR=lib
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%make_install LIBDIR=${LIBDIR} V=1
|
%post -n libqclib1 -pldconfig
|
||||||
make installdoc DESTDIR=${RPM_BUILD_ROOT} V=1
|
|
||||||
|
|
||||||
%post -n libqclib1
|
%postun -n libqclib1 -p ldconfig
|
||||||
ldconfig
|
|
||||||
|
|
||||||
%postun -n libqclib1
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -118,9 +109,11 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%{_docdir}/%{name}/*
|
%{_docdir}/%{name}/*
|
||||||
|
|
||||||
%files -n libqclib1
|
%files -n libqclib1
|
||||||
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libqc.so.*
|
%{_libdir}/libqc.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
%{_includedir}/*.h
|
%{_includedir}/*.h
|
||||||
%{_libdir}/libqc.a
|
%{_libdir}/libqc.a
|
||||||
%{_libdir}/libqc.so
|
%{_libdir}/libqc.so
|
||||||
|
Loading…
Reference in New Issue
Block a user