]>
Commit | Line | Data |
---|---|---|
a9a2f25d JB |
1 | Summary: IPF image support library |
2 | Summary(pl.UTF-8): Biblioteka obsługująca obrazy IPF | |
3 | Name: libcapsimage | |
5ab3442a | 4 | Version: 5.1 |
a9a2f25d JB |
5 | Release: 1 |
6 | License: Software Preservation Society (only limited, non-commercial distribution is allowed) | |
7 | Group: Libraries | |
5ab3442a JB |
8 | #Source0Download: https://github.com/simonowen/capsimage |
9 | Source0: https://www.kryoflux.com/download/spsdeclib_%{version}_source.zip | |
10 | # Source0-md5: 27710eb05d4391560addeeb970ea1d45 | |
11 | #Source1Download: http://www.softpres.org/download | |
12 | Source1: http://www.softpres.org/_media/files:ipfaccessapi_multi.tgz?id=download&cache=cache&fakefile=/ipfaccessapi_multi.tgz | |
13 | # Source1-md5: f33c2ac4273871c1c59d375958e525a3 | |
a9a2f25d JB |
14 | URL: http://www.softpres.org/?id=download |
15 | BuildRequires: libstdc++-devel | |
5ab3442a | 16 | BuildRequires: unzip |
a9a2f25d JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | CAPS image is a IPF image support library. IPF stands for | |
21 | Interchangeable Preservation Format, and is the file format used to | |
22 | preserve content, that is, floppy disk or ROM images (mostly related | |
23 | to Amiga software). | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | CAPS image to biblioteka obsługująca obrazy IPF. IPF to skrót od | |
27 | Interchangeable Preservation Format (wymienny format zachowujący) i | |
28 | jest to format plików używany do zachowywania obrazów zawartości | |
29 | dyskietek lub pamięci ROM (głownie związanych z oprogramowaniem | |
30 | komputerów Amiga). | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for CAPS image library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CAPS image | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for CAPS image library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki CAPS image. | |
43 | ||
44 | %prep | |
5ab3442a | 45 | %setup -q -c -a1 |
a9a2f25d | 46 | |
5ab3442a JB |
47 | unzip -q capsimg_source_linux_macosx.zip |
48 | chmod 755 capsimg_source_linux_macosx/CAPSImg/configure | |
a9a2f25d JB |
49 | |
50 | %build | |
5ab3442a JB |
51 | cd capsimg_source_linux_macosx/CAPSImg |
52 | %configure | |
53 | ||
54 | %{__make} | |
55 | ||
56 | ln -s libcapsimage.so.*.* libcapsimage.so | |
57 | ||
58 | cd ../../ipfaccessapi_multi/examples | |
59 | %{__cc} %{rpmldflags} %{rpmcflags} %{rpmcppflags} -o ipfinfo ipfinfo.c -I../include -L../../capsimg_source_linux_macosx/CAPSImg -lcapsimage | |
a9a2f25d JB |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
5ab3442a JB |
63 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_includedir}/caps} |
64 | ||
65 | %{__make} -C capsimg_source_linux_macosx/CAPSImg install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
a9a2f25d | 67 | |
5ab3442a JB |
68 | install ipfaccessapi_multi/examples/ipfinfo $RPM_BUILD_ROOT%{_bindir} |
69 | ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libcapsimage.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcapsimage.so.5 | |
70 | ln -s $(basename $RPM_BUILD_ROOT%{_libdir}/libcapsimage.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libcapsimage.so | |
71 | cp -p capsimg_source_linux_macosx/{LibIPF/*.h,Core/CommonTypes.h} $RPM_BUILD_ROOT%{_includedir}/caps | |
72 | cp -p ipfaccessapi_multi/include/caps/capsimage.h $RPM_BUILD_ROOT%{_includedir}/caps | |
a9a2f25d JB |
73 | |
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %post -p /sbin/ldconfig | |
78 | %postun -p /sbin/ldconfig | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
5ab3442a | 82 | %doc DONATIONS.txt HISTORY.txt LICENCE.txt RELEASE.txt |
a9a2f25d JB |
83 | %attr(755,root,root) %{_bindir}/ipfinfo |
84 | %attr(755,root,root) %{_libdir}/libcapsimage.so.*.* | |
5ab3442a | 85 | %attr(755,root,root) %ghost %{_libdir}/libcapsimage.so.5 |
a9a2f25d JB |
86 | |
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libcapsimage.so | |
90 | %{_includedir}/caps |