Split cli utilities out into a sub package, Spec file cleanups
This commit is contained in:
parent
47bfff7437
commit
939a1388ab
30
libidn2.spec
30
libidn2.spec
@ -1,15 +1,17 @@
|
|||||||
Summary: Library to support IDNA2008 internationalized domain names
|
Summary: Library to support IDNA2008 internationalized domain names
|
||||||
Name: libidn2
|
Name: libidn2
|
||||||
Version: 2.0.4
|
Version: 2.0.4
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
License: (GPLv2+ or LGPLv3+) and GPLv3+
|
License: (GPLv2+ or LGPLv3+) and GPLv3+
|
||||||
Group: System Environment/Libraries
|
|
||||||
URL: https://www.gnu.org/software/libidn/#libidn2
|
URL: https://www.gnu.org/software/libidn/#libidn2
|
||||||
|
|
||||||
Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
|
||||||
Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig
|
Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig
|
||||||
Patch0: libidn2-2.0.0-rpath.patch
|
Patch0: libidn2-2.0.0-rpath.patch
|
||||||
Patch1: libidn2-2.0.4-std3-ascii-rules.patch
|
Patch1: libidn2-2.0.4-std3-ascii-rules.patch
|
||||||
Patch2: libidn2-2.0.4-idn2-iconv-fail.patch
|
Patch2: libidn2-2.0.4-idn2-iconv-fail.patch
|
||||||
|
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: libunistring-devel
|
BuildRequires: libunistring-devel
|
||||||
Requires(post): /sbin/install-info, /sbin/ldconfig
|
Requires(post): /sbin/install-info, /sbin/ldconfig
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
@ -23,13 +25,19 @@ Libidn2 is an implementation of the IDNA2008 specifications in RFC
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for libidn2
|
Summary: Development files for libidn2
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
|
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The libidn2-devel package contains libraries and header files for
|
The libidn2-devel package contains libraries and header files for
|
||||||
developing applications that use libidn2.
|
developing applications that use libidn2.
|
||||||
|
|
||||||
|
%package utils
|
||||||
|
Summary: Command line utilities for libidn2
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
|
||||||
|
|
||||||
|
%description utils
|
||||||
|
The libidn2-utils package contains command line utilities for the libidn2 library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .rpath
|
%patch0 -p1 -b .rpath
|
||||||
@ -49,7 +57,6 @@ touch -c -r lib/register.c.idn2-iconv-fail lib/register.c
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
||||||
|
|
||||||
# Clean-up examples for documentation
|
# Clean-up examples for documentation
|
||||||
@ -77,13 +84,8 @@ fi
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{!?_licensedir:%global license %%doc}
|
|
||||||
%license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2
|
%license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2
|
||||||
%doc AUTHORS NEWS README.md
|
|
||||||
%{_bindir}/idn2
|
|
||||||
%{_mandir}/man1/idn2.1*
|
|
||||||
%{_libdir}/%{name}.so.*
|
%{_libdir}/%{name}.so.*
|
||||||
%{_infodir}/%{name}.info*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc doc/%{name}.html examples
|
%doc doc/%{name}.html examples
|
||||||
@ -93,7 +95,17 @@ fi
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
%{_datadir}/gtk-doc/
|
%{_datadir}/gtk-doc/
|
||||||
|
|
||||||
|
%files utils
|
||||||
|
%doc AUTHORS NEWS README.md
|
||||||
|
%{_bindir}/idn2
|
||||||
|
%{_mandir}/man1/idn2.1*
|
||||||
|
%{_infodir}/%{name}.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 2.0.4-5
|
||||||
|
- Split cli utilities out into a sub package
|
||||||
|
- Spec file cleanups
|
||||||
|
|
||||||
* Fri Mar 30 2018 Robert Scheck <robert@fedoraproject.org> 2.0.4-4
|
* Fri Mar 30 2018 Robert Scheck <robert@fedoraproject.org> 2.0.4-4
|
||||||
- Added upstream patch to fix silently transliterated decoded
|
- Added upstream patch to fix silently transliterated decoded
|
||||||
domain names (#1556954)
|
domain names (#1556954)
|
||||||
|
Loading…
Reference in New Issue
Block a user