Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 1846cfb7275ad482b91631bba0e72e6d > files > 2

jbigkit-1.2-2mdk.src.rpm

%define name jbigkit
%define version 1.2
%define release 2mdk

Name: %{name}
Summary: The JBIG Kit
Version: %{version}
Release: %{release}
License: GPL
Source0: ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/JBIG/%{name}-%{version}.tar.bz2
Group: Graphics
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
JBIG is a highly effective lossless compression algorithm for bi-level
images (one bit per pixel), which is particularly suitable for scanned
document pages.

%package -n libjbig-devel
Summary:  Header files and static library for development with JBIG
Group: Development/C
%description -n libjbig-devel
This package is only needed if you plan to develop or compile
applications which requires the libjbig library.

%prep
%setup -n %{name}

%build
make CCFLAGS="$RPM_OPT_FLAGS"
make test
mv -f libjbig/jbig.doc libjbig/jbig.txt

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} \
    $RPM_BUILD_ROOT%{_includedir} \
    $RPM_BUILD_ROOT%{_libdir} \
    $RPM_BUILD_ROOT%{_mandir}/man1
#
install pbmtools/jbgtopbm $RPM_BUILD_ROOT%{_bindir}
install pbmtools/pbmtojbg $RPM_BUILD_ROOT%{_bindir}
install pbmtools/jbgtopbm.1 $RPM_BUILD_ROOT%{_mandir}/man1
install pbmtools/pbmtojbg.1 $RPM_BUILD_ROOT%{_mandir}/man1
install libjbig/libjbig.a $RPM_BUILD_ROOT%{_libdir}
install libjbig/jbig.h $RPM_BUILD_ROOT%{_includedir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ANNOUNCE COPYING INSTALL TODO
%attr(755,root,root) %{_bindir}/*
%attr(644,root,root) %{_mandir}/man1/*

%files -n libjbig-devel
%defattr(-,root,root)
%doc ANNOUNCE COPYING INSTALL TODO libjbig/jbig.txt
%attr(644,root,root) %{_includedir}/*.h
%{_libdir}/*.a

%changelog
* Sat Jul 28 2001 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.2-2mdk
- rebuilt for Mandrake 8.1.
- s/Copyright/License/.

* Tue Dec 26 2000 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.2-1mdk
- initial release for OpenDX.