rpms/ebview/F-8 ebview.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Fri Nov 16 06:05:37 UTC 2007


Author: mtasaka

Update of /cvs/extras/rpms/ebview/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9549/F-8

Modified Files:
	.cvsignore sources 
Added Files:
	ebview.spec 
Log Message:
Initial commit


--- NEW FILE ebview.spec ---
Name:		ebview
Version:	0.3.6
Release:	2%{?dist}
Summary:	EPWING CD-ROM dictionary viewer

Group:		Applications/Text      
License:	GPLv2+
URL:		http://ebview.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	eb-devel
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gtk2-devel

Requires:	fonts-japanese

%description
EBView is a EPWING dictionary browser.

%prep
%setup -q

# Fix up permission
find . -type f -exec %{__chmod} 0644 {} ';'
%{__chmod} 0755 \
	configure \
	install-sh \
	mkinstalldirs

# Defaults
%{__sed} -i.defaults \
	-e 's|gnome-moz-remote|xdg-open|' \
	-e 's|Kochi |Sazanami |' \
	src/preference.c

# GTK deprecated option
for f in \
	src/ebview.c \
	src/defs.h \
	; do
	%{__sed} -i.gtk_deprecated -e '/GTK_DISABLE_DEPRECATED/d' $f
done

# encodings
iconv -f EUCJP -t UTF-8 README > README.tmp && \
	( touch -r README README.tmp ; %{__mv} -f README.tmp README )

%{__sed} -i -e 's|\r||' \
	doc/ja/menu.html \
	doc/ja/body.html

for f in doc/ja/*.html ; do
	iconv -f EUC-JP -t UTF-8 $f | \
		%{__sed} -e 's|EUC-JP|UTF-8|' > $f.tmp && \
		%{__mv} -f $f.tmp $f || \
		%{__rm} -f $f.tmp
done
iconv -f ISO-8859-1 -t UTF-8 doc/en/index.html > doc/en/index.html.tmp && \
	%{__mv} -f doc/en/index.html.tmp doc/en/index.html || \
	%{__rm} -f doc/en/index.html.tmp

%build
export LDFLAGS="`pkg-config --libs pangox`"

%configure \
	--with-eb-conf=%{_libdir}/eb.conf
%{__make} %{?_smp_mflags}


%install
%{__rm} -rf $RPM_BUILD_ROOT

# Actually %%makeinstall...
%{__make} install \
	INSTALL="%{__install} -c -p" \
	bindir=$RPM_BUILD_ROOT%{_bindir}  \
	datadir=$RPM_BUILD_ROOT%{_datadir} \
	gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale

desktop-file-install \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	--vendor fedora \
	%{SOURCE1}
%{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/pixmaps
%{__install} -cpm 644 pixmaps/%{name}.xpm \
	$RPM_BUILD_ROOT%{_datadir}/pixmaps/

%{find_lang} %{name}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc NEWS
%doc README

%{_bindir}/%{name}
%{_datadir}/%{name}/

%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

%changelog
* Thu Nov 15 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.3.6-2
- Require fonts-japanese (bug 382551)

* Wed Nov 14 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.3.6-1
- Initial packaging, borrowing desktop file from
  Akihiro Matsushima <amatsus at gsc.riken.jp>



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/ebview/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	15 Nov 2007 17:21:25 -0000	1.1
+++ .cvsignore	16 Nov 2007 06:05:03 -0000	1.2
@@ -0,0 +1 @@
+ebview-0.3.6.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/ebview/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	15 Nov 2007 17:21:25 -0000	1.1
+++ sources	16 Nov 2007 06:05:03 -0000	1.2
@@ -0,0 +1 @@
+223f679a6b54bc32cb6d44f54909d049  ebview-0.3.6.tar.gz




More information about the fedora-extras-commits mailing list