3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: Library for accessing CD-ROM books
13 Source0: ftp://ftp.sra.co.jp/pub/misc/eb/%{name}-%{version}.tar.bz2
14 # Source0-md5: 17dd1fade7ba0b82ce6e60f19fcbc823
15 URL: http://www.sra.co.jp/people/m-kasahr/eb/
16 BuildRequires: zlib-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 EB Library supports to access CD-ROM books of EB, EBG, EBXA, EBXA-C,
21 S-EBXA and EPWING formats. CD-ROM books of those formats are popular
22 in Japan. Since CD-ROM books themseves are stands on the ISO 9660
23 format, you can mount the discs by the same way as other ISO 9660
26 #%description -l pl.UTF-8
29 Summary: Utilities provided by EB library
30 Summary(pl.UTF-8): Narzędzia dostarczane przez bibliotekę EB
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 Utilities provided by EB library.
37 %description utils -l pl.UTF-8
38 Narzędzia dostarczane przez bibliotekę EB.
41 Summary: Header files for EB library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki EB
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for EB library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki EB.
53 Summary: Static EB library
54 Summary(pl.UTF-8): Statyczna biblioteka EB
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
61 %description static -l pl.UTF-8
62 Statyczna biblioteka EB.
65 Summary: EB API documentation
66 Summary(pl.UTF-8): Dokumentacja API biblioteki EB
70 API and internal documentation for EB library.
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki EB.
84 --with-pkgdocdir=%{_docdir}/%{name}-apidocs-%{version} \
85 %{!?with_static_libs:--disable-static}
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog* NEWS README
106 %attr(755,root,root) %{_libdir}/libeb.so.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libeb.so.16
109 %files utils -f ebutils.lang
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/*
114 %defattr(644,root,root,755)
115 %{_sysconfdir}/eb.conf
119 %{_aclocaldir}/eb4.m4
121 %if %{with static_libs}
123 %defattr(644,root,root,755)
129 %defattr(644,root,root,755)
130 %doc %{_docdir}/%{name}-apidocs-%{version}