]> git.pld-linux.org Git - packages/advancecomp.git/blob - advancecomp.spec
- new URLs, updated to 2.6
[packages/advancecomp.git] / advancecomp.spec
1 #
2 # Conditional build:
3 %bcond_with     bzip2   # bzip2 compression
4 #
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
7 Name:           advancecomp
8 Version:        2.6
9 Release:        1
10 License:        GPL v3+
11 Group:          Applications/File
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
15 Patch0:         %{name}-system-libs.patch
16 Patch1:         %{name}-7z-lib.patch
17 URL:            http://www.advancemame.it/comp-readme.html
18 BuildRequires:  autoconf >= 2.65
19 BuildRequires:  automake
20 %{?with_bzip2:BuildRequires:    bzip2-devel}
21 BuildRequires:  libdeflate-devel
22 BuildRequires:  libstdc++-devel
23 BuildRequires:  libtool >= 2:2
24 BuildRequires:  zlib-devel
25 BuildRequires:  zopfli-devel
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
41 AdvanceCOMP jest kolekcją narzędzi rekompresujących archiwa ZIP,
42 obrazy PNG, pliki wideo MNG i pliki gz.
43
44 Ich głównym zastosowaniem jest rekompresja kolekcji ROM-ów,
45 zrzutów ekranu i urywków wideo emulowanych gier.
46
47 Głównymi cechami są:
48 - Rekompresja plików ZIP, gz, PNG i MNG za pomocą implementacji
49   kompresji deflate z 7-Zipa.
50 - Rekompresja plików MNG z użyciem optymalizacji delta i move.
51
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
88 %prep
89 %setup -q
90 %patch0 -p1
91 %patch1 -p1
92
93 %build
94 %{__libtoolize}
95 %{__aclocal}
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99 %configure \
100         %{?with_bzip2:--enable-bzip2}
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 # no external dependencies
110 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libadv7z.la
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   7z -p /sbin/ldconfig
116 %postun 7z -p /sbin/ldconfig
117
118 %files
119 %defattr(644,root,root,755)
120 %doc AUTHORS HISTORY README
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*
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
This page took 0.097061 seconds and 3 git commands to generate.