Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
libdfp.16621
libdfp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libdfp.spec of Package libdfp.16621
# # spec file for package libdfp # # Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Url: https://github.com/libdfp/libdfp Name: libdfp Summary: Decimal floating point library License: LGPL-2.1 Group: Development/Libraries/C and C++ Version: 1.0.15 Release: 0 Source: libdfp-%{version}.tar.bz2 Source99: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: glibc-devel BuildRequires: python3 ExclusiveArch: s390 s390x ppc ppc64 ppc64le x86_64 %description A library containing support routines for calculating with and printing decimal floating point values. %package -n libdfp1 Summary: Decimal floating point library Group: System/Libraries %description -n libdfp1 A library containing support routines for calculating with and printing decimal floating point values. %package devel Summary: Decimal floating point library Group: Development/Libraries/C and C++ Requires: libdfp1 = %{version} %description devel A library containing support routines for calculating with and printing decimal floating point values. %package devel-static Summary: Decimal floating point static library Group: Development/Libraries/C and C++ Requires: libdfp-devel = %{version} %description devel-static A static library containing support routines for calculating with and printing decimal floating point values. %prep %setup -n %{name} %build export CFLAGS="$RPM_OPT_FLAGS" mkdir build cd build ../configure --prefix=%{_prefix} make %{?_smp_mflags} cd .. %ifarch s390 s390x mkdir build-ec cd build-ec ../configure --prefix=%{_prefix} --with-cpu=z9-ec make %{?_smp_mflags} cd .. %else %ifarch ppc ppc64 mkdir buildp6 cd buildp6 ../configure --prefix=%{_prefix} --with-cpu=power6 make %{?_smp_mflags} cd .. mkdir buildp7 cd buildp7 ../configure --prefix=%{_prefix} --with-cpu=power7 make %{?_smp_mflags} cd .. %endif %endif %install cd build install -d $RPM_BUILD_ROOT/%{_includedir}/dfp/ install -d $RPM_BUILD_ROOT/%{_includedir}/dfp/decimal/ install -m644 -t $RPM_BUILD_ROOT/%{_includedir}/dfp/ ../dfp/*.h install -m644 -t $RPM_BUILD_ROOT/%{_includedir}/dfp/decimal/ ../dfp/decimal/* install -d $RPM_BUILD_ROOT/%{_libdir} install -t $RPM_BUILD_ROOT/%{_libdir}/ libdfp-%{version}.so libdfp.a pushd $RPM_BUILD_ROOT/%{_libdir}/ ln -sf libdfp-%{version}.so libdfp.so.1 ln -sf libdfp.so.1 libdfp.so popd %ifarch s390 s390x cd ../build-ec install -d $RPM_BUILD_ROOT/%{_libdir}/dfp install -t $RPM_BUILD_ROOT/%{_libdir}/dfp libdfp-%{version}.so libdfp.a pushd $RPM_BUILD_ROOT/%{_libdir}/dfp ln -sf libdfp-%{version}.so libdfp.so.1 ln -sf libdfp.so.1 libdfp.so popd cd .. %endif %ifarch ppc ppc64 cd ../buildp6 install -d $RPM_BUILD_ROOT/%{_libdir}/power6 install -t $RPM_BUILD_ROOT/%{_libdir}/power6 libdfp-%{version}.so libdfp.a pushd $RPM_BUILD_ROOT/%{_libdir}/power6 ln -sf libdfp-%{version}.so libdfp.so.1 ln -sf libdfp.so.1 libdfp.so popd cd ../buildp7 install -d $RPM_BUILD_ROOT/%{_libdir}/power7 install -t $RPM_BUILD_ROOT/%{_libdir}/power7 libdfp-%{version}.so libdfp.a pushd $RPM_BUILD_ROOT/%{_libdir}/power7 ln -sf libdfp-%{version}.so libdfp.so.1 ln -sf libdfp.so.1 libdfp.so popd cd .. %endif find $RPM_BUILD_ROOT/%{_libdir} -name '*.a' | xargs chmod 644 %clean rm -rf $RPM_BUILD_ROOT %post -n libdfp1 -p /sbin/ldconfig %postun -n libdfp1 -p /sbin/ldconfig %files -n libdfp1 %defattr(-,root,root) %{_libdir}/lib*so.* %{_libdir}/libdfp-*.so %ifarch s390 s390x %dir %{_libdir}/dfp/ %endif %ifarch ppc ppc64 %dir %{_libdir}/power6/ %dir %{_libdir}/power7/ %endif %ifarch s390 s390x ppc ppc64 %{_libdir}/*/lib*so.* %{_libdir}/*/libdfp-*.so %endif %files devel %defattr(-,root,root) %{_includedir}/dfp %{_libdir}/libdfp.so %ifarch s390 s390x ppc ppc64 %{_libdir}/*/libdfp.so %endif %files devel-static %defattr(-,root,root) %{_libdir}/libdfp.a %ifarch s390 s390x ppc ppc64 %{_libdir}/*/libdfp.a %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor