switch to cmake so we get cmake helper files, bz1687844
This commit is contained in:
parent
a9edfcee9c
commit
4f75e1c62e
31
c-ares.spec
31
c-ares.spec
@ -1,18 +1,22 @@
|
|||||||
|
%global use_cmake 1
|
||||||
|
|
||||||
Summary: A library that performs asynchronous DNS operations
|
Summary: A library that performs asynchronous DNS operations
|
||||||
Name: c-ares
|
Name: c-ares
|
||||||
Version: 1.15.0
|
Version: 1.15.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://c-ares.haxx.se/
|
URL: http://c-ares.haxx.se/
|
||||||
Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
|
Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
|
||||||
# The license can be obtained at http://c-ares.haxx.se/license.html
|
# The license can be obtained at http://c-ares.haxx.se/license.html
|
||||||
Source1: LICENSE
|
Source1: LICENSE
|
||||||
Patch0: 0001-Use-RPM-compiler-options.patch
|
Patch0: 0001-Use-RPM-compiler-options.patch
|
||||||
|
%if %{use_cmake}
|
||||||
|
BuildRequires: cmake
|
||||||
|
%else
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
c-ares is a C library that performs DNS requests and name resolves
|
c-ares is a C library that performs DNS requests and name resolves
|
||||||
@ -36,9 +40,16 @@ cp %{SOURCE1} .
|
|||||||
f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
|
f=CHANGES ; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# autoreconf -if
|
||||||
|
# %%configure --enable-shared --disable-static \
|
||||||
|
# --disable-dependency-tracking
|
||||||
|
%if %{use_cmake}
|
||||||
|
%{cmake} -DCMAKE_INSTALL_LIBDIR:PATH="%{_libdir}" -DCARES_BUILD_TOOLS:BOOL=OFF .
|
||||||
|
%else
|
||||||
autoreconf -if
|
autoreconf -if
|
||||||
%configure --enable-shared --disable-static \
|
%configure --enable-shared --disable-static \
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
|
%endif
|
||||||
%{__make} %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -46,6 +57,14 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
|
||||||
|
|
||||||
|
%if %{use_cmake}
|
||||||
|
# When we used autotooling, we got man pages installed automagically
|
||||||
|
# but no cmake helpers were generated.
|
||||||
|
# Now, we use cmake, so we have to copy the man pages manually.
|
||||||
|
mkdir -p %{buildroot}%{_mandir}/man3
|
||||||
|
cp -a ares_*.3 %{buildroot}%{_mandir}/man3/
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -59,10 +78,16 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcares.la
|
|||||||
%{_includedir}/ares_rules.h
|
%{_includedir}/ares_rules.h
|
||||||
%{_includedir}/ares_version.h
|
%{_includedir}/ares_version.h
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
%if %{use_cmake}
|
||||||
|
%{_libdir}/cmake/c-ares/
|
||||||
|
%endif
|
||||||
%{_libdir}/pkgconfig/libcares.pc
|
%{_libdir}/pkgconfig/libcares.pc
|
||||||
%{_mandir}/man3/ares_*
|
%{_mandir}/man3/ares_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 12 2019 Tom Callaway <spot@fedoraproject.org> - 1.15.0-3
|
||||||
|
- use cmake to build so we get cmake helpers (bz1687844)
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user