Browse Source

pyrenamer 0.6.0-1 (new)

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@1164 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 15 years ago
parent
commit
284546a313
1 changed files with 86 additions and 0 deletions
  1. 86 0
      p/pyrenamer/pyrenamer-vl.spec

+ 86 - 0
p/pyrenamer/pyrenamer-vl.spec

@@ -0,0 +1,86 @@
+# -*- encoding: utf-8 -*-
+%define ver 0.6.0
+%define rel 1
+
+Summary: an application for mass renaming files
+Summary: 大量のファイルの名前を変更するためのアプリケーション
+Name: pyrenamer
+Version: %{ver}
+Release: %{rel}%{?_dist_release}
+License: GPLv2
+Group: Applications/Accessories
+URL: http://www.infinicode.org/code/pyrenamer/
+Source0: http://www.infinicode.org/code/pyrenamer/files/%{name}-%{version}.tar.gz
+Source1: pyrenamer_trunk-ja.po
+Source2: pyrenamer-0.6.0-LINGUAS
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+BuildRequires: pygtk2-devel GConf2-devel
+BuildRequires(install,check): desktop-file-utils
+Requires: pygtk2 GConf2
+Requires(post,postun): desktop-file-utils
+BuildArch: noarch
+
+Vendor: Project Vine
+Distribution: Vine Linux
+Packager: iwaim
+
+%description
+pyRenamer is an application for mass renaming files.
+
+You can rename files using patterns, substitutions,
+insert or delete text, or even rename files manually.
+You can also rename images using their EXIF tags
+and music using their internal tags.
+
+%prep
+%setup -q
+%__cp -a %{SOURCE1} po/ja.po
+%__rm -f po/LINGUAS
+%__cp -a %{SOURCE2} po/LINGUAS
+%configure
+
+%build
+make
+
+%install
+%__rm -rf %{buildroot}
+%makeinstall
+
+%__rm -rf %{buildroot}%{_docdir}/%{name}
+
+%find_lang %{name}
+
+%check
+make check
+%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+%clean
+%__rm -rf %{buildroot}
+
+
+%post
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
+%postun
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog NEWS README TODO
+%{_bindir}/pyrenamer
+%{_sysconfdir}/gconf/schemas/%{name}.schemas
+%{python_sitelib}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_mandir}/man1/%{name}.1*
+%{_datadir}/pixmaps/*.png
+%{_datadir}/%{name}
+
+
+%changelog
+* Mon Jun  7 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.0-1
+- Initial build.