]>
Commit | Line | Data |
---|---|---|
c71f9263 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with bzip2 # bzip2 compression | |
4 | # | |
3ef5e9f1 JB |
5 | Summary: Recompression utilities for .ZIP archives, .PNG snapshots, .MNG video clips and .gz files |
6 | Summary(pl.UTF-8): Narzędzia rekompresujące pliki ZIP, PNG, MNG, gz | |
6194b6c8 | 7 | Name: advancecomp |
d7426e6a JB |
8 | Version: 2.6 |
9 | Release: 1 | |
17fb1491 | 10 | License: GPL v3+ |
3ef5e9f1 | 11 | Group: Applications/File |
d7426e6a JB |
12 | #Source0Download: https://github.com/amadvance/advancecomp/releases |
13 | Source0: https://github.com/amadvance/advancecomp/releases/download/v%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: fc7f6c2bdbabae26f90bf18ec63e9242 | |
17fb1491 | 15 | Patch0: %{name}-system-libs.patch |
ddb1d6c4 | 16 | Patch1: %{name}-7z-lib.patch |
d7426e6a | 17 | URL: http://www.advancemame.it/comp-readme.html |
17fb1491 JB |
18 | BuildRequires: autoconf >= 2.65 |
19 | BuildRequires: automake | |
c71f9263 | 20 | %{?with_bzip2:BuildRequires: bzip2-devel} |
17fb1491 | 21 | BuildRequires: libdeflate-devel |
c71f9263 | 22 | BuildRequires: libstdc++-devel |
ddb1d6c4 | 23 | BuildRequires: libtool >= 2:2 |
6194b6c8 | 24 | BuildRequires: zlib-devel |
17fb1491 | 25 | BuildRequires: zopfli-devel |
6194b6c8 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | AdvanceCOMP is a collection of recompression utilities for your .ZIP | |
30 | archives, .PNG snapshots, .MNG video clips and .GZ files. | |
31 | ||
32 | It's mainly intended for recompressing your rom, snapshot and clip | |
33 | collection of emulated games. | |
34 | ||
35 | The main features are: | |
36 | - Recompress ZIP, GZ, PNG and MNG files using the Deflate 7-Zip | |
37 | implementation. | |
38 | - Recompress MNG files using Delta and Move optimization. | |
39 | ||
40 | %description -l pl.UTF-8 | |
3ef5e9f1 JB |
41 | AdvanceCOMP jest kolekcją narzędzi rekompresujących archiwa ZIP, |
42 | obrazy PNG, pliki wideo MNG i pliki gz. | |
6194b6c8 | 43 | |
3ef5e9f1 | 44 | Ich głównym zastosowaniem jest rekompresja kolekcji ROM-ów, |
6194b6c8 | 45 | zrzutów ekranu i urywków wideo emulowanych gier. |
46 | ||
47 | Głównymi cechami są: | |
3ef5e9f1 | 48 | - Rekompresja plików ZIP, gz, PNG i MNG za pomocą implementacji |
6194b6c8 | 49 | kompresji deflate z 7-Zipa. |
3ef5e9f1 | 50 | - Rekompresja plików MNG z użyciem optymalizacji delta i move. |
6194b6c8 | 51 | |
ddb1d6c4 JB |
52 | %package 7z |
53 | Summary: 7z library from AdvanceCOMP project | |
54 | Summary(pl.UTF-8): Biblioteka 7z z projektu AdvanceCOMP | |
55 | Group: Libraries | |
56 | ||
57 | %description 7z | |
58 | 7z library from AdvanceCOMP project. | |
59 | ||
60 | %description 7z -l pl.UTF-8 | |
61 | Biblioteka 7z z projektu AdvanceCOMP. | |
62 | ||
63 | %package 7z-devel | |
64 | Summary: Header file for AdvanceCOMP 7z library | |
65 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki AdvanceCOMP 7z | |
66 | Group: Development/Libraries | |
67 | Requires: %{name}-7z = %{version}-%{release} | |
68 | Requires: libstdc++-devel | |
69 | ||
70 | %description 7z-devel | |
71 | Header file for AdvanceCOMP 7z library. | |
72 | ||
73 | %description 7z-devel -l pl.UTF-8 | |
74 | Plik nagłówkowy biblioteki AdvanceCOMP 7z. | |
75 | ||
76 | %package 7z-static | |
77 | Summary: Static AdvanceCOMP 7z library | |
78 | Summary(pl.UTF-8): Statyczna biblioteka AdvanceCOMP 7z | |
79 | Group: Development/Libraries | |
80 | Requires: %{name}-7z-devel = %{version}-%{release} | |
81 | ||
82 | %description 7z-static | |
83 | Static AdvanceCOMP 7z library. | |
84 | ||
85 | %description 7z-static -l pl.UTF-8 | |
86 | Statyczna biblioteka AdvanceCOMP 7z. | |
87 | ||
6194b6c8 | 88 | %prep |
89 | %setup -q | |
17fb1491 | 90 | %patch0 -p1 |
ddb1d6c4 | 91 | %patch1 -p1 |
6194b6c8 | 92 | |
93 | %build | |
ddb1d6c4 | 94 | %{__libtoolize} |
17fb1491 JB |
95 | %{__aclocal} |
96 | %{__autoconf} | |
97 | %{__autoheader} | |
98 | %{__automake} | |
c71f9263 JB |
99 | %configure \ |
100 | %{?with_bzip2:--enable-bzip2} | |
6194b6c8 | 101 | %{__make} |
102 | ||
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
3ef5e9f1 JB |
105 | |
106 | %{__make} install \ | |
107 | DESTDIR=$RPM_BUILD_ROOT | |
6194b6c8 | 108 | |
ddb1d6c4 JB |
109 | # no external dependencies |
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libadv7z.la | |
111 | ||
6194b6c8 | 112 | %clean |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
ddb1d6c4 JB |
115 | %post 7z -p /sbin/ldconfig |
116 | %postun 7z -p /sbin/ldconfig | |
117 | ||
6194b6c8 | 118 | %files |
119 | %defattr(644,root,root,755) | |
120 | %doc AUTHORS HISTORY README | |
c71f9263 JB |
121 | %attr(755,root,root) %{_bindir}/advdef |
122 | %attr(755,root,root) %{_bindir}/advmng | |
123 | %attr(755,root,root) %{_bindir}/advpng | |
124 | %attr(755,root,root) %{_bindir}/advzip | |
125 | %{_mandir}/man1/advdef.1* | |
126 | %{_mandir}/man1/advmng.1* | |
127 | %{_mandir}/man1/advpng.1* | |
128 | %{_mandir}/man1/advzip.1* | |
ddb1d6c4 JB |
129 | |
130 | %files 7z | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libadv7z.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libadv7z.so.0 | |
134 | ||
135 | %files 7z-devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_libdir}/libadv7z.so | |
138 | %{_includedir}/adv7z | |
139 | ||
140 | %files 7z-static | |
141 | %defattr(644,root,root,755) | |
142 | %{_libdir}/libadv7z.a |