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