[1164] | 1 | # -*- encoding: utf-8 -*- |
---|
| 2 | %define ver 0.6.0 |
---|
| 3 | %define rel 1 |
---|
| 4 | |
---|
| 5 | Summary: an application for mass renaming files |
---|
| 6 | Summary: 大量のファイルの名前を変更するためのアプリケーション |
---|
| 7 | Name: pyrenamer |
---|
| 8 | Version: %{ver} |
---|
| 9 | Release: %{rel}%{?_dist_release} |
---|
| 10 | License: GPLv2 |
---|
| 11 | Group: Applications/Accessories |
---|
| 12 | URL: http://www.infinicode.org/code/pyrenamer/ |
---|
| 13 | Source0: http://www.infinicode.org/code/pyrenamer/files/%{name}-%{version}.tar.gz |
---|
| 14 | Source1: pyrenamer_trunk-ja.po |
---|
| 15 | Source2: pyrenamer-0.6.0-LINGUAS |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 17 | BuildRequires: pygtk2-devel GConf2-devel |
---|
| 18 | BuildRequires(install,check): desktop-file-utils |
---|
| 19 | Requires: pygtk2 GConf2 |
---|
| 20 | Requires(post,postun): desktop-file-utils |
---|
| 21 | BuildArch: noarch |
---|
| 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: iwaim |
---|
| 26 | |
---|
| 27 | %description |
---|
| 28 | pyRenamer is an application for mass renaming files. |
---|
| 29 | |
---|
| 30 | You can rename files using patterns, substitutions, |
---|
| 31 | insert or delete text, or even rename files manually. |
---|
| 32 | You can also rename images using their EXIF tags |
---|
| 33 | and music using their internal tags. |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q |
---|
| 37 | %__cp -a %{SOURCE1} po/ja.po |
---|
| 38 | %__rm -f po/LINGUAS |
---|
| 39 | %__cp -a %{SOURCE2} po/LINGUAS |
---|
| 40 | %configure |
---|
| 41 | |
---|
| 42 | %build |
---|
| 43 | make |
---|
| 44 | |
---|
| 45 | %install |
---|
| 46 | %__rm -rf %{buildroot} |
---|
| 47 | %makeinstall |
---|
| 48 | |
---|
| 49 | %__rm -rf %{buildroot}%{_docdir}/%{name} |
---|
| 50 | |
---|
| 51 | %find_lang %{name} |
---|
| 52 | |
---|
| 53 | %check |
---|
| 54 | make check |
---|
| 55 | %{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | %__rm -rf %{buildroot} |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %post |
---|
| 62 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 63 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
| 64 | fi |
---|
| 65 | |
---|
| 66 | %postun |
---|
| 67 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 68 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
| 69 | fi |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %files -f %{name}.lang |
---|
| 73 | %defattr(-,root,root,-) |
---|
| 74 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
---|
| 75 | %{_bindir}/pyrenamer |
---|
| 76 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
---|
| 77 | %{python_sitelib}/%{name} |
---|
| 78 | %{_datadir}/applications/%{name}.desktop |
---|
| 79 | %{_mandir}/man1/%{name}.1* |
---|
| 80 | %{_datadir}/pixmaps/*.png |
---|
| 81 | %{_datadir}/%{name} |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %changelog |
---|
| 85 | * Mon Jun 7 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.0-1 |
---|
| 86 | - Initial build. |
---|