summaryrefslogtreecommitdiff
path: root/packaging/c-ares.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/c-ares.spec')
-rw-r--r--packaging/c-ares.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/packaging/c-ares.spec b/packaging/c-ares.spec
index a44ce71..92b72a8 100644
--- a/packaging/c-ares.spec
+++ b/packaging/c-ares.spec
@@ -7,6 +7,7 @@ Group: Development/Libraries/C and C++
Source: http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.bz2
Source2: baselibs.conf
Source1001: c-ares.manifest
+Source1002: LICENSE
BuildRequires: pkg-config
BuildRequires: libtool
Url: http://daniel.haxx.se/projects/c-ares
@@ -39,6 +40,7 @@ by Greg Hudson at MIT.
%prep
%setup -q -n %{name}-%{version}
cp %{SOURCE1001} .
+cp %{SOURCE1002} .
%build
autoreconf -fiv
@@ -48,23 +50,22 @@ make %{?_smp_mflags}
%install
%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
%post -p /sbin/ldconfig -n libcares
%postun -p /sbin/ldconfig -n libcares
%files -n libcares
+%license LICENSE
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/libcares.so.2*
%files -n libcares-devel
+%license LICENSE
%manifest %{name}.manifest
%defattr(-,root,root)
%{_libdir}/libcares.so
%{_includedir}/*.h
%{_mandir}/man3/ares_*
%{_libdir}/pkgconfig/libcares.pc
-/usr/share/license/%{name}