Spec cleanups, Use %%license
This commit is contained in:
parent
66e46afe96
commit
5380ca9f9d
25
libvpd.spec
25
libvpd.spec
@ -11,11 +11,9 @@ License: LGPLv2+
|
|||||||
URL: http://linux-diag.sf.net/Lsvpd.html
|
URL: http://linux-diag.sf.net/Lsvpd.html
|
||||||
Source: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
Source: http://downloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: sqlite-devel zlib-devel libstdc++-devel libtool
|
BuildRequires: sqlite-devel zlib-devel libstdc++-devel libtool
|
||||||
|
|
||||||
ExclusiveArch: ppc ppc64 ppc64le
|
ExclusiveArch: ppc %{power64}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The libvpd package contains the classes that are used to access a vpd database
|
The libvpd package contains the classes that are used to access a vpd database
|
||||||
@ -34,14 +32,11 @@ Contains header files for building with libvpd.
|
|||||||
%build
|
%build
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
%{__make} %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
find %{buildroot} -type f -name "*.la" -delete
|
||||||
|
|
||||||
# re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
# re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
||||||
pushd %{buildroot}%{_libdir}
|
pushd %{buildroot}%{_libdir}
|
||||||
@ -58,17 +53,15 @@ popd
|
|||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%{!?_licensedir:%global license %%doc}
|
||||||
%doc COPYING README
|
%license COPYING
|
||||||
%exclude %{_libdir}/*.la
|
%doc README
|
||||||
%{_libdir}/libvpd_cxx-2.2.so.*
|
%{_libdir}/libvpd_cxx-2.2.so.*
|
||||||
%{_libdir}/libvpd-2.2.so.*
|
%{_libdir}/libvpd-2.2.so.*
|
||||||
%{_sysconfdir}/udev/rules.d/90-vpdupdate.rules
|
%{_sysconfdir}/udev/rules.d/90-vpdupdate.rules
|
||||||
%{_var}/lib/lsvpd/run.vpdupdate
|
%{_var}/lib/lsvpd/run.vpdupdate
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%exclude %{_libdir}/*.la
|
|
||||||
%{_includedir}/libvpd-2
|
%{_includedir}/libvpd-2
|
||||||
%{_libdir}/libvpd_cxx.so
|
%{_libdir}/libvpd_cxx.so
|
||||||
%{_libdir}/libvpd.so
|
%{_libdir}/libvpd.so
|
||||||
@ -76,6 +69,10 @@ popd
|
|||||||
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
|
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 11 2016 Peter Robinson <pbrobinson@fedoraproject.org>
|
||||||
|
- Spec cleanups
|
||||||
|
- Use %%license
|
||||||
|
|
||||||
* Mon Mar 21 2016 Than Ngo <than@redhat.com> - 2.2.5-3
|
* Mon Mar 21 2016 Than Ngo <than@redhat.com> - 2.2.5-3
|
||||||
- re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
- re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user