Browse Source

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2501 ec354946-7b23-47d6-9f5a-488ba84defc7

kudoh 13 years ago
parent
commit
8b13886659
2 changed files with 37 additions and 15 deletions
  1. 6 2
      c/clipit/clipit-vl.spec
  2. 31 13
      u/usbmanager/usbmanager-vl.spec

+ 6 - 2
c/clipit/clipit-vl.spec

@@ -1,6 +1,6 @@
 Name:           clipit
 Version:        1.3.11
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Summary:        lightweight GTK+ clipboard manager
 Summary(ja):    軽量な GTK+ クリップボードマネージャ
 
@@ -8,6 +8,7 @@ Group:          Applications/Accessories
 License:        GPLv3
 URL:            http://gtk%{name}.sourceforge.net/
 Source0:        %{name}-%{version}.tar.gz
+Source1:        %{name}_ja.po
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-root
 
@@ -28,12 +29,12 @@ Parcellite (http://parcellite.sourceforge.net) からフォークし、
 
 %prep
 %setup -q
+cp -f %{SOURCE1} po/ja.po
 
 %build
 %configure
 make %{?_smp_mflags}
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
@@ -61,5 +62,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/%{name}.1.gz
 
 %changelog
+* Fri Jan 14 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-2
+- added source1 to translate modified Japanese
+
 * Wed Jan 12 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.11-1
 - initial build for VineSeed

+ 31 - 13
u/usbmanager/usbmanager-vl.spec

@@ -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(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
-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-setuptools
 BuildRequires:	desktop-file-utils
 
+Requires:	dbus-python
+Requires:	gksu
 Requires:	python pygtk2
 Requires:	mtools
 Requires:	dbus hal
@@ -29,24 +36,29 @@ USBManager は USB ストレージデバイスの管理に手を焼く人々を
 
 %prep
 %setup -q -n %{name}
+cp -f %{SOURCE1} locale/ja.po
 
 %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
 
 %install
 rm -rf %{buildroot}
 python setup.py install --skip-build --root %{buildroot}
 
-# maybe disued file?
+# maybe disused file?
 rm -rf %{buildroot}/root/
 
 %find_lang %{name}
 
 desktop-file-install \
-	--dir $RPM_BUILD_ROOT%{_datadir}/applications data/%{name}.desktop
+	--dir %{buildroot}%{_datadir}/applications data/%{name}.desktop
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %post
 touch --no-create %{_datadir}/icons/hicolor || :
@@ -62,11 +74,17 @@ update-desktop-database %{_datadir}/applications
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING ChangeLog NEWS README TODO
 %{_bindir}/%{name}
-%{_libdir}/python2.*/site-packages/*
+#%{_libdir}/python2.*/site-packages/*
+%{python_sitelib}/
 %{_datadir}/applications/*.desktop
 %{_datadir}/icons/*
 
 %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
 - initial build for VineSeed