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