- Move libparted libraries to /lib (#428420)
This commit is contained in:
parent
eb51c16347
commit
814527fc84
23
parted.spec
23
parted.spec
@ -1,10 +1,10 @@
|
|||||||
%define aclocaldir /usr/share/aclocal
|
|
||||||
%define _sbindir /sbin
|
%define _sbindir /sbin
|
||||||
|
%define _libdir /%{_lib}
|
||||||
|
|
||||||
Summary: The GNU disk partition manipulation program
|
Summary: The GNU disk partition manipulation program
|
||||||
Name: parted
|
Name: parted
|
||||||
Version: 1.8.8
|
Version: 1.8.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.gnu.org/software/parted
|
URL: http://www.gnu.org/software/parted
|
||||||
@ -62,6 +62,18 @@ Parted library, you need to install this package.
|
|||||||
%install
|
%install
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
%{__make} install DESTDIR=%{buildroot}
|
%{__make} install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
# Move devel package components in to the correct location
|
||||||
|
%{__mkdir} -p %{buildroot}%{_exec_prefix}/%{_lib}
|
||||||
|
%{__mv} %{buildroot}%{_libdir}/libparted.so %{buildroot}%{_exec_prefix}/%{_lib}
|
||||||
|
%{__mv} %{buildroot}%{_libdir}/pkgconfig %{buildroot}%{_exec_prefix}/%{_lib}
|
||||||
|
pushd %{buildroot}%{_exec_prefix}/%{_lib}
|
||||||
|
reallibrary="$(readlink libparted.so)"
|
||||||
|
%{__rm} -f libparted.so
|
||||||
|
ln -sf ../../%{_lib}/${reallibrary} libparted.so
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Remove components we do not ship
|
||||||
%{__rm} -rf %{buildroot}%{_libdir}/*.la
|
%{__rm} -rf %{buildroot}%{_libdir}/*.la
|
||||||
%{__rm} -rf %{buildroot}%{_infodir}/dir
|
%{__rm} -rf %{buildroot}%{_infodir}/dir
|
||||||
%{__rm} -rf %{buildroot}%{_bindir}/label
|
%{__rm} -rf %{buildroot}%{_bindir}/label
|
||||||
@ -95,10 +107,13 @@ fi
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_includedir}/parted
|
%{_includedir}/parted
|
||||||
%{_libdir}/libparted.so
|
%{_exec_prefix}/%{_lib}/libparted.so
|
||||||
%{_libdir}/pkgconfig/libparted.pc
|
%{_exec_prefix}/%{_lib}/pkgconfig/libparted.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jan 14 2008 David Cantrell <dcantrell@redhat.com> - 1.8.8-2
|
||||||
|
- Move libparted libraries to /lib (#428420)
|
||||||
|
|
||||||
* Wed Jan 02 2008 David Cantrell <dcantrell@redhat.com> - 1.8.8-1
|
* Wed Jan 02 2008 David Cantrell <dcantrell@redhat.com> - 1.8.8-1
|
||||||
- Upgraded to GNU parted-1.8.8
|
- Upgraded to GNU parted-1.8.8
|
||||||
- License for GNU parted is now GPLv3+
|
- License for GNU parted is now GPLv3+
|
||||||
|
Loading…
Reference in New Issue
Block a user