/ [renrot] / trunk / renrot.spec
To checkout: svn checkout http://svn.gnu.org.ua/sources/renrot/trunk/renrot.spec
Puszcza

Contents of /trunk/renrot.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 625 - (show annotations)
Sat Jun 8 17:56:51 2013 UTC (8 years, 5 months ago) by zeus
File size: 3634 byte(s)
version valu corrected
1 %define rcver %{nil}
2 %define dotrc %{nil}
3
4 Name: renrot
5 Version: 1.2.0
6 Release: 3%{?dotrc}%{?dist}
7 License: Artistic 2.0
8 Group: Applications/Multimedia
9 Summary: A program to rename and rotate files according to EXIF tags
10 URL: http://puszcza.gnu.org.ua/projects/renrot/
11 Source0: ftp://download.gnu.org.ua/pub/release/renrot/%{name}-%{version}%{?rcver}.tar.gz
12 BuildArch: noarch
13 BuildRequires: perl(ExtUtils::MakeMaker)
14 BuildRequires: perl(Getopt::Long) >= 2.34
15 BuildRequires: perl(Image::ExifTool) >= 5.72
16 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
17 Requires: perl(Image::Magick)
18 Requires: /usr/bin/jpegtran
19
20 %description
21 Renrot renames files according the DateTimeOriginal and FileModifyDate
22 EXIF tags, if they exist. Otherwise, the name will be set according to
23 the current timestamp. Additionally, it rotates files and their
24 thumbnails, accordingly Orientation EXIF tag.
25
26 The script can also put commentary into the Commentary and UserComment
27 tags.
28
29 Personal details can be specified via XMP tags defined in a
30 configuration file.
31
32 %prep
33 %setup -q -n %{name}-%{version}%{?rcver}
34
35 %build
36 %{__perl} Makefile.PL INSTALLDIRS=vendor
37 make
38
39 %install
40 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
41
42 # Fix renrot permissions
43 chmod 755 $RPM_BUILD_ROOT%{_bindir}/renrot
44
45 # install sample configuration files
46 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
47 install -m644 etc/colors.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
48 install -m644 etc/copyright.tag $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
49 install -m644 etc/renrot.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
50 install -m644 etc/tags.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
51
52 # Remove some unwanted files
53 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
54 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} \;
55
56 %triggerin -- renrot < 0.21-0.2.rc2
57 if [ -f %{_sysconfdir}/renrot.rc ]; then
58 /bin/mkdir -p %{_sysconfdir}/%{name}
59 /bin/mv -fb %{_sysconfdir}/renrot.rc %{_sysconfdir}/%{name}/renrot.conf
60 fi
61
62 %files
63 %doc AUTHORS ChangeLog NEWS README TODO
64 %lang(ru) %doc README.russian
65 %{_bindir}/renrot
66 %{_mandir}/man1/*.1*
67 %dir %{_sysconfdir}/%{name}
68 %config(noreplace) %{_sysconfdir}/%{name}/colors.conf
69 %config(noreplace) %{_sysconfdir}/%{name}/copyright.tag
70 %config(noreplace) %{_sysconfdir}/%{name}/renrot.conf
71 %config(noreplace) %{_sysconfdir}/%{name}/tags.conf
72 %{perl_vendorlib}/Image/
73
74 %changelog
75 * Sun Jul 15 2012 Andy Shevchenko <andy.shevchenko@gmail.com>
76 - explicitly require perl-Image-Magick
77
78 * Mon Jun 20 2011 Petr Sabata <contyk@redhat.com> - 1.1-3
79 - Perl mass rebuild
80 - Dropping now obsolete Buildroot and defattr
81 - Commenting Requires(hint) out since fedpkg refuses to work with it
82
83 * Thu Jul 01 2010 Adam Tkac <atkac redhat com> - 1.1-2
84 - Require /usr/bin/jpegtran instead of libjpeg; compatible with both
85 libjpeg and libjpeg-turbo
86
87 * Mon Oct 06 2008 Andy Shevchenko <andy@smile.org.ua> - 1.1-0.3.rc3
88 - update to 1.1rc3
89 - change License to Artistic 2.0 accordingly to mainstream
90 - update URLs
91 - require (optional) Image::Magick
92
93 * Tue Sep 04 2007 Andy Shevchenko <andy@smile.org.ua> 0.25-3.1
94 - Fix License tag
95 - Add BuildRequires: perl(ExtUtils::MakeMaker)
96
97 * Tue Aug 22 2006 Andy Shevchenko <andy@smile.org.ua>
98 - add colors.conf
99
100 * Wed Jun 07 2006 Andy Shevchenko <andriy@asplinux.com.ua>
101 - relocate configuration to %_sysconfdir/%name
102
103 * Sat Jun 03 2006 Andy Shevchenko <andriy@asplinux.com.ua> 0.20-2
104 - remove BR: perl
105 - fix renrot permissions
106
107 * Mon May 15 2006 Andy Shevchenko <andriy@asplinux.com.ua>
108 - install rc-file
109
110 * Tue Apr 18 2006 Andy Shevchenko <andriy@asplinux.com.ua>
111 - initial package

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20