From 2bd0f51a85206e23cd07358d4ea85a05e9850208 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jul 11 2016 07:32:29 +0000 Subject: Package cleanup, update URLs, Use %%license --- diff --git a/.gitignore b/.gitignore index 9b32ba3..22de99b 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ librtas-1.3.4.tar.gz /librtas-1.3.14.tar.gz /librtas-1.4.0.tar.gz /librtas-2.0.0.tar.gz +/v2.0.0.tar.gz diff --git a/librtas.spec b/librtas.spec index 25adef9..02a11e9 100644 --- a/librtas.spec +++ b/librtas.spec @@ -1,17 +1,17 @@ Summary: Libraries to provide access to RTAS calls and RTAS events Name: librtas Version: 2.0.0 -Release: 1%{?dist} -URL: http://librtas.ozlabs.org +Release: 2%{?dist} +URL: https://github.com/nfont/librtas License: LGPL Group: System Environment/Libraries -Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +Source0: https://github.com/nfont/librtas/archive/v%{version}.tar.gz # Fedora specific patch -Patch0: %{name}-1.3.4-libdir.patch -Patch1: %{name}-1.3.6-ln.patch +Patch0: %{name}-1.3.4-libdir.patch +Patch1: %{name}-1.3.6-ln.patch -ExclusiveArch: ppc ppc64 ppc64le +ExclusiveArch: ppc %{power64} %description The librtas shared library provides userspace with an interface @@ -42,21 +42,23 @@ developing programs using librtas. # these errors in our code. CFLAGS="%{optflags} -fPIC -DPIC -I." CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'` -%{__make} CFLAGS="$CFLAGS" %{?_smp_mflags} +make CFLAGS="$CFLAGS" %{?_smp_mflags} %install mkdir -p %{buildroot}/%{_libdir} -%{__make} install DESTDIR=%{buildroot} LIB_DIR=%{_libdir} INSTALL="install -p" -%{__rm} -rf %{buildroot}%{_datadir}/doc +make install DESTDIR=%{buildroot} LIB_DIR=%{_libdir} INSTALL="install -p" +rm -rf %{buildroot}%{_datadir}/doc # Remove static libraries -%{__rm} -f %{buildroot}%{_libdir}/*.a +rm -f %{buildroot}%{_libdir}/*.a %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -%doc COPYING.LESSER README Changelog +%{!?_licensedir:%global license %%doc} +%license COPYING.LESSER +%doc README Changelog %{_libdir}/librtas.so.%{version} %{_libdir}/librtasevent.so.%{version} %{_libdir}/librtas.so.2 @@ -71,6 +73,10 @@ mkdir -p %{buildroot}/%{_libdir} %{_includedir}/librtasevent_v6.h %changelog +* Mon Jul 11 2016 Peter Robinson 2.0.0-2 +- Package cleanup, update URLs +- Use %%license + * Wed Apr 06 2016 Sinny Kumari - 2.0.0-1 - Update to upstream release 2.0.0 - do-not-enable-debug-message patch is available in this release diff --git a/sources b/sources index a354280..6697125 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0a39248ad768029f76b3150218581486 librtas-2.0.0.tar.gz +0a39248ad768029f76b3150218581486 v2.0.0.tar.gz