Package cleanup, update URLs, Use %%license
This commit is contained in:
parent
47a7a77110
commit
2bd0f51a85
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
28
librtas.spec
28
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 <pbrobinson@fedoraproject.org> 2.0.0-2
|
||||
- Package cleanup, update URLs
|
||||
- Use %%license
|
||||
|
||||
* Wed Apr 06 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.0.0-1
|
||||
- Update to upstream release 2.0.0
|
||||
- do-not-enable-debug-message patch is available in this release
|
||||
|
Loading…
Reference in New Issue
Block a user