avatar
Rosa has added 1c3d3c8795
Automatic import for version 5.0.20140325-1
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "gprename-20140325.tar.bz2": b930f93e4651b26b3d34c11abce978617cd1ff5b
view file @ 1c3d3c8795
... ... --- /dev/null
... ... +++ b/desktop_icon.patch
... ... @@ -0,0 +1,100 @@
1
--- Makefile.orig	2014-03-25 00:06:04.000000000 +0300
2
+++ Makefile	2014-03-26 18:24:02.435966200 +0300
3
@@ -26,7 +26,7 @@
4
 	perl -ne 's!\@INSTALLDIR\@!$(PREFIX)!g ; print' < bin/gprename > build/gprename
5
 	perl -ne 's!\@INSTALLDIR\@!$(PREFIX)!g ; print' < bin/gprename.desktop > build/gprename.desktop
6
 
7
-install: uninstall build
8
+install: build
9
 	# Compile all .po files to .mo
10
 	msgfmt -o build/locale/ca.mo	locale/ca.po
11
 	msgfmt -o build/locale/de.mo	locale/de.po
12
@@ -45,8 +45,8 @@
13
 	# Create directories
14
 	install -d "$(DESTDIR)"
15
 	install -d "$(DESTDIR)/bin"
16
-	install -d "/usr/share"
17
-	install -d "/usr/share/icons"
18
+	install -d "$(DESTDIR)/share"
19
+	install -d "$(DESTDIR)/share/pixmaps"
20
 	install -d "$(DESTDIR)/share/applications"
21
 	install -d "$(DESTDIR)/share/man"
22
 	install -d "$(DESTDIR)/share/man/man1"
23
@@ -67,7 +67,7 @@
24
 	# Copy all files in the filesystem
25
 	install -m 755 build/gprename                "$(DESTDIR)/bin/"
26
 	install -m 644 gprename-nautilus-actions.xml "$(DESTDIR)/share/applications/"
27
-	install -m 644 icon/gprename.png             "/usr/share/icons/"
28
+	install -m 644 icon/gprename.png             "$(DESTDIR)/share/pixmaps/"
29
 	install -m 644 man/gprename.1                "$(DESTDIR)/share/man/man1/"
30
 	install -m 644 build/locale/ca.mo            "$(DESTDIR)/share/locale/ca/LC_MESSAGES/gprename.mo"
31
 	install -m 644 build/locale/de.mo            "$(DESTDIR)/share/locale/de/LC_MESSAGES/gprename.mo"
32
@@ -82,8 +82,7 @@
33
 	install -m 644 build/locale/ru.mo            "$(DESTDIR)/share/locale/ru/LC_MESSAGES/gprename.mo"
34
 	install -m 644 build/locale/sv.mo            "$(DESTDIR)/share/locale/sv/LC_MESSAGES/gprename.mo"
35
 	install -m 644 build/locale/zh_CN.mo         "$(DESTDIR)/share/locale/zh_CN/LC_MESSAGES/gprename.mo"
36
-	desktop-file-install bin/gprename.desktop
37
-	update-desktop-database
38
+	desktop-file-install bin/gprename.desktop --dir="$(DESTDIR)/share/applications/"
39
 	@echo "Installation completed."
40
 
41
 uninstall: clean
42
--- bin/gprename.orig	2014-03-26 01:47:15.000000000 +0300
43
+++ bin/gprename	2014-03-26 18:37:12.156966200 +0300
44
@@ -61,7 +61,7 @@
45
 
46
 # set the locale
47
 setlocale(LC_ALL, '');
48
-bindtextdomain( 'gprename', '/usr/local/share/locale');
49
+bindtextdomain( 'gprename', '/usr/share/locale');
50
 textdomain( 'gprename' );
51
 
52
 # Change the font to courier new for the Tree and the SimpleList
53
@@ -127,7 +127,7 @@
54
 $window->add_accel_group( $accel_group );
55
 
56
 # Set the window icon
57
-my $icon = '/usr/share/icons/gprename.png';
58
+my $icon = '/usr/share/pixmaps/gprename.png';
59
 my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file( $icon );
60
 $window->set_icon( $pixbuf );
61
 
62
@@ -1440,7 +1440,7 @@
63
    $buffer->create_tag( 'big', size => 15 * PANGO_SCALE );
64
    $buffer->create_tag( 'italic', style => 'italic' );
65
    my $iter = $buffer->get_start_iter;
66
-   my $icon = '/usr/local/share/pixmaps/gprename/gprename.png';
67
+   my $icon = '/usr/share/pixmaps/gprename.png';
68
    my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file( $icon );
69
 
70
    $buffer->insert_pixbuf ($iter,  $pixbuf);
71
72
--- build/gprename.orig	2014-03-26 01:47:15.000000000 +0300
73
+++ build/gprename	2014-03-26 18:37:12.156966200 +0300
74
@@ -61,7 +61,7 @@
75
 
76
 # set the locale
77
 setlocale(LC_ALL, '');
78
-bindtextdomain( 'gprename', '/usr/local/share/locale');
79
+bindtextdomain( 'gprename', '/usr/share/locale');
80
 textdomain( 'gprename' );
81
 
82
 # Change the font to courier new for the Tree and the SimpleList
83
@@ -127,7 +127,7 @@
84
 $window->add_accel_group( $accel_group );
85
 
86
 # Set the window icon
87
-my $icon = '/usr/share/icons/gprename.png';
88
+my $icon = '/usr/share/pixmaps/gprename.png';
89
 my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file( $icon );
90
 $window->set_icon( $pixbuf );
91
 
92
@@ -1440,7 +1440,7 @@
93
    $buffer->create_tag( 'big', size => 15 * PANGO_SCALE );
94
    $buffer->create_tag( 'italic', style => 'italic' );
95
    my $iter = $buffer->get_start_iter;
96
-   my $icon = '/usr/local/share/pixmaps/gprename/gprename.png';
97
+   my $icon = '/usr/share/pixmaps/gprename.png';
98
    my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file( $icon );
99
 
100
    $buffer->insert_pixbuf ($iter,  $pixbuf);
... ... --- /dev/null
... ... +++ b/gprename.spec
... ... @@ -0,0 +1,40 @@
1
%define oversion 20140325
2
3
Summary:	A GTK2 batch renamer for files and directories
4
Name:		gprename
5
Version:	5.0.%{oversion}
6
Release:	1
7
License:	GPLv3+
8
Group:		File tools
9
Url:		http://gprename.sourceforge.net/
10
Source0:	http://kent.dl.sourceforge.net/project/gprename/gprename/%{oversion}/gprename-%{oversion}.tar.bz2
11
Patch0:		desktop_icon.patch
12
BuildArch:	noarch
13
14
%description
15
GPRename is a complete GTK2/perl batch renamer for files and directories.
16
17
%files -f %{name}.lang
18
%{_bindir}/%{name}
19
%{_datadir}/applications/%{name}.desktop
20
%{_datadir}/pixmaps/%{name}*
21
%{_mandir}/man1/%{name}.1*
22
23
#----------------------------------------------------------------------------
24
25
%prep
26
%setup -qn %{name}-%{oversion}
27
%patch0 -p0
28
29
%build
30
31
%install
32
make \
33
     PREFIX=%{_prefix} \
34
     DESTDIR=%{buildroot}%{_prefix} \
35
     install
36
37
rm -f %{buildroot}%{_datadir}/applications/gprename-nautilus-actions.xml
38
39
%find_lang %{name}
40

Comments