- Add python patch and c++ bindings
This commit is contained in:
parent
6b75b584ab
commit
646ec19367
@ -2,7 +2,7 @@
|
||||
|
||||
Name: libplist
|
||||
Version: 0.16
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Library for manipulating Apple Binary and XML Property Lists
|
||||
|
||||
Group: System Environment/Libraries
|
||||
@ -10,6 +10,7 @@ License: LGPLv2+
|
||||
URL: http://matt.colyer.name/projects/iphone-linux/
|
||||
|
||||
Source0: http://cloud.github.com/downloads/JonathanBeck/%{name}/%{name}-%{version}.tar.bz2
|
||||
Patch0: libplist-0.16-fix-python-lib-path.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: libxml2-devel
|
||||
@ -41,6 +42,7 @@ Requires: python
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .fixpython
|
||||
|
||||
%build
|
||||
export CMAKE_PREFIX_PATH=/usr
|
||||
@ -53,10 +55,6 @@ export CMAKE_PREFIX_PATH=/usr
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
# move python bindings to proper location
|
||||
%{__mkdir} -pm 755 $RPM_BUILD_ROOT%{python_sitearch}
|
||||
%{__mv} $RPM_BUILD_ROOT%{_libdir}/python/site-packages/libplist $RPM_BUILD_ROOT%{python_sitearch}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -68,14 +66,18 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS COPYING.LESSER README
|
||||
%{_bindir}/plutil
|
||||
%{_bindir}/plutil-0.13
|
||||
%{_bindir}/plutil-%{version}
|
||||
%{_libdir}/libplist.so.0
|
||||
%{_libdir}/libplist.so.0.0.13
|
||||
%{_libdir}/libplist.so.0.0.16
|
||||
%{_libdir}/libplist++.so.0
|
||||
%{_libdir}/libplist++.so.0.0.16
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/pkgconfig/libplist.pc
|
||||
%{_libdir}/pkgconfig/libplist++.pc
|
||||
%{_libdir}/libplist.so
|
||||
%{_libdir}/libplist++.so
|
||||
%{_includedir}/plist
|
||||
|
||||
%files python
|
||||
@ -83,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{python_sitearch}/libplist
|
||||
|
||||
%changelog
|
||||
* Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 0.16-2
|
||||
- Add python patch and c++ bindings
|
||||
|
||||
* Thu Oct 29 2009 Peter Robinson <pbrobinson@gmail.com> 0.16-1
|
||||
- New upstream 0.16 release
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user