|
@@ -1,20 +1,27 @@
|
|
-Name: usbmanager
|
|
|
|
-Version: 1.0.0
|
|
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
+
|
|
|
|
+Name: usbmanager
|
|
|
|
+Version: 1.0.0
|
|
|
|
+Release: 2%{?_dist_release}
|
|
Summary: An USB storage management interface written in Python
|
|
Summary: An USB storage management interface written in Python
|
|
-Summary(ja): Python で書かれた USB ストレージ管理インターフェイス
|
|
|
|
|
|
+Summary(ja): Python で書かれた USB ストレージ管理インターフェイス
|
|
|
|
|
|
-Group: Applications/System
|
|
|
|
-License: LGPLv3
|
|
|
|
-URL: https://launchpad.net/usbmanager
|
|
|
|
|
|
+Group: Applications/System
|
|
|
|
+License: LGPLv3
|
|
|
|
+URL: https://launchpad.net/usbmanager
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source0: %{name}-%{version}.tar.gz
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
-BuildArch: noarch
|
|
|
|
|
|
+Source1: %{name}_ja.po
|
|
|
|
+
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildArch: noarch
|
|
|
|
|
|
|
|
+BuildRequires: gettext
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
+Requires: dbus-python
|
|
|
|
+Requires: gksu
|
|
Requires: python pygtk2
|
|
Requires: python pygtk2
|
|
Requires: mtools
|
|
Requires: mtools
|
|
Requires: dbus hal
|
|
Requires: dbus hal
|
|
@@ -29,24 +36,29 @@ USBManager は USB ストレージデバイスの管理に手を焼く人々を
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}
|
|
%setup -q -n %{name}
|
|
|
|
+cp -f %{SOURCE1} locale/ja.po
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+# build Japanese language file before setup,
|
|
|
|
+# if Japanese translation file is merged, this command will delete.
|
|
|
|
+msgfmt -o locale/ja.mo locale/ja.po
|
|
|
|
+
|
|
python setup.py build
|
|
python setup.py build
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
python setup.py install --skip-build --root %{buildroot}
|
|
python setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
-# maybe disued file?
|
|
|
|
|
|
+# maybe disused file?
|
|
rm -rf %{buildroot}/root/
|
|
rm -rf %{buildroot}/root/
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
desktop-file-install \
|
|
desktop-file-install \
|
|
- --dir $RPM_BUILD_ROOT%{_datadir}/applications data/%{name}.desktop
|
|
|
|
|
|
+ --dir %{buildroot}%{_datadir}/applications data/%{name}.desktop
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
%post
|
|
%post
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
touch --no-create %{_datadir}/icons/hicolor || :
|
|
@@ -62,11 +74,17 @@ update-desktop-database %{_datadir}/applications
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}
|
|
-%{_libdir}/python2.*/site-packages/*
|
|
|
|
|
|
+#%{_libdir}/python2.*/site-packages/*
|
|
|
|
+%{python_sitelib}/
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/applications/*.desktop
|
|
%{_datadir}/icons/*
|
|
%{_datadir}/icons/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2
|
|
|
|
+- added source1 to translate Japanese
|
|
|
|
+- used python macro
|
|
|
|
+- added BuildRequires: gettext
|
|
|
|
+- added Requires: dbus-python, gksu
|
|
|
|
|
|
* Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
|
|
* Sat Mar 13 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1
|
|
- initial build for VineSeed
|
|
- initial build for VineSeed
|