Blame SPECS/libnsl2.spec

9bc15e
%global commit0 4a062cf4180d99371198951e4ea5b4550efd58a3
9bc15e
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
9bc15e
9bc15e
9bc15e
Name:       libnsl2
9bc15e
Version:    1.2.0
9bc15e
Release:    2.20180605git%{shortcommit0}%{?dist}
9bc15e
Summary:    Public client interface library for NIS(YP) and NIS+
9bc15e
9bc15e
License:    BSD and LGPLv2+
9bc15e
Group:      System Environment/Libraries
9bc15e
URL:        https://github.com/thkukuk/libnsl
9bc15e
9bc15e
9bc15e
Source0:    https://github.com/thkukuk/libnsl/archive/%{commit0}.tar.gz#/libnsl-%{commit0}.tar.gz
9bc15e
9bc15e
Patch0: libnsl2-1.0.5-include_stdint.patch
9bc15e
9bc15e
BuildRequires: autoconf, automake, gettext-devel, libtool, libtirpc-devel
9bc15e
9bc15e
%description
9bc15e
This package contains the libnsl library. This library contains
9bc15e
the public client interface for NIS(YP) and NIS+.
9bc15e
This code was formerly part of glibc, but is now standalone to
9bc15e
be able to link against TI-RPC for IPv6 support.
9bc15e
9bc15e
%package devel
9bc15e
Summary: Development files for libnsl
9bc15e
Group: Development/Libraries
9bc15e
Requires: %{name}%{?_isa} = %{version}-%{release}
9bc15e
Conflicts: glibc-devel < 2.26.9000-40
9bc15e
9bc15e
%description devel
9bc15e
Development files for libnsl2
9bc15e
9bc15e
9bc15e
%prep
9bc15e
%setup -q -n libnsl-%{commit0}
9bc15e
9bc15e
%patch0 -p1 -b .include_stdint
9bc15e
9bc15e
%build
9bc15e
9bc15e
export CFLAGS="%{optflags}"
9bc15e
9bc15e
autoreconf -fiv
9bc15e
9bc15e
%configure\
9bc15e
    --libdir=%{_libdir}\
9bc15e
    --includedir=%{_includedir}
9bc15e
9bc15e
%make_build
9bc15e
9bc15e
9bc15e
%install
9bc15e
9bc15e
%make_install
9bc15e
9bc15e
rm %{buildroot}/%{_libdir}/libnsl.a
9bc15e
rm %{buildroot}/%{_libdir}/libnsl.la
9bc15e
9bc15e
%post -p /sbin/ldconfig
9bc15e
%postun -p /sbin/ldconfig
9bc15e
9bc15e
9bc15e
%files
9bc15e
%{_libdir}/libnsl.so.2
9bc15e
%{_libdir}/libnsl.so.2.0.0
9bc15e
9bc15e
%license COPYING
9bc15e
9bc15e
9bc15e
%files devel
9bc15e
%{_libdir}/libnsl.so
9bc15e
%{_includedir}/*
9bc15e
%{_libdir}/pkgconfig/libnsl.pc
9bc15e
9bc15e
%changelog
9bc15e
* Tue Jun 05 2018 Matej Mužila <mmuzila@redhat.com> - 1.2.0-2.20181605git4a062cf
9bc15e
- Update to 1.2.0-2.20181605git4a062cf
9bc15e
  Resolves: rhbz#1573895
9bc15e
9bc15e
* Fri Feb 09 2018 Matej Mužila <mmuzila@reedhat.com> - 1.2.0-1
9bc15e
- Update to version 1.2.0
9bc15e
- Change libdir and includedir
9bc15e
9bc15e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
9bc15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9bc15e
9bc15e
* Wed Oct 04 2017 Matej Mužila <mmuzila@redhat.com> 1.1.0-1
9bc15e
- Update to version 1.1.0
9bc15e
9bc15e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-3
9bc15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
9bc15e
9bc15e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.5-2
9bc15e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
9bc15e
9bc15e
* Mon Jun 12 2017 Matej Mužila <mmuzila@redhat.com> 1.0.5-1
9bc15e
- Update to version 1.0.5
9bc15e
- Fix missing stdint.h
9bc15e
9bc15e
* Mon Apr 10 2017 Matej Mužila <mmuzila@redhat.com> 1.0.4-4
9bc15e
- Initial version for 1.0.4
9bc15e