rpms/SevenZip/devel SevenZip.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orcan Ogetbil oget at fedoraproject.org
Sat Jun 27 01:59:43 UTC 2009


Author: oget

Update of /cvs/pkgs/rpms/SevenZip/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv7722/devel

Modified Files:
	.cvsignore sources 
Added Files:
	SevenZip.spec import.log 
Log Message:
* Sun Jun 07 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 4.65-1
- Initial Fedora build



--- NEW FILE SevenZip.spec ---
%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
%global vershort 465

Name:		SevenZip
Summary:	Java SDK for LZMA
URL:		http://www.7-zip.org/sdk.html
Source0:	http://downloads.sourceforge.net/sevenzip/lzma%{vershort}.tar.bz2
Group:		System Environment/Libraries
Version:	4.65
Release:	1%{?dist}
License:	Public Domain
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires:	java-devel >= 1.5
BuildRequires:	jpackage-utils

%if %{with_gcj}
BuildRequires:	java-gcj-compat-devel >= 1.0.31
Requires(post):	java-gcj-compat >= 1.0.31
Requires(postun): java-gcj-compat >= 1.0.31
%else
BuildArch:	noarch
%endif

Requires:	java >= 1.5
Requires:	jpackage-utils


%description
%{name} is the Java version of LZMA compressing and decompressing SDK.

%package javadoc
Summary:	Javadocs for %{name}
Group:		Documentation
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -c 
rm -f lzma.exe
# Fix weird permissions and encoding
for file in java txt; do
   find . -name "*.$file" -exec chmod -x {} \;
done
for file in *.txt; do
   sed 's|\r||' $file > $file.tmpfile
   iconv --from=ISO88591 --to=UTF8 $file.tmpfile -o $file.tmpfile2
   touch -r $file $file.tmpfile2
   mv -f $file.tmpfile2 $file
done


%build
pushd Java
   %javac `find %{name}/ -name '*.java'`
   %jar cf %{name}.jar `find %{name}/ -name '*.class'`
   %javadoc -d doc -public `find %{name}/ -name '*.java'`
popd

%install
rm -rf %{buildroot}
# jars
install -dm 755 %{buildroot}%{_javadir}
install -pm 644 Java/%{name}.jar \
	%{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
popd

# javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr Java/doc/* %{buildroot}%{_javadocdir}/%{name}

# aot bits
%if %{with_gcj}
%{_bindir}/aot-compile-rpm
%endif


%clean
rm -rf %{buildroot}

%post
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
%{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%if %{with_gcj}
if [ -x %{_bindir}/rebuild-gcj-db ] 
then
%{_bindir}/rebuild-gcj-db
fi
%endif



%files
%defattr(-,root,root,-)
%doc 7zFormat.txt Methods.txt history.txt lzma.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%if %{with_gcj}
%{_libdir}/gcj/%{name}/
%endif


%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}/


%changelog
* Sun Jun 07 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 4.65-1
- Initial Fedora build


--- NEW FILE import.log ---
SevenZip-4_65-1_fc11:HEAD:SevenZip-4.65-1.fc11.src.rpm:1246067317


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/SevenZip/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	27 Jun 2009 00:34:44 -0000	1.1
+++ .cvsignore	27 Jun 2009 01:59:13 -0000	1.2
@@ -0,0 +1 @@
+lzma465.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/SevenZip/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	27 Jun 2009 00:34:44 -0000	1.1
+++ sources	27 Jun 2009 01:59:13 -0000	1.2
@@ -0,0 +1 @@
+29d5ffd03a5a3e51aef6a74e9eafb759  lzma465.tar.bz2




More information about the fedora-extras-commits mailing list