Compare commits
26 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
28d21c6151 | ||
|
|
1b2e485a33 | ||
|
|
ea7d9f45c6 | ||
|
|
c3ed09561b | ||
|
|
1ca3f6f846 | ||
|
|
7f593e08f6 | ||
|
|
aeb5f283ad | ||
|
|
561c132321 | ||
|
|
711e4b4a97 | ||
|
|
fe56bb8f32 | ||
|
|
a5c0e63dae | ||
|
|
cb7d1fb8e9 | ||
|
|
f68b25e671 | ||
|
|
da17cab13c | ||
|
|
325e17634a | ||
|
|
72f65b4578 | ||
|
|
ac01a4d984 | ||
|
|
a285c44d2d | ||
|
|
3f2255e0d7 | ||
|
|
1b99b1c6c0 | ||
|
|
5b91ef1240 | ||
|
|
026616c46a | ||
|
|
1e6862e6a9 | ||
|
|
d314ddd77b | ||
|
|
65fcf3bcff | ||
|
|
8306fa5f89 |
3 changed files with 138 additions and 73 deletions
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1 +1,7 @@
|
||||||
/sharpziplib-e01215507cf25a5978a0bd850c9e67dbabf515b7.tar.gz
|
/sharpziplib-e01215507cf25a5978a0bd850c9e67dbabf515b7.tar.gz
|
||||||
|
/SharpZipLib-1.1.0.tar.gz
|
||||||
|
/SharpZipLib-1.2.0.tar.gz
|
||||||
|
/SharpZipLib-1.3.0.tar.gz
|
||||||
|
/SharpZipLib-1.3.1.tar.gz
|
||||||
|
/SharpZipLib-1.3.2.tar.gz
|
||||||
|
/SharpZipLib-1.3.3.tar.gz
|
||||||
|
|
|
||||||
205
sharpziplib.spec
205
sharpziplib.spec
|
|
@ -1,18 +1,13 @@
|
||||||
%global libname SharpZipLib
|
%global libname SharpZipLib
|
||||||
|
|
||||||
%global commit0 e01215507cf25a5978a0bd850c9e67dbabf515b7
|
|
||||||
%global date 20150714
|
|
||||||
|
|
||||||
# mono is without any packagable debuginfo
|
# mono is without any packagable debuginfo
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
%bcond_with brokentests
|
%bcond_with brokentests
|
||||||
|
|
||||||
Name: sharpziplib
|
Name: sharpziplib
|
||||||
# ReadMe.rtf says version 0.85.5 but version 0.86.0 (2010/05/25) is mentioned on homepage,
|
Version: 1.3.3
|
||||||
# latest upstream release as tarball is 0.86.0.518
|
Release: 11%{?dist}
|
||||||
Version: 0.86.0.518
|
|
||||||
Release: 8%{?dist}
|
|
||||||
Summary: Zip, GZip, Tar and BZip2 library
|
Summary: Zip, GZip, Tar and BZip2 library
|
||||||
|
|
||||||
# - as stated on the homepage, license is aka GNU Classpath exception:
|
# - as stated on the homepage, license is aka GNU Classpath exception:
|
||||||
|
|
@ -34,16 +29,13 @@ Summary: Zip, GZip, Tar and BZip2 library
|
||||||
# + samples/vb/minibzip2/Main.vb
|
# + samples/vb/minibzip2/Main.vb
|
||||||
# + samples/vb/viewzipfile/Main.vb
|
# + samples/vb/viewzipfile/Main.vb
|
||||||
# - samples/HttpCompressionModule is licensed as zlib/libpng (=zlib)
|
# - samples/HttpCompressionModule is licensed as zlib/libpng (=zlib)
|
||||||
License: GPLv2+ with exceptions and BSD and zlib
|
# Automatically converted from old format: GPLv2+ with exceptions and BSD and zlib - review is highly recommended.
|
||||||
|
License: LicenseRef-Callaway-GPLv2+-with-exceptions AND LicenseRef-Callaway-BSD AND Zlib
|
||||||
URL: http://icsharpcode.github.io/%{libname}
|
URL: http://icsharpcode.github.io/%{libname}
|
||||||
Source0: https://github.com/icsharpcode/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz
|
Source0: https://github.com/icsharpcode/%{name}/archive/v%{version}.tar.gz#/%{libname}-%{version}.tar.gz
|
||||||
|
|
||||||
ExclusiveArch: %{mono_arches}
|
ExclusiveArch: %{mono_arches}
|
||||||
BuildRequires: nant
|
|
||||||
BuildRequires: mono-devel
|
BuildRequires: mono-devel
|
||||||
BuildRequires: unrtf
|
|
||||||
# enforce nunit version cause of the versioned binary
|
|
||||||
BuildRequires: nunit2 = 2.6.4
|
|
||||||
|
|
||||||
# fix ownership of mono folders
|
# fix ownership of mono folders
|
||||||
Requires: mono-core
|
Requires: mono-core
|
||||||
|
|
@ -60,72 +52,74 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
%description devel
|
%description devel
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package doc
|
|
||||||
Summary: Documentation files for %{libname}
|
|
||||||
BuildArch: noarch
|
|
||||||
# need main package for samples and tests to work properly
|
|
||||||
Suggests: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
|
|
||||||
%description doc
|
|
||||||
Samples and %{summary}.
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn%{libname}-%{commit0}
|
%setup -qn%{libname}-%{version}
|
||||||
# remove useless stuff
|
|
||||||
find samples -name Web\ References -print0 |xargs -0 rm -r
|
|
||||||
# W: wrong-file-end-of-line-encoding
|
|
||||||
#files=`find doc samples tests -regextype posix-extended -regex '.*(txt|build|csproj)'`
|
|
||||||
files=`find doc -name \*.txt ; find samples tests -exec file '{}' \; |grep text |sed -r 's,(.*):.*,\1,'`
|
|
||||||
sed -i 's,\r,,' $files
|
|
||||||
|
|
||||||
pushd tests
|
|
||||||
# tell where to find nunit
|
|
||||||
sed -i -e /ProgramFiles/d -e 's,${nunit.dir}/bin,%{_monodir}/nunit2,' tests.build
|
|
||||||
# disable sloppy tests (lazy or fail)
|
|
||||||
sed -i -r 's,.*Performance,[Category("Long Running")] \0,' BZip2/Bzip2Tests.cs
|
|
||||||
%if %{with brokentests}
|
|
||||||
%else
|
|
||||||
# FIXME https://github.com/icsharpcode/SharpZipLib/issues/90
|
|
||||||
sed -i -r 's,public void ZeroLengthInputStream\(,[Ignore("broken")] \0,' GZip/GZipTests.cs
|
|
||||||
sed -i -r 's,public void LongNames\(,[Ignore("broken")] \0,' Tar/TarTests.cs
|
|
||||||
sed -i -r 's,public void ReadingOfLockedDataFiles\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void BasicDirectories\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void BasicFiles\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void Replacement\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void ReplacementChecking\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void CreatedValues\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
sed -i -r 's,public void FilenameCleaning\(,[Ignore("broken")] \0,' Zip/ZipTests.cs
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# FIXME adjust target when upstream moves to mono 4
|
|
||||||
nant -v+ build-mono-2.0
|
|
||||||
|
|
||||||
|
mkdir bin
|
||||||
|
cd src/ICSharpCode.SharpZipLib/
|
||||||
|
|
||||||
|
cat > AssemblyInfo.cs << FINISH
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
// General Information about an assembly is controlled through the following
|
||||||
|
// set of attributes. Change these attribute values to modify the information
|
||||||
|
// associated with an assembly.
|
||||||
|
[assembly: AssemblyTitle("SharpZipLib")]
|
||||||
|
[assembly: AssemblyVersion("%{version}")]
|
||||||
|
[assembly: AssemblyDescription("C# Zip, GZip, Tar and BZip2 library for .NET")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
FINISH
|
||||||
|
|
||||||
|
mcs ./Lzw/LzwException.cs ./Lzw/LzwInputStream.cs ./Lzw/LzwConstants.cs ./Core/Exceptions/StreamDecodingException.cs \
|
||||||
|
./Core/Exceptions/SharpZipBaseException.cs ./Core/Exceptions/ValueOutOfRangeException.cs \
|
||||||
|
./Core/Exceptions/StreamUnsupportedException.cs ./Core/Exceptions/UnexpectedEndOfStreamException.cs \
|
||||||
|
./Core/EmptyRefs.cs \
|
||||||
|
./Core/InvalidNameException.cs ./Core/FileSystemScanner.cs ./Core/INameTransform.cs ./Core/PathFilter.cs \
|
||||||
|
./Core/PathUtils.cs ./Core/StreamUtils.cs ./Core/IScanFilter.cs ./Core/NameFilter.cs \
|
||||||
|
./BZip2/BZip2.cs ./BZip2/BZip2Exception.cs ./BZip2/BZip2InputStream.cs ./BZip2/BZip2OutputStream.cs ./BZip2/BZip2Constants.cs \
|
||||||
|
./Zip/ZipHelperStream.cs ./Zip/FastZip.cs ./Zip/IEntryFactory.cs ./Zip/Compression/InflaterHuffmanTree.cs \
|
||||||
|
./Zip/Compression/InflaterDynHeader.cs ./Zip/Compression/Deflater.cs ./Zip/Compression/DeflaterEngine.cs \
|
||||||
|
./Zip/Compression/DeflaterHuffman.cs ./Zip/Compression/DeflaterConstants.cs ./Zip/Compression/PendingBuffer.cs \
|
||||||
|
./Zip/Compression/Streams/InflaterInputStream.cs ./Zip/Compression/Streams/StreamManipulator.cs \
|
||||||
|
./Zip/Compression/Streams/DeflaterOutputStream.cs ./Zip/Compression/Streams/OutputWindow.cs ./Zip/Compression/Inflater.cs \
|
||||||
|
./Zip/Compression/DeflaterPending.cs ./Zip/ZipException.cs ./Zip/ZipEntryFactory.cs ./Zip/ZipFile.cs ./Zip/ZipExtraData.cs \
|
||||||
|
./Zip/ZipEntryExtensions.cs \
|
||||||
|
./Zip/ZipEntry.cs ./Zip/ZipNameTransform.cs ./Zip/ZipInputStream.cs ./Zip/ZipOutputStream.cs ./Zip/ZipConstants.cs \
|
||||||
|
./Zip/ZipStrings.cs ./Zip/WindowsNameTransform.cs \
|
||||||
|
./Zip/ZipEncryptionMethod.cs \
|
||||||
|
./Tar/TarInputStream.cs ./Tar/InvalidHeaderException.cs ./Tar/TarException.cs ./Tar/TarArchive.cs ./Tar/TarBuffer.cs \
|
||||||
|
./Tar/TarHeader.cs ./Tar/TarEntry.cs ./Tar/TarExtendedHeaderReader.cs ./Tar/TarOutputStream.cs \
|
||||||
|
./GZip/GzipInputStream.cs ./GZip/GZip.cs ./GZip/GZipException.cs ./GZip/GZipConstants.cs ./GZip/GzipOutputStream.cs \
|
||||||
|
./Encryption/ZipAESTransform.cs ./Encryption/ZipAESStream.cs ./Encryption/PkzipClassic.cs \
|
||||||
|
./Checksum/BZip2Crc.cs ./Checksum/Adler32.cs ./Checksum/IChecksum.cs ./Checksum/Crc32.cs \
|
||||||
|
./Checksum/CrcUtilities.cs \
|
||||||
|
./AssemblyInfo.cs \
|
||||||
|
-define:NETFRAMEWORK -define:NET45 \
|
||||||
|
-keyfile:../../assets/ICSharpCode.SharpZipLib.snk \
|
||||||
|
-target:library -out:../../bin/ICSharpCode.SharpZipLib.dll
|
||||||
|
cd -
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_monogacdir} %{buildroot}/%{_libdir}/pkgconfig
|
mkdir -p %{buildroot}/%{_monogacdir} %{buildroot}/%{_libdir}/pkgconfig
|
||||||
gacutil -i bin/*.dll -f -package %{name} -root %{buildroot}/usr/lib
|
gacutil -i bin/*.dll -f -package %{name} -root %{buildroot}/usr/lib
|
||||||
cp -p %{name}.pc %{buildroot}/%{_libdir}/pkgconfig
|
|
||||||
unrtf --text doc/ReadMe.rtf >doc/ReadMe.txt
|
|
||||||
|
|
||||||
|
cat > %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc <<FINISH
|
||||||
|
prefix=/usr
|
||||||
|
exec_prefix=\${prefix}
|
||||||
|
libdir=\${exec_prefix}/lib
|
||||||
|
|
||||||
|
Name: sharpziplib
|
||||||
|
Description: C# Zip, GZip, Tar and BZip2 library for .NET
|
||||||
|
Version: %{version}
|
||||||
|
Libs: -r:\${libdir}/mono/sharpziplib/ICSharpCode.SharpZipLib.dll
|
||||||
|
FINISH
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd tests
|
|
||||||
nant -v+ build
|
|
||||||
export TEMP=.
|
|
||||||
nunit-console26 -labels -exclude:"Long Running" \
|
|
||||||
%if %{without brokentests}
|
|
||||||
-stoponerror \
|
|
||||||
%endif
|
|
||||||
bin/debug/tests.dll
|
|
||||||
nant -v+ clean
|
|
||||||
rm -r bin
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license doc/COPYING.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
# usage of wildcards cause of weird dll name
|
# usage of wildcards cause of weird dll name
|
||||||
%{_monogacdir}/*%{libname}
|
%{_monogacdir}/*%{libname}
|
||||||
|
|
@ -135,14 +129,79 @@ rm -r bin
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%files doc
|
|
||||||
%license doc/COPYING.txt
|
|
||||||
%doc doc/specification/
|
|
||||||
%doc doc/*.txt
|
|
||||||
%doc samples/ tests/
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 1.3.3-7
|
||||||
|
- convert license to SPDX
|
||||||
|
|
||||||
|
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Sep 20 2021 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.3.3-0
|
||||||
|
- Upgrade to v1.3.3
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 10 2021 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.3.2-0
|
||||||
|
- Upgrade to v1.3.2
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Dec 22 2020 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.3.1-0
|
||||||
|
- Upgrade to v1.3.1
|
||||||
|
|
||||||
|
* Sat Oct 10 2020 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.3.0-0
|
||||||
|
- Upgrade to v1.3.0
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Sep 13 2019 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.2.0-1
|
||||||
|
- new build so that the provides work (fixed mono scripts)
|
||||||
|
|
||||||
|
* Tue Aug 20 2019 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.2.0-0
|
||||||
|
- Upgrade to v1.2.0
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Mar 01 2019 Timotheus Pokorra <timotheus.pokorra@solidcharity.com> - 1.1.0-0
|
||||||
|
* Upgrade to v1.1.0
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.86.0.518-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.86.0.518-8
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.86.0.518-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
2c94cf5b270b3492288afbad2d0ed3db sharpziplib-e01215507cf25a5978a0bd850c9e67dbabf515b7.tar.gz
|
SHA512 (SharpZipLib-1.3.3.tar.gz) = bc7d4baf2dfb729f5758a321795c36ef5ca6d70f11377e2d53253ea4a909727b0a0ed37aad50780795a64f1b3b2a2dfc92169d7fa6ae069ef6b72326c8c46caa
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue