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.3.14.tar.gz
|
||||||
/librtas-1.4.0.tar.gz
|
/librtas-1.4.0.tar.gz
|
||||||
/librtas-2.0.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
|
Summary: Libraries to provide access to RTAS calls and RTAS events
|
||||||
Name: librtas
|
Name: librtas
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://librtas.ozlabs.org
|
URL: https://github.com/nfont/librtas
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
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
|
# Fedora specific patch
|
||||||
Patch0: %{name}-1.3.4-libdir.patch
|
Patch0: %{name}-1.3.4-libdir.patch
|
||||||
Patch1: %{name}-1.3.6-ln.patch
|
Patch1: %{name}-1.3.6-ln.patch
|
||||||
|
|
||||||
ExclusiveArch: ppc ppc64 ppc64le
|
ExclusiveArch: ppc %{power64}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The librtas shared library provides userspace with an interface
|
The librtas shared library provides userspace with an interface
|
||||||
@ -42,21 +42,23 @@ developing programs using librtas.
|
|||||||
# these errors in our code.
|
# these errors in our code.
|
||||||
CFLAGS="%{optflags} -fPIC -DPIC -I."
|
CFLAGS="%{optflags} -fPIC -DPIC -I."
|
||||||
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
|
CFLAGS=`echo $CFLAGS | sed 's/-Werror=format-security//'`
|
||||||
%{__make} CFLAGS="$CFLAGS" %{?_smp_mflags}
|
make CFLAGS="$CFLAGS" %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_libdir}
|
mkdir -p %{buildroot}/%{_libdir}
|
||||||
%{__make} install DESTDIR=%{buildroot} LIB_DIR=%{_libdir} INSTALL="install -p"
|
make install DESTDIR=%{buildroot} LIB_DIR=%{_libdir} INSTALL="install -p"
|
||||||
%{__rm} -rf %{buildroot}%{_datadir}/doc
|
rm -rf %{buildroot}%{_datadir}/doc
|
||||||
# Remove static libraries
|
# Remove static libraries
|
||||||
%{__rm} -f %{buildroot}%{_libdir}/*.a
|
rm -f %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING.LESSER README Changelog
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license COPYING.LESSER
|
||||||
|
%doc README Changelog
|
||||||
%{_libdir}/librtas.so.%{version}
|
%{_libdir}/librtas.so.%{version}
|
||||||
%{_libdir}/librtasevent.so.%{version}
|
%{_libdir}/librtasevent.so.%{version}
|
||||||
%{_libdir}/librtas.so.2
|
%{_libdir}/librtas.so.2
|
||||||
@ -71,6 +73,10 @@ mkdir -p %{buildroot}/%{_libdir}
|
|||||||
%{_includedir}/librtasevent_v6.h
|
%{_includedir}/librtasevent_v6.h
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Apr 06 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 2.0.0-1
|
||||||
- Update to upstream release 2.0.0
|
- Update to upstream release 2.0.0
|
||||||
- do-not-enable-debug-message patch is available in this release
|
- do-not-enable-debug-message patch is available in this release
|
||||||
|
Loading…
Reference in New Issue
Block a user