File invm-i18n.spec of Package invm-i18n

#
# spec file for package intelnvm-i18n
#
# Copyright (c) 2016 Intel Corporation
# Copyright (c) 2016 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/
#


%define rpm_name invm-i18n
%define build_version 1.0.0.1015
%define api_release 1
%define lname lib%{rpm_name}%{api_release}
%define dname %{rpm_name}-devel
%define srcname lib%{name}-%{build_version}
%define  debug_package %{nil}
Name:           %{rpm_name}
Version:        %{build_version}
Release:        0
Summary:        Internationalization library
License:        BSD-3-Clause and BSD-2-Clause
Group:          System/Libraries
Url:            http://www.intel.com
Source:         https://github.com/01org/libinvm-i18n/archive/v%{version}.tar.gz
#PATCH-FIX-SUSE Always create directory for header export
Patch1:         create-header-dir.patch
ExclusiveArch:  x86_64
BuildRequires:  distribution-release

%description
Intel NVM I18N Library is an internationalization library supporting a subset
of internationalization functionality.

%package -n %{lname}
Summary:        Library for Intel I18N framework
Group:          System/Libraries

%description -n %{lname}
Intel NVM I18N Library is an internationalization library supporting a subset
of internationalization functionality.

%package -n %{dname}
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}-%{release}

%description -n %{dname}
The %{name}-devel package contains header files for
developing applications that use %{name}.

%prep
%setup -q -n %{srcname}
%patch1 -p1

%build
make %{?_smp_mflags} BUILDNUM=%{build_version} RELEASE=1

%install
make install BUILDNUM=%{build_version} RELEASE=1 RPM_ROOT=%{buildroot} LIB_DIR=%{_libdir} INCLUDE_DIR=%{_includedir}

%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig

%files -n %{lname}
%defattr(-,root,root)
%{_libdir}/libinvm-i18n.so.*
%doc licenses/intel_bsd

%files -n %{dname}
%defattr(-,root,root)
%{_libdir}/libinvm-i18n.so
%dir %{_includedir}/libinvm-i18n
%{_includedir}/libinvm-i18n/*.h
%doc licenses/intel_bsd
%doc licenses/netbsd

%changelog
openSUSE Build Service is sponsored by