diff --git a/libcares2.changes b/c-ares.changes similarity index 98% rename from libcares2.changes rename to c-ares.changes index ee1d064..ebab142 100644 --- a/libcares2.changes +++ b/c-ares.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 20 09:35:01 UTC 2018 - tchvatal@suse.com + +- Rename everything to c-ares + ------------------------------------------------------------------- Tue Jun 20 19:35:16 UTC 2017 - tchvatal@suse.com diff --git a/libcares2.keyring b/c-ares.keyring similarity index 100% rename from libcares2.keyring rename to c-ares.keyring diff --git a/libcares2.spec b/c-ares.spec similarity index 67% rename from libcares2.spec rename to c-ares.spec index eeebca4..11815fd 100644 --- a/libcares2.spec +++ b/c-ares.spec @@ -1,7 +1,7 @@ # -# spec file for package libcares2 +# spec file for package c-ares # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -16,17 +16,17 @@ # -%define pkg_name c-ares -Name: libcares2 +%define libname libcares2 +Name: c-ares Version: 1.13.0 Release: 0 Summary: Library for asynchronous name resolves License: MIT Group: Development/Libraries/C and C++ -Url: http://c-ares.haxx.se/ -Source0: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz -Source1: http://c-ares.haxx.se/download/%{pkg_name}-%{version}.tar.gz.asc -Source3: libcares2.keyring +URL: http://c-ares.haxx.se/ +Source0: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz +Source1: http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz.asc +Source3: %{name}.keyring Source4: baselibs.conf Patch0: 0001-Use-RPM-compiler-options.patch BuildRequires: autoconf @@ -40,19 +40,30 @@ c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. -%package -n libcares-devel +%package -n %{libname} +Summary: Library for asynchronous name resolves +Group: System/Libraries + +%description -n %{libname} +c-ares is a C library that performs DNS requests and name resolves +asynchronously. c-ares is a fork of the library named 'ares', written +by Greg Hudson at MIT. + +%package devel Summary: Library for asynchronous name resolves Group: Development/Libraries/C and C++ -Requires: %{name} = %{version} +Requires: %{libname} = %{version} Requires: glibc-devel +Provides: libcares-devel = %{version} +Obsoletes: libcares-devel < %{version} -%description -n libcares-devel +%description devel c-ares is a C library that performs DNS requests and name resolves asynchronously. c-ares is a fork of the library named 'ares', written by Greg Hudson at MIT. %prep -%setup -q -n %{pkg_name}-%{version} +%setup -q %patch0 -p1 # Remove bogus cflags checking @@ -71,18 +82,17 @@ autoreconf -fiv make %{?_smp_mflags} %install -make %{?_smp_mflags} DESTDIR=%{buildroot} install +%make_install find %{buildroot} -type f -name "*.la" -delete -print -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig -%files -%defattr(-,root,root) +%files -n %{libname} +%license LICENSE.md %{_libdir}/libcares.so.2* -%files -n libcares-devel -%defattr(-,root,root) +%files devel %{_libdir}/libcares.so %{_includedir}/*.h %{_mandir}/man3/ares_*