rpms/rubyripper/F-7 rubyripper-0.4.3-makefile.patch, NONE, 1.1 rubyripper.spec, NONE, 1.1 sources, 1.1, 1.2

Sindre Pedersen Bjørdal (sindrepb) fedora-extras-commits at redhat.com
Sun Nov 11 20:31:43 UTC 2007


Author: sindrepb

Update of /cvs/pkgs/rpms/rubyripper/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26827

Modified Files:
	sources 
Added Files:
	rubyripper-0.4.3-makefile.patch rubyripper.spec 
Log Message:
add files to branch

rubyripper-0.4.3-makefile.patch:

--- NEW FILE rubyripper-0.4.3-makefile.patch ---
diff -up rubyripper-0.4.3/Makefile.orig rubyripper-0.4.3/Makefile
--- rubyripper-0.4.3/Makefile.orig	2007-11-08 10:07:58.000000000 +0100
+++ rubyripper-0.4.3/Makefile	2007-11-10 02:07:46.000000000 +0100
@@ -1,33 +1,35 @@
 #Makefile for Rubyripper
 
-BINDIR = /usr/local/bin
+BINDIR = /usr/bin
 MODIR = /usr/share/locale
 
+DESTDIR=
+
 all:
 	chmod +x rubyripper_gtk2.rb
 	chmod +x rubyripper_cli.rb
 
 install_lib: all
-	install rr_lib.rb `ruby helpfile.rb`/rr_lib.rb # install in the standard ruby location
+	install -D rr_lib.rb $(DESTDIR)`ruby helpfile.rb`/rr_lib.rb # install in the standard ruby location
 
 install_cli: install_lib
-	install rubyripper_cli.rb $(BINDIR)/rrip_cli
+	install -D rubyripper_cli.rb $(DESTDIR)$(BINDIR)/rrip_cli
 	echo "The cli interface is installed as $(BINDIR)/rrip_cli"
 
 install_gtk: install_lib
-	install rubyripper_22.png /usr/share/pixmaps/rubyripper_22.png
-	install rubyripper.desktop /usr/share/applications/rubyripper.desktop #create a menu entry
-	install rubyripper_gtk2.rb $(BINDIR)/rrip_gui
+	install -D rubyripper_22.png $(DESTDIR)/usr/share/pixmaps/rubyripper_22.png
+	install -D rubyripper.desktop $(DESTDIR)/usr/share/applications/rubyripper.desktop #create a menu entry
+	install -D rubyripper_gtk2.rb $(DESTDIR)$(BINDIR)/rrip_gui
 	echo "The gtk2 interface is installed as $(BINDIR)/rrip_gui"
 
 install_mo:
 	`echo rake makemo`
-	install locale/nl/LC_MESSAGES/rr_cli.mo $(MODIR)/nl/LC_MESSAGES/rr_cli.mo
-	install locale/nl/LC_MESSAGES/rr_gtk2.mo $(MODIR)/nl/LC_MESSAGES/rr_gtk2.mo
-	install locale/nl/LC_MESSAGES/rr_lib.mo $(MODIR)/nl/LC_MESSAGES/rr_lib.mo
-	install locale/de/LC_MESSAGES/rr_cli.mo $(MODIR)/de/LC_MESSAGES/rr_cli.mo
-	install locale/de/LC_MESSAGES/rr_gtk2.mo $(MODIR)/de/LC_MESSAGES/rr_gtk2.mo
-	install locale/de/LC_MESSAGES/rr_lib.mo $(MODIR)/de/LC_MESSAGES/rr_lib.mo
+	install -D locale/nl/LC_MESSAGES/rr_cli.mo $(DESTDIR)$(MODIR)/nl/LC_MESSAGES/rr_cli.mo
+	install -D locale/nl/LC_MESSAGES/rr_gtk2.mo $(DESTDIR)$(MODIR)/nl/LC_MESSAGES/rr_gtk2.mo
+	install -D locale/nl/LC_MESSAGES/rr_lib.mo $(DESTDIR)$(MODIR)/nl/LC_MESSAGES/rr_lib.mo
+	install -D locale/de/LC_MESSAGES/rr_cli.mo $(DESTDIR)$(MODIR)/de/LC_MESSAGES/rr_cli.mo
+	install -D locale/de/LC_MESSAGES/rr_gtk2.mo $(DESTDIR)$(MODIR)/de/LC_MESSAGES/rr_gtk2.mo
+	install -D locale/de/LC_MESSAGES/rr_lib.mo $(DESTDIR)$(MODIR)/de/LC_MESSAGES/rr_lib.mo
 
 install: install_lib install_cli install_gtk install_mo
 	
@@ -44,4 +46,4 @@ uninstall_mo:
 	rm $(MODIR)/nl/LC_MESSAGES/rr_lib.mo
 	rm $(MODIR)/de/LC_MESSAGES/rr_cli.mo
 	rm $(MODIR)/de/LC_MESSAGES/rr_gtk2.mo
-	rm $(MODIR)/de/LC_MESSAGES/rr_lib.mo
\ No newline at end of file
+	rm $(MODIR)/de/LC_MESSAGES/rr_lib.mo


--- NEW FILE rubyripper.spec ---
%{!?ruby_sitelib: %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')}

Name:           rubyripper
Version:        0.4.3
Release:        2%{?dist}
Summary:        Open-source secure ripper for Linux

Group:          Applications/Multimedia
License:        GPLv3+
URL:            http://code.google.com/p/rubyripper/
Source0:        http://rubyripper.googlecode.com/files/%{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}-makefile.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch

BuildRequires:  desktop-file-utils, gettext
BuildRequires:  ruby(abi) = 1.8, ruby
BuildRequires:  rubygem(rake), ruby(gettext-package)
Requires:       ruby(abi) = 1.8, ruby(gettext-package), ruby 
Requires:       cdparanoia


%description
Rubyripper is a digital audio extraction algorithm that uses cdparanoia in
a sophisticated way to make sure that a CD rip is done successfully and
accurately. It is very similar to and inspired by EAC. Rubyripper is written
in the ruby programming language.

%package gui

Summary: GTK graphical user interface for rubyripper
Group: Applications/Multimedia
Requires: %{name} = %{version}-%{release}

Requires: ruby(gtk2)

%description gui
This package provides the GTK graphical interface for the rubyripper secure
audio extraction tool.

%prep
%setup -q
%patch0 -p1

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%find_lang rr_gtk2
%find_lang rr_cli
%find_lang rr_lib

desktop-file-install --vendor fedora --delete-original  \
        --dir $RPM_BUILD_ROOT%{_datadir}/applications   \
        --remove-category Application \
        $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

#to make the %files -f work with multiple locale names
cat rr_lib.lang rr_cli.lang > rr.lang

#permissions
chmod 0644 $RPM_BUILD_ROOT%{_datadir}/pixmaps/rubyripper_22.png

for f in `find $RPM_BUILD_ROOT%{_datadir}/locale/ -name "*.mo"`
	do chmod 0644 $f
done

%clean
rm -rf $RPM_BUILD_ROOT


%files -f rr.lang
%defattr(-,root,root,-)
%doc GPL-3.txt README
%{_bindir}/rrip_cli
%{ruby_sitelib}/*

%files gui -f rr_gtk2.lang
%{_bindir}/rrip_gui
%{_datadir}/applications/*
%{_datadir}/pixmaps/*


%changelog
* Sat Nov 10 2007 Sindre Pedersen Bjørdal <foolish at guezz.net> - 0.4.3-2
- Add missing ruby-gettext Requires
- Fix EVR specific subpackage Requires
- Fix permissions
* Tue Nov 08 2007 Sindre Pedersen Bjørdal <foolish at guezz.net> - 0.4.3-1
. New release
- Add ruby-gettext, rubygem-rake and gettext dependencies
- Split package into core and gui
- Add translations shebang
* Wed Nov 07 2007 Sindre Pedersen Bjørdal <foolish at guezz.net> - 0.4.2-3
- Add Requires: ruby
- Fix License tag
- Update ruby BR for consistency
* Tue Nov 06 2007 Sindre Pedersen Bjørdal <foolish at guezz.net> - 0.4.2-2
- Add missing BRs
- Use modules, not package names in ruby Requires
- Update License tag
- Fix description
* Mon Nov 05 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.4.2-1
- Initial build


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubyripper/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	11 Nov 2007 17:51:57 -0000	1.1
+++ sources	11 Nov 2007 20:31:11 -0000	1.2
@@ -0,0 +1 @@
+466e22c46dfb3a1166a89a96949ce4c6  rubyripper-0.4.3.tar.bz2




More information about the fedora-extras-commits mailing list