Browse Source

libgpod: fix permission

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1254 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 14 years ago
parent
commit
24edeeca3d
1 changed files with 62 additions and 11 deletions
  1. 62 11
      lib/libg/libgpod/libgpod-vl.spec

+ 62 - 11
lib/libg/libgpod/libgpod-vl.spec

@@ -1,7 +1,7 @@
 Summary: Library to access the iPod
 Summary(ja): iPod にアクセスするためのライブラリ
 Name: libgpod
-Version: 0.7.2
+Version: 0.7.93
 Release: 1%{?_dist_release}
 Group: System Environment/Libraries
 License: LGPL
@@ -10,10 +10,29 @@ Buildroot: %{_tmppath}/%{name}-%{version}-root
 Source: %{name}-%{version}.tar.gz
 URL: http://www.gtkpod.org/libgpod.html
 
-BuildRequires: glib2-devel >= 2.8.0
+BuildRequires: docbook-style-xsl
+BuildRequires: glib2-devel
+BuildRequires: gtk2-devel
+BuildRequires: gettext
+BuildRequires: intltool
+BuildRequires: libimobiledevice-devel >= 1.0.2
+BuildRequires: libplist-devel >= 1.0
+BuildRequires: libusb1-devel
+BuildRequires: libxml2-devel
+BuildRequires: libxslt
 BuildRequires: libffi-devel
-#BuildRequires: dbus-devel >= 0.61
-BuildRequires: gtk-doc
+BuildRequires: perl(XML::Parser)
+BuildRequires: pygobject-devel
+BuildRequires: python-devel
+BuildRequires: python-mutagen
+BuildRequires: sg3_utils-devel
+BuildRequires: sqlite3-devel
+BuildRequires: swig
+Requires: udev
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: daisuke
 
 %description
 libgpod is a library meant to abstract access to an iPod content. It
@@ -25,7 +44,8 @@ Summary: Support files necessary to compile applications with libgpod.
 Summary(ja): libgpod を使うアプリケーションのコンパイルに必要なファイル.
 Group: Development/Libraries
 Requires: libgpod = %{version}-%{release}
-Requires: glib2-devel >= 2.8.0
+Requires: glib2-devel
+Requires: gtk2-devel
 
 %description devel
 Libraries, headers, and support files necessary to compile applications 
@@ -35,21 +55,36 @@ using libgpod.
 libgpod を使ったアプリケーションのコンパイルに必要なライブラリ,
 ヘッダファイルなどが含まれています.
 
+%package -n python-gpod
+Summary: Python module to access iPod content
+Group: Development/Languages
+Requires: %{name} = %{version}-%{release}
+Requires: python-mutagen
+
+%description -n python-gpod
+A python module to access iPod content.  This module provides bindings
+to the libgpod library.
+
+
 %prep
 %setup -q
 
 %build
-%configure 
+%configure \
+  --without-hal \
+  --enable-udev \
+  --with-temp-mount-dir=%{_localstatedir}/run/%{name}
 make %{?_smp_mflags}
 
 %install
 if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
 
-%makeinstall
+make DESTDIR=%{buildroot} install
 
 %find_lang %{name}
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
+rm -f $RPM_BUILD_ROOT%{python_sitearch}/gpod/*.{a,la}
 
 %clean
 if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
@@ -59,18 +94,34 @@ if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
 %postun -p /sbin/ldconfig
 
 %files -f %{name}.lang
-%defattr(644,root,root,755)
+%defattr(-, root, root, 0755)
 %doc AUTHORS ChangeLog COPYING README
+%{_bindir}/*
 %{_libdir}/lib*.so.*
+%dir %{_localstatedir}/run/%{name}
+/lib/udev/iphone-set-info
+/lib/udev/ipod-set-info
+/lib/udev/rules.d/*.rules
 
 %files devel
-%defattr(644,root,root,755)
+%defattr(-, root, root, 0755)
 %{_libdir}/lib*.so
 %{_libdir}/pkgconfig/*.pc
-%{_includedir}/*
-%{_datadir}/gtk-doc/html/libgpod
+%{_includedir}/gpod-1.0/
+%{_datadir}/gtk-doc/html/%{name}
+
+%files -n python-gpod
+%defattr(-, root, root, 0755)
+%doc COPYING bindings/python/README bindings/python/examples
+%{python_sitearch}/gpod
 
 %changelog
+* Sat Jun 26 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.93-1
+- new upstream release
+- add configure option (disable hal, enable udev, specify temp mount dir)
+- add python subpackage
+- add BR:
+
 * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.2-1
 - new upstream release
 - remove static library